Skip to content

Commit 7fe5986

Browse files
author
Gerit Wagner
committed
extend QueryErrorCode.JOURNAL_FILTER_IN_SUBQUERY: cover ISSN etc.
1 parent 3efffb7 commit 7fe5986

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

search_query/linter_base.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,13 @@ def _check_journal_filters_in_subquery(self, query: Query, level: int = 0) -> No
10381038
return
10391039

10401040
generic_fields = self.syntax_str_to_generic_field_set(query.field.value)
1041-
if generic_fields & {Fields.JOURNAL, Fields.PUBLICATION_NAME}:
1041+
if generic_fields & {
1042+
Fields.JOURNAL,
1043+
Fields.PUBLICATION_NAME,
1044+
Fields.ISSN,
1045+
Fields.ISBN,
1046+
Fields.ISSN_ISBN,
1047+
}:
10421048
details = (
10431049
"Check whether journal/publication-name filters "
10441050
f"({query.field.value}) should apply to the entire query."

0 commit comments

Comments
 (0)