Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make shoplink optional
  • Loading branch information
kthoden committed Nov 18, 2021
1 parent ddb509d commit c531539
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion metadator.py
Expand Up @@ -382,7 +382,10 @@ def format_publication_info(eoa_publication_info, server_data):
pub_suffix = " " + eoa_publication_info["Publicationauthorsuffix"]

licence_string = format_licence(eoa_publication_info["Publicationlicense"])
shoplink_string = format_shoplink(eoa_publication_info["Shoplink"])
if len(eoa_publication_info["Shoplink"]) == 0:
shoplink_string = ""
else:
shoplink_string = format_shoplink(eoa_publication_info["Shoplink"])

if len(eoa_publication_info['Doipublication']) > 0:
doi_string = f", DOI {eoa_publication_info['Doipublication']}"
Expand Down

0 comments on commit c531539

Please sign in to comment.