Skip to content

Commit

Permalink
Inspire mapping improvements
Browse files Browse the repository at this point in the history
- Keep hash sign while transport to coupledServices.xsl
- Increase limit of maximum results in response
- Fix route prefix for SOAP 1.2
  • Loading branch information
seitenbau-govdata authored and jvanzadelhoff committed Jul 17, 2020
1 parent 0ca1950 commit f45a492
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/coupledServices.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -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:https://www.isotc211.org/2005/gmd">
<csw:Query typeNames="gmd:MD_Metadata" xmlns:gmd="http:https://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>
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/iso2dcat.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@

<xsl:variable name="inspire_md_codelist">http:https://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:https://schemas.xmlsoap.org/soap/envelope/">
<xsl:value-of select="'Soap11'"/>
</xsl:if>
<xsl:if test="/soap12:Envelope" xmlns:soap12="http:https://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>
Expand Down

0 comments on commit f45a492

Please sign in to comment.