Skip to content

Commit

Permalink
Merge pull request #821 from tomkralidis/iso-fix-edition
Browse files Browse the repository at this point in the history
ISO/ISO-CHE: fix XPath ref for gmd:edition
  • Loading branch information
kalxas authored May 28, 2022
2 parents b4dca5c + a9c4a80 commit 9a878f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion owslib/iso.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion owslib/iso_che.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 9a878f8

Please sign in to comment.