Skip to content

Commit

Permalink
Merge pull request #368 from BIBSYSDEV/NP-45690-Import-candidates-par…
Browse files Browse the repository at this point in the history
…ameters

added ADDITIONAL_IDENTIFIERS
  • Loading branch information
StigNorland authored Nov 24, 2023
2 parents d1b8390 + 44d448c commit 129a7d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ protected void setValue(String key, String value) {
case FIELDS -> query.setQueryValue(qpKey, expandFields(value));
case SORT -> addSortQuery(value);
case SORT_ORDER -> addSortOrderQuery(value);
case PUBLISHED_BEFORE, PUBLISHED_SINCE,
case ADDITIONAL_IDENTIFIERS, ADDITIONAL_IDENTIFIERS_NOT, ADDITIONAL_IDENTIFIERS_SHOULD,
PUBLISHED_BEFORE, PUBLISHED_SINCE,
CATEGORY, CATEGORY_NOT, CATEGORY_SHOULD,
COLLABORATION_TYPE,
DOI, DOI_NOT, DOI_SHOULD,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
public enum ParameterKeyImportCandidate implements ParameterKey {
INVALID(TEXT),
// Parameters converted to Lucene query
ADDITIONAL_IDENTIFIERS(KEYWORD, MUST, Constants.ADDITIONAL_IDENTIFIERS_VALUE_KEYWORD),
ADDITIONAL_IDENTIFIERS_NOT(KEYWORD, MUST_NOT, Constants.ADDITIONAL_IDENTIFIERS_VALUE_KEYWORD),
ADDITIONAL_IDENTIFIERS_SHOULD(TEXT, SHOULD, Constants.ADDITIONAL_IDENTIFIERS_VALUE_KEYWORD),
CATEGORY(KEYWORD, Constants.ENTITY_DESCRIPTION_REFERENCE_PUBLICATION_INSTANCE_TYPE),
CATEGORY_NOT(KEYWORD, MUST_NOT, Constants.ENTITY_DESCRIPTION_REFERENCE_PUBLICATION_INSTANCE_TYPE),
CATEGORY_SHOULD(TEXT, SHOULD, Constants.ENTITY_DESCRIPTION_REFERENCE_PUBLICATION_INSTANCE_TYPE),
Expand Down Expand Up @@ -201,5 +204,7 @@ private static class Constants {
public static final String PUBLISHED_DATE = "publishedDate.year";
public static final String PUBLISHER = "publisher.id.keyword";
public static final String RESOURCE_OWNER = "owner.keyword";
public static final String ADDITIONAL_IDENTIFIERS_VALUE_KEYWORD = "additionalIdentifiers.value.keyword";

}
}

0 comments on commit 129a7d4

Please sign in to comment.