Skip to content

Commit

Permalink
Merge 18cb04a into 82d4c3c
Browse files Browse the repository at this point in the history
  • Loading branch information
slint committed Oct 30, 2020
2 parents 82d4c3c + 18cb04a commit 73db0e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion zenodo/modules/records/serializers/dcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ def transform_with_xslt(self, pid, record, search_hit=False, **kwargs):

# Inject files in results (since the XSLT can't do that by default)
if files_data:
self._add_files(dcat_etree, files_data, record)
self._add_files(
root=dcat_etree,
files=files_data,
record=(record['_source'] if search_hit else record),
)

return dcat_etree

Expand Down

0 comments on commit 73db0e8

Please sign in to comment.