Skip to content
Snippets Groups Projects
Commit f45a4923 authored by seitenbau-govdata's avatar seitenbau-govdata Committed by jvanzadelhoff
Browse files

Inspire mapping improvements

- Keep hash sign while transport to coupledServices.xsl
- Increase limit of maximum results in response
- Fix route prefix for SOAP 1.2
parent 0ca1950b
Branches
Tags
No related merge requests found
......@@ -35,14 +35,14 @@
</xsl:template>
<xsl:template name="processRequest">
<csw:GetRecords startPosition="1" maxRecords="250" outputFormat="application/xml"
<csw:GetRecords startPosition="1" maxRecords="500" outputFormat="application/xml"
resultType="results" service="CSW" version="2.0.2"
outputSchema="http://www.isotc211.org/2005/gmd">
<csw:Query typeNames="gmd:MD_Metadata" xmlns:gmd="http://www.isotc211.org/2005/gmd">
<csw:ElementSetName>full</csw:ElementSetName>
<csw:Constraint version="1.1.0">
<ogc:Filter>
<xsl:variable name="ids" select="tokenize($resourceIdentifiers, '\|')"/>
<xsl:variable name="ids" select="tokenize(replace($resourceIdentifiers, '%23', '#'), '\|')"/>
<xsl:choose>
<xsl:when test="count($ids) = 1">
<ogc:PropertyIsEqualTo>
......
......@@ -50,14 +50,14 @@
<xsl:variable name="inspire_md_codelist">http://inspire.ec.europa.eu/metadata-codelist/</xsl:variable>
<xsl:variable name="resourceIdentifiers" select="string-join(/csw:GetRecordsResponse/csw:SearchResults/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:citation/*/gmd:identifier/*/gmd:code/*, '|')"/>
<xsl:variable name="resourceIdentifiers" select="replace(string-join(/csw:GetRecordsResponse/csw:SearchResults/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:citation/*/gmd:identifier/*/gmd:code/*, '|'), '#', '%23')"/>
<xsl:variable name="coupledServicesUri">
<xsl:value-of select="'direct:getCoupledServices'"/>
<xsl:if test="/soapenv:Envelope" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<xsl:value-of select="'Soap11'"/>
</xsl:if>
<xsl:if test="/soap12:Envelope" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<xsl:value-of select="'Soap11'"/>
<xsl:value-of select="'Soap12'"/>
</xsl:if>
<xsl:value-of select="concat('?', $resourceIdentifiers)"/>
</xsl:variable>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment