-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OWSLib doesn't parse anchor #306
Comments
@madi I didn't understand if you are only interested on saving the content of the From what I see on the example you provided, you also have a
|
@pmdias the content of gmx:Anchor should be parsed and saved, and the URL as well. The final result should be a text that is clickable and points to a URL. If I'm not much mistaken, in Geonetwork anchor is correctly parsed and has this behavior. If this is not possible, at least the text should be visible and the URL the user could manually go to. |
Hi, this bug is at present very important to us. OWSLib is currently used at basis of several cataloguing software, and as we produce our metadata to be harvested by different technologies, solving it at the root would really mean a great progress to us. If you think is useful, I could propose a patch to https://github.com/geopython/OWSLib/blob/master/owslib/iso.py, that sets a check to see if there is anchor in the fields of abstract, lineage and useLimitation, and in case parses the text and stores the value into self.abstract (or lineage or uselimitation) and moreover stores the URL provided into self.abstractURL, self.lineageURL and self.uselimitationURL respectively. Would this work for you? Thank you in advance |
@madi 👍 I think this is a good approach (suggest |
This is fixed by PR #308. |
To parse ISO metadata, at present OWSLib only recognizes the following constructs:
In the above mentioned cases, the
gco:CharacterString
part can be substituted in favor ofgmx:Anchor
. For completeness, see discussion at http://lists.osgeo.org/pipermail/geonode-users/2016-January/001284.html and following.Thank you
The text was updated successfully, but these errors were encountered: