diff --git a/server/ntb/publish/ntb_nitf.py b/server/ntb/publish/ntb_nitf.py index ea02aa450..73f2fef06 100644 --- a/server/ntb/publish/ntb_nitf.py +++ b/server/ntb/publish/ntb_nitf.py @@ -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'])