Skip to content

Commit

Permalink
avoid overriding topics subject (#428)
Browse files Browse the repository at this point in the history
SDNTB-647
  • Loading branch information
petrjasek authored Nov 15, 2021
1 parent 122dbbd commit d334e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/ntb/publish/ntb_nitf.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def _populate_metadata(self, article):
vocabulary_items = vocabulary.get('items', [])
field_values = article.get(field, [])
for value in list(field_values):
if not value.get('parent', None):
if not value.get('parent', None) or value.get('scheme') != scheme:
continue
parent = self._get_list_element(field_values, 'qcode', value['parent']) or \
self._get_list_element(vocabulary_items, 'qcode', value['parent'])
Expand Down

0 comments on commit d334e05

Please sign in to comment.