Opened 11 years ago

Closed 11 years ago

#1227 closed defect (fixed)

Also create a TC211 metadataLink when posting to geoserver

Reported by: landry Owned by: geonetwork-devel@…
Priority: major Milestone: v2.10.0 RC0
Component: General Version: v2.8.0RC2
Keywords: Cc:

Description

As of now, GeoServerRest.java only creates a metadataLink element for ISO19115:2003 type - the getCapabilities of geoserver only shows a metadataURL if WMS 1.3.0 is used, if WMS 1.1.1 is used the metadataLink information is not shown since 1.1.1 specifies that only TC211 or FGDC are allowed. Since ISO19115 is apparently a subset of TC211, it costs nothing to push the metadataLink twice, so that WMS 1.1.1 getCapabilities show a metadataURL too.

Attachments (2)

wms-1.1.1-metadataURL.diff (2.0 KB ) - added by landry 11 years ago.
Also create a TC211 metadataLink when posting to geoserver
0002-Post-the-link-to-the-widgetsUI-view-rather-than-the-.patch (1.9 KB ) - added by landry 11 years ago.
Post the link to the widgetsUI view rather than the csw/xml view for <metadataLink>

Download all attachments as: .zip

Change History (6)

by landry, 11 years ago

Attachment: wms-1.1.1-metadataURL.diff added

Also create a TC211 metadataLink when posting to geoserver

comment:1 by landry, 11 years ago

I also realized that the <metadataLink> posted the link to the csw service returning the XML metadata - depending on the client application it might be more interesting to put a link to the 'user' view of the metadata, ie /webapp/apps/search/?id=<uuid> when using the widgets UI.

Since ticket #606 was funded by grandLyon i suppose there's a reason for that behaviour in their usecase, but could it be made configurable then ? Maybe in geoserver-nodes.xml ?

by landry, 11 years ago

Post the link to the widgetsUI view rather than the csw/xml view for <metadataLink>

comment:2 by fxp, 11 years ago

I propose to add 3 links instead:

  • 2 to CSW GetRecordById request with attribute type set to ISO19115:2003 and TC211 for WMS 1.1.1 and WMS 1.3.0 - this url is used by harvester for example
  • 1 to the HTML page

Example:

<MetadataURL type="ISO19115:2003">
 <Format>text/xml</Format>
 <OnlineResource xlink:type="simple" xlink:href="http://localhost:8080/geonetwork/srv/eng/csw?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&ID=171f8070-33fa-471a-b533-7459d221b4c5"/>
</MetadataURL>
<MetadataURL type="TC211">
 <Format>text/xml</Format>
 <OnlineResource xlink:type="simple" xlink:href="http://localhost:8080/geonetwork/srv/eng/csw?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&ID=171f8070-33fa-471a-b533-7459d221b4c5"/>
</MetadataURL>
<MetadataURL type="TC211">
 <Format>text/html</Format>
 <OnlineResource xlink:type="simple" xlink:href="http://localhost:8080/geonetwork/srv/eng/?uuid=171f8070-33fa-471a-b533-7459d221b4c5"/>
</MetadataURL>

comment:3 by landry, 11 years ago

Good idea - i'll try to make sure that on my side the app (mapfishapp) takes the text/html link..

comment:4 by fxp, 11 years ago

Resolution: fixed
Status: newclosed

master commit 432870840a7a97722ae65849a2a40368db5d7559, d55b23bc7862c0d4684cb37b19eb3fb80bec0425, e85661defd276ce3db409870b2ecb4c40bc63a01

Note: See TracTickets for help on using tickets.