Skip to content

Commit

Permalink
INSPIRE Atom feeds / Fix link to atom search endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
josegar74 committed Dec 20, 2023
1 parent 0c8c74e commit efe1d87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
8 changes: 0 additions & 8 deletions web/src/main/webResources/WEB-INF/urlrewrite.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,6 @@
<to type="forward">/srv/api/atom/feeds</to>
</rule>

<rule>
<note>
INSPIRE HTML search
</note>
<from>^/(.*)/(.*)/opensearch/htmlsearch\?.*q=(.*)</from>
<to type="permanent-redirect">%{context-path}/$1/$2/catalog.search#/search?any=$3</to>
</rule>

<rule>
<note>
INSPIRE Atom Describe (service)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

<os:Url type="text/html" rel="results">
<xsl:attribute name="template"
select="concat(/root/gui/url,'/srv/', /root/gui/language,'/opensearch/htmlsearch?q={searchTerms?}')"/>
select="concat(/root/gui/url,'/opensearch/', /root/gui/language,'/search?q={searchTerms?}')"/>
</os:Url>
</xsl:when>
<xsl:otherwise>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<xsl:param name="atomDescribeServiceUrlSuffix" />
<xsl:param name="atomDescribeDatasetUrlSuffix" />
<xsl:param name="atomDownloadDatasetUrlSuffix" />
<xsl:param name="baseUrl" />
<xsl:param name="nodeName" />
<xsl:output method="xml" indent="no" encoding="utf-8"/>

Expand Down Expand Up @@ -53,7 +54,7 @@
<Url type="text/html" rel="results">
<xsl:attribute name="template">
<xsl:value-of
select="concat($nodeUrl, $requestedLanguage, '/', $opensearchUrlSuffix, '/htmlsearch?q={searchTerms?}')"/>
select="concat($baseUrl, $opensearchUrlSuffix, '/', $requestedLanguage, '/search?q={searchTerms?}')"/>
</xsl:attribute>
</Url>

Expand Down

0 comments on commit efe1d87

Please sign in to comment.