Bug 16111: (QA follow-up) Changes related to partial revert
When reverting the & change, we need to go back to html filter for query_cgi and limit_cgi. In this patch I only replaced it where it is needed. The template contains more references to SEARCH_RESULT.query_cgi and SEARCH_RESULT.limit_cgi which are useless, since searchResults does not return these hash keys at all. This patch fixes one occurrence where SEARCH_RESULT was copied outside the loop that defines the template variable. Obviously, the code for RSS still needs more attention. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
fafd719dd3
commit
062c3f9ab2
1 changed files with 4 additions and 4 deletions
|
@ -23,8 +23,8 @@
|
|||
xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title><![CDATA[[% LibraryName | html %] Search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]]]></title>
|
||||
<link>[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&format=rss</link>
|
||||
<atom:link rel="self" type="application/rss+xml" href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% SEARCH_RESULT.query_cgi | $raw %][% SEARCH_RESULT.limit_cgi | $raw %]&sort_by=[% sort_by | uri %]&format=atom"/>
|
||||
<link>[% OPACBaseURL | html %]/cgi-bin/koha/opac-search.pl?[% query_cgi | html %][% limit_cgi | html %]&format=rss</link>
|
||||
<atom:link rel="self" type="application/rss+xml" href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | html %][% limit_cgi | html %]&sort_by=[% sort_by | uri %]&format=atom"/>
|
||||
<description><![CDATA[ Search results [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %] at [% LibraryName | html %]]]></description>
|
||||
<opensearch:totalResults>[% total | html %]</opensearch:totalResults>
|
||||
<opensearch:startIndex>[% offset | html %]</opensearch:startIndex>
|
||||
|
@ -81,9 +81,9 @@
|
|||
[% IF ( atom ) %]
|
||||
<feed xmlns="http://www.w3.org/2005/Atom"
|
||||
xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
|
||||
<id>[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&format=atom</id>
|
||||
<id>[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | html %][% limit_cgi | html %]&format=atom</id>
|
||||
<title>[% LibraryName | html %] Search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]</title>
|
||||
<link href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&format=rss2"/>
|
||||
<link href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | html %][% limit_cgi | html %]&format=rss2"/>
|
||||
<updated>[% timestamp | html %]</updated>
|
||||
<author>
|
||||
<name>[% LibraryName | html %]</name>
|
||||
|
|
Loading…
Reference in a new issue