Skip to content

Commit

Permalink
send modern-style ISO19115:2003 md links to geoserver when geopublishing
Browse files Browse the repository at this point in the history
this should please mapstore.
  • Loading branch information
landryb committed Feb 9, 2022
1 parent dded15f commit 69f827f
Showing 1 changed file with 4 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,25 +227,12 @@ private void createCoverageForStore(String ws, String cs, String file,
+ "<type>text/xml</type>"
+ "<metadataType>ISO19115:2003</metadataType>"
+ "<content>"
+ this.baseCatalogueUrl
+ "/csw?SERVICE=CSW&amp;VERSION=2.0.2&amp;REQUEST=GetRecordById"
+ "&amp;outputSchema=http://www.isotc211.org/2005/gmd"
+ "&amp;ID=" + metadataUuid
+ this.nodeUrl + "api/records/" + metadataUuid + "/formatters/xml"
+ "</content>"
+ "</metadataLink>"
+ "<metadataLink>"
+ "<type>text/html</type>"
+ "<metadataType>TC211</metadataType>"
+ "<content>"
+ this.baseCatalogueUrl
+ "/csw?SERVICE=CSW&amp;VERSION=2.0.2&amp;REQUEST=GetRecordById"
+ "&amp;outputSchema=http://www.isotc211.org/2005/gmd"
+ "&amp;ID=" + metadataUuid
+ "</content>"
+ "</metadataLink>"
+ "<metadataLink>"
+ "<type>text/html</type>"
+ "<metadataType>TC211</metadataType>"
+ "<metadataType>ISO19115:2003</metadataType>"
+ "<content>"
+ this.nodeUrl + "api/records/" + metadataUuid
+ "</content>"
Expand Down Expand Up @@ -580,25 +567,12 @@ public boolean createFeatureType(String ws, String ds, String ft,
+ "<type>text/xml</type>"
+ "<metadataType>ISO19115:2003</metadataType>"
+ "<content>"
+ this.baseCatalogueUrl
+ "/csw?SERVICE=CSW&amp;VERSION=2.0.2&amp;REQUEST=GetRecordById"
+ "&amp;outputSchema=http://www.isotc211.org/2005/gmd"
+ "&amp;ID=" + metadataUuid
+ "</content>"
+ "</metadataLink>"
+ "<metadataLink>"
+ "<type>text/xml</type>"
+ "<metadataType>TC211</metadataType>"
+ "<content>"
+ this.baseCatalogueUrl
+ "/csw?SERVICE=CSW&amp;VERSION=2.0.2&amp;REQUEST=GetRecordById"
+ "&amp;outputSchema=http://www.isotc211.org/2005/gmd"
+ "&amp;ID=" + metadataUuid
+ this.nodeUrl + "api/records/" + metadataUuid + "/formatters/xml"
+ "</content>"
+ "</metadataLink>"
+ "<metadataLink>"
+ "<type>text/html</type>"
+ "<metadataType>TC211</metadataType>"
+ "<metadataType>ISO19115:2003</metadataType>"
+ "<content>"
+ this.nodeUrl + "api/records/" + metadataUuid
+ "</content>"
Expand Down

0 comments on commit 69f827f

Please sign in to comment.