diff --git a/owslib/iso.py b/owslib/iso.py index ae486b36..c30a4c88 100644 --- a/owslib/iso.py +++ b/owslib/iso.py @@ -407,15 +407,26 @@ def __init__(self, md=None, identtype=None): self.uricode = [] _values = md.findall(util.nspath_eval( - 'gmd:citation/gmd:CI_Citation/gmd:identifier/gmd:RS_Identifier/gmd:code/gco:CharacterString', + 'gmd:citation/gmd:CI_Citation/gmd:identifier/gmd:MD_Identifier/gmd:code/gco:CharacterString', namespaces)) _values += md.findall(util.nspath_eval( - 'gmd:citation/gmd:CI_Citation/gmd:identifier/gmd:MD_Identifier/gmd:code/gco:CharacterString', + 'gmd:citation/gmd:CI_Citation/gmd:identifier/gmd:RS_Identifier/gmd:code/gco:CharacterString', namespaces)) for i in _values: val = util.testXMLValue(i) if val is not None: self.uricode.append(val) + + _values = md.findall(util.nspath_eval( + 'gmd:citation/gmd:CI_Citation/gmd:identifier/gmd:MD_Identifier/gmd:code/gmx:Anchor', + namespaces)) + _values += md.findall(util.nspath_eval( + 'gmd:citation/gmd:CI_Citation/gmd:identifier/gmd:RS_Identifier/gmd:code/gmx:Anchor', + namespaces)) + for i in _values: + val = util.testXMLValue(i.attrib.get('xlink:href'), True) + if val is not None: + self.uricode.append(val) self.uricodespace = [] for i in md.findall(util.nspath_eval(