Opened 12 years ago
Closed 12 years ago
#1227 closed defect (fixed)
Also create a TC211 metadataLink when posting to geoserver
Reported by: | landry | Owned by: | |
---|---|---|---|
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)
Change History (6)
by , 12 years ago
Attachment: | wms-1.1.1-metadataURL.diff added |
---|
comment:1 by , 12 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 , 12 years ago
Attachment: | 0002-Post-the-link-to-the-widgetsUI-view-rather-than-the-.patch added |
---|
Post the link to the widgetsUI view rather than the csw/xml view for <metadataLink>
comment:2 by , 12 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 , 12 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 , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
master commit 432870840a7a97722ae65849a2a40368db5d7559, d55b23bc7862c0d4684cb37b19eb3fb80bec0425, e85661defd276ce3db409870b2ecb4c40bc63a01
Also create a TC211 metadataLink when posting to geoserver