From 2bbd811027172af1adb68f9904071951056ecbda Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 6 Sep 2019 09:47:19 +0000 Subject: [PATCH] Bug 16111: (QA follow-up) Few additional corrections [1] Refining the regex on the format parameter in opac-search.pl [2] Adding a colon to dc:identifier. The Dublin Core specs gives me this example: Identifier="ISBN:0385424728" [3] Replacing last occurrence of rss2 in the rss template Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt | 4 ++-- opac/opac-search.pl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt index d25c3747b5..94f7e9ea28 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt @@ -38,7 +38,7 @@ [% INCLUDE 'biblio-title-head.inc' biblio=SEARCH_RESULT %] - ISBN [% SEARCH_RESULT.isbn | html %] + ISBN:[% SEARCH_RESULT.isbn | html %] [% IF ( SEARCH_RESULT.BiblioDefaultViewmarc ) %] [% OPACBaseURL | url %]/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %] [% ELSIF ( SEARCH_RESULT.BiblioDefaultViewisbd ) %] @@ -83,7 +83,7 @@ xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"> [% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | html %][% limit_cgi | html %]&format=atom [% LibraryName | html %] Search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %] - + [% timestamp | html %] [% LibraryName | html %] diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 55fe17f006..a7351bb65d 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -119,7 +119,7 @@ else { $template_type = 'advsearch'; } -$format = 'rss' if $format =~ /rss/; +$format = 'rss' if $format =~ /^rss2?$/; # load the template ($template, $borrowernumber, $cookie) = get_template_and_user({ -- 2.39.5