Skip to content

Commit

Permalink
Remove unnecessary citation code
Browse files Browse the repository at this point in the history
* Remove code related to the older method of citation generation
  • Loading branch information
ehanson8 committed Jun 17, 2022
1 parent 75cc359 commit d448fe3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions transmogrifier/sources/datacite.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,10 @@ def create_from_datacite_xml(
kwargs["content_type"] = [resource_type["resourceTypeGeneral"]]

# contributors
citation_creators = []
creators = xml.metadata.find_all("creator")
for creator in creators:
creator_name = creator.find("creatorName").string
citation_creators.append(creator_name)
c = timdex.Contributor(
value=creator_name,
value=creator.find("creatorName").string,
affiliation=[a.string for a in creator.find_all("affiliation")] or None,
identifier=[
cls.generate_name_identifier_url(name_identifier)
Expand Down

0 comments on commit d448fe3

Please sign in to comment.