From a9c4a80742ea37d094ce5464f8fb6266ef859ad1 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Sat, 28 May 2022 05:33:24 -0400 Subject: [PATCH] ISO/ISO-CHE: fix XPath ref for gmd:edition --- owslib/iso.py | 2 +- owslib/iso_che.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/owslib/iso.py b/owslib/iso.py index c0cd64e2d..98b57f523 100644 --- a/owslib/iso.py +++ b/owslib/iso.py @@ -555,7 +555,7 @@ def __init__(self, md=None, identtype=None): elif clv == 'author': self.contributor.append(rp) - val = md.find(util.nspath_eval('gmd:edition/gco:CharacterString', namespaces)) + val = md.find(util.nspath_eval('gmd:citation/gmd:CI_Citation/gmd:edition/gco:CharacterString', namespaces)) self.edition = util.testXMLValue(val) val = md.find(util.nspath_eval('gmd:abstract/gco:CharacterString', namespaces)) diff --git a/owslib/iso_che.py b/owslib/iso_che.py index d17790975..73113f8ac 100644 --- a/owslib/iso_che.py +++ b/owslib/iso_che.py @@ -507,7 +507,7 @@ def __init__(self, md=None, identtype=None): elif clv == 'author': self.contributor.append(rp) - val = md.find(util.nspath_eval('gmd:edition/gco:CharacterString', namespaces)) + val = md.find(util.nspath_eval('gmd:citation/gmd:CI_Citation/gmd:edition/gco:CharacterString', namespaces)) self.edition = util.testXMLValue(val) val = md.find(util.nspath_eval('gmd:abstract/gco:CharacterString', namespaces))