From 736e1e93e99468255ad7931f6b683d478bae1853 Mon Sep 17 00:00:00 2001 From: Matthew Templeton Date: Thu, 27 Jun 2024 10:36:38 -0400 Subject: [PATCH] Formatting for %J field of PDS data sets modified: adsmanparse/translator.py --- adsmanparse/translator.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/adsmanparse/translator.py b/adsmanparse/translator.py index 3208038..fd87ead 100644 --- a/adsmanparse/translator.py +++ b/adsmanparse/translator.py @@ -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':