geonetwork / core-geonetwork

GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world.
http://geonetwork-opensource.org/
GNU General Public License v2.0
412 stars 487 forks source link

If an association is made to an external website, geonetwork does not index and display the link #4805

Open pvgenuchten opened 4 years ago

pvgenuchten commented 4 years ago

In case an association is created to a remote website/url, the link is not indexed and displayed, seems geonetwork only allows links to other metadata records, not websites. Suggestion would be to index and show the link.

<mri:associatedResource>
<mri:MD_AssociatedResource>
<mri:name>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>XXXIV Expedition PNRA project</gco:CharacterString>
</cit:title>
<cit:identifier>
<mcc:MD_Identifier>
<mcc:code>
<gcx:Anchor xlink:href="https://www.pnra.aq/node/148">XXXIV Expedition PNRA</gcx:Anchor>
</mcc:code>
</mcc:MD_Identifier>
</cit:identifier>
</cit:CI_Citation>
</mri:name>
josegar74 commented 4 years ago

@pvgenuchten about this comment: Suggestion would be to harvest and show the link.

In the previous snippet the link has a title, unless I'm misunderstanding it, I think that should be enough to display it, no? Not very clear what is the proposal about harvesting? the link content?

pvgenuchten commented 4 years ago

harvesting was a typo - should be 'index' the link and title and display as hyperlink in stead of open-record link

josegar74 commented 3 years ago

@pvgenuchten, currently the link is handled in the following code:

https://github.com/geonetwork/core-geonetwork/blob/3d71504370d6d8b84efa75efb004f9a8ef9afc26/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/index-fields/common.xsl#L540-L543

It checks mri:metadataReference/@uuidref and if no value checks mri:metadataReference/cit:CI_Citation/cit:identifier/mcc:MD_Identifier/mcc:code/gco:CharacterString

But you're proposing mri:name/cit:CI_Citation/cit:identifier/mcc:MD_Identifier/mcc:code/gcx:Anchor/@xlink:href, before any change I want to confirm it's a correct element to use.

pvgenuchten commented 3 years ago

Nice work, the use of identifier/anchor/@href was suggested by user, not sure if we're able to populate that element from the gn user interface. a suggestion could be to allow both anchor/@href as well as characterstring