Skip to content

Commit

Permalink
Merge pull request #248 from golnazads/master
Browse files Browse the repository at this point in the history
moved publisher for xml abstract format to between origin and copyright
  • Loading branch information
golnazads committed Apr 11, 2024
2 parents 7d7fc1b + b007eef commit b339d63
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions exportsrv/formatter/xmlFormat.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,10 @@ def __get_fields(self, export_format):
fields = [('bibcode', 'bibcode'), ('title', 'title'), ('author', 'author'),
('aff', 'affiliation'), ('pub_raw', 'journal'), ('volume', 'volume'),
('pubdate', 'pubdate'), ('page', 'page'), ('page_range', 'lastpage'),
('keyword', 'keywords'), ('', 'origin'), ('copyright', 'copyright'),
('link', 'link'), ('url', 'url'), ('comment', 'comment'),
('', 'score'), ('num_citations', 'citations'), ('abstract', 'abstract'),
('doi', 'DOI'), ('eprintid', 'eprintid'), ('publisher', 'publisher')]
('keyword', 'keywords'), ('', 'origin'), ('publisher', 'publisher'),
('copyright', 'copyright'), ('link', 'link'), ('url', 'url'),
('comment', 'comment'), ('', 'score'), ('num_citations', 'citations'),
('abstract', 'abstract'), ('doi', 'DOI'), ('eprintid', 'eprintid')]
elif (export_format == self.EXPORT_FORMAT_DUBLIN_XML):
fields = [('bibcode', 'dc:identifier'), ('title', 'dc:title'), ('author', 'dc:creator'),
('pub_raw', 'dc:source'), ('pubdate', 'dc:date'), ('keyword', 'dc:subject'),
Expand Down
2 changes: 1 addition & 1 deletion exportsrv/tests/unittests/stubdata/xmlTest.py

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion exportsrv/tests/unittests/test_export_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ def test_dublinxml(self):
def test_refxml(self):
# format the stubdata using the code
xml_export = XMLFormat(solrdata.data).get_reference_xml(include_abs=False)
print(xml_export)
# now compare it with an already formatted data that we know is correct
assert(xml_export == xmlTest.data_ref)

Expand Down

0 comments on commit b339d63

Please sign in to comment.