Skip to content

Commit

Permalink
Alphabetize Crossref fields for easier management going forward
Browse files Browse the repository at this point in the history
* Alphabetize Crossref fields in crossref.py
  • Loading branch information
ehanson8 committed Sep 16, 2021
1 parent 4ed3741 commit 840f694
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions awd/crossref.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,19 @@ def get_crossref_work_from_doi(api_url, doi):
def get_metadata_dict_from_crossref_work(work):
"""Create metadata dict from a Crossref work JSON record."""
keys_for_dspace = [
"publisher",
"issue",
"page",
"title",
"volume",
"author",
"container-title",
"original-title",
"ISSN",
"issue",
"issued",
"language",
"subtitle",
"original-title",
"publisher",
"short-title",
"issued",
"subtitle",
"title",
"URL",
"ISSN",
"volume",
]
work = work["message"]
value_dict = {}
Expand Down

0 comments on commit 840f694

Please sign in to comment.