Skip to content
Snippets Groups Projects
Commit 69d29e0a authored by Stefan E. Funk's avatar Stefan E. Funk
Browse files

fix: Add package-lock.json

parent b7105ec4
No related branches found
No related tags found
No related merge requests found
Pipeline #307394 passed
...@@ -61,7 +61,7 @@ prepare-release: ...@@ -61,7 +61,7 @@ prepare-release:
- if: $CI_COMMIT_REF_NAME == "main" && $CI_COMMIT_TITLE !~ /^[\d\.]+$/ && $CI_COMMIT_TITLE !~ /^Prepare next development iteration/ - if: $CI_COMMIT_REF_NAME == "main" && $CI_COMMIT_TITLE !~ /^[\d\.]+$/ && $CI_COMMIT_TITLE !~ /^Prepare next development iteration/
image: maven:3.8.3-jdk-8 image: maven:3.8.3-jdk-8
extends: extends:
- .prepare-semantic-release - .prepare-semantic-release-dry-run
# Build, validate, and package all the feature branches # Build, validate, and package all the feature branches
validate-java: validate-java:
......
...@@ -54,7 +54,7 @@ import info.textgrid.namespaces.middleware.tgauth.ProjectInfo; ...@@ -54,7 +54,7 @@ import info.textgrid.namespaces.middleware.tgauth.ProjectInfo;
*/ */
public class OAIPMHUtilities { public class OAIPMHUtilities {
private static Logger log = Logger.getAnonymousLogger(); private static Logger log = Logger.getLogger(OAIPMHUtilities.class.getName());
// ** // **
// FINALS // FINALS
......
...@@ -310,6 +310,18 @@ public class RecordListDelivererDC extends RecordListDelivererAbstract { ...@@ -310,6 +310,18 @@ public class RecordListDelivererDC extends RecordListDelivererAbstract {
// FIXME Put query field into config! // FIXME Put query field into config!
queryField = "administrativeMetadata.dcterms:relation"; queryField = "administrativeMetadata.dcterms:relation";
valueField = set; valueField = set;
// Add record with set metadata in it (to also find collection metadata in Repository
// Search!)
// FIXME Must be done WITH THE QUERY. We must add it here, since it results in 101 records
// if we do add it below!
// FIXME Put query field into config!
// if (!set.isEmpty()) {
// QueryBuilder setQuery = QueryBuilders
// .matchQuery("administrativeMetadata.dcterms:identifier", this.specFieldPrefix + set);
// fetchFields(QueryBuilders.boolQuery().must(setQuery), recordList, resumptionToken, set);
// }
} }
// ** // **
...@@ -329,7 +341,9 @@ public class RecordListDelivererDC extends RecordListDelivererAbstract { ...@@ -329,7 +341,9 @@ public class RecordListDelivererDC extends RecordListDelivererAbstract {
QueryBuilder boolQuery = QueryBuilders.boolQuery().must(rangeQuery).must(matchQuery); QueryBuilder boolQuery = QueryBuilders.boolQuery().must(rangeQuery).must(matchQuery);
query = boolQuery; query = boolQuery;
} else { }
// Set == null!
else {
query = rangeQuery; query = rangeQuery;
} }
...@@ -337,16 +351,6 @@ public class RecordListDelivererDC extends RecordListDelivererAbstract { ...@@ -337,16 +351,6 @@ public class RecordListDelivererDC extends RecordListDelivererAbstract {
fetchFields(query, recordList, resumptionToken, set); fetchFields(query, recordList, resumptionToken, set);
// FOR DHREP ONLY: Add record with set metadata in it (to also find collection metadata in
// Repository Search!)
// FIXME Put query field into config!
// if (this.dariah && set != null && !set.isEmpty()) {
// QueryBuilder setQuery = QueryBuilders
// .matchQuery("administrativeMetadata.dcterms:identifier", this.specFieldPrefix + set);
//
// fetchFields(QueryBuilders.boolQuery().must(setQuery), recordList, resumptionToken, set);
// }
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
......
...@@ -29,14 +29,14 @@ import org.junit.Test; ...@@ -29,14 +29,14 @@ import org.junit.Test;
* *
* @author Stefan E. Funk, SUB Göttingen * @author Stefan E. Funk, SUB Göttingen
*/ */
// @Ignore @Ignore
public class OaiPmhDariahdeOnlineTests { public class OaiPmhDariahdeOnlineTests {
// ** // **
// FINALS // FINALS
// ** // **
// private static final String PROPERTIES_FILE = "oaipmh.test.repository-de-dariah-eu.properties"; private static final String PROPERTIES_FILE = "oaipmh.test.repository-de-dariah-eu.properties";
private static final String PROPERTIES_FILE = "oaipmh.test.trep-de-dariah-eu.properties"; // private static final String PROPERTIES_FILE = "oaipmh.test.trep-de-dariah-eu.properties";
private static final String HDL_PREFIX = "hdl:"; private static final String HDL_PREFIX = "hdl:";
private static final String STAR_PREFIX = "***"; private static final String STAR_PREFIX = "***";
...@@ -313,8 +313,11 @@ public class OaiPmhDariahdeOnlineTests { ...@@ -313,8 +313,11 @@ public class OaiPmhDariahdeOnlineTests {
* @throws IOException * @throws IOException
*/ */
@Test @Test
@Ignore
public void testListRecordsSetDCStarPrefix() throws IOException { public void testListRecordsSetDCStarPrefix() throws IOException {
// TODO Un-ignore if identifier check is implemented!
System.out.println(OaiPmhTestUtilities.TESTING + "#LISTRECORDS - STAR PREFIX"); System.out.println(OaiPmhTestUtilities.TESTING + "#LISTRECORDS - STAR PREFIX");
if (checkListRecordsSet.startsWith(HDL_PREFIX)) { if (checkListRecordsSet.startsWith(HDL_PREFIX)) {
...@@ -465,8 +468,11 @@ public class OaiPmhDariahdeOnlineTests { ...@@ -465,8 +468,11 @@ public class OaiPmhDariahdeOnlineTests {
* @throws IOException * @throws IOException
*/ */
@Test @Test
@Ignore
public void testListIdentifiersSetDCStarPrefixe() throws IOException { public void testListIdentifiersSetDCStarPrefixe() throws IOException {
// TODO Un-ignore if identifier check is implemented!
System.out.println(OaiPmhTestUtilities.TESTING + "#LISTIDENTIFIERS - STAR PREFIX"); System.out.println(OaiPmhTestUtilities.TESTING + "#LISTIDENTIFIERS - STAR PREFIX");
if (checkListIdentifiersSet.startsWith(HDL_PREFIX)) { if (checkListIdentifiersSet.startsWith(HDL_PREFIX)) {
......
...@@ -14,9 +14,9 @@ checkListRecordsDCFrom = ...@@ -14,9 +14,9 @@ checkListRecordsDCFrom =
checkListRecordsDCUntil = checkListRecordsDCUntil =
checkListRecordsDATACITEFrom = checkListRecordsDATACITEFrom =
checkListRecordsDATACITEUntil = checkListRecordsDATACITEUntil =
checkListRecordsSet = checkListRecordsSet = hdl:21.11113/0000-000B-C8F2-2
checkListRecordsSetExpectedPages = checkListRecordsSetExpectedPages = 8
# ListIdentifiers # ListIdentifiers
checkListIdentifiersSet = checkListIdentifiersSet = hdl:21.11113/0000-000B-C8F2-2
checkListIdentifiersSetExpectedPages = checkListIdentifiersSetExpectedPages = 8
\ No newline at end of file
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment