Skip to content

Commit

Permalink
Formatting for %J field of PDS data sets
Browse files Browse the repository at this point in the history
 	modified:   adsmanparse/translator.py
  • Loading branch information
seasidesparrow committed Jun 27, 2024
1 parent 7987999 commit 736e1e9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions adsmanparse/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,11 @@ def _get_copyright(self):
def _special_handling(self, bibstem=None):
# Special data handling rules on a per-bibstem basis
if bibstem == "pds..data" or bibstem == "pdss.data":
uri = self.data.get("publisherIDs", {})[0].get("Identifier", "")
pubstring = "NASA Planetary Data System %s" % uri
urn = ""
for ident in self.data.get("publisherIDs", []):
if ident.get("Identifier", "")[0:3] == "urn":
urn = ident.get("Identifier", "")
pubstring = "NASA Planetary Data System, %s" % urn
self.output["publication"] = pubstring

elif bibstem == 'MPEC':
Expand Down

0 comments on commit 736e1e9

Please sign in to comment.