Bugzilla – Attachment 92624 Details for
Bug 16111
RSS feed for OPAC search results has wrong content type
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16111: (QA follow-up) Few additional corrections
Bug-16111-QA-follow-up-Few-additional-corrections.patch (text/plain), 2.84 KB, created by
Marcel de Rooy
on 2019-09-06 09:58:37 UTC
(
hide
)
Description:
Bug 16111: (QA follow-up) Few additional corrections
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2019-09-06 09:58:37 UTC
Size:
2.84 KB
patch
obsolete
>From ecf9621df292b018e445603277e7cbc1e6be982e Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 6 Sep 2019 09:47:19 +0000 >Subject: [PATCH] Bug 16111: (QA follow-up) Few additional corrections >Content-Type: text/plain; charset=utf-8 > >[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 <m.de.rooy@rijksmuseum.nl> >--- > 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 @@ > <opensearch:Query role="request" searchTerms="[% SEARCH_RESULT.query_desc |uri %][% SEARCH_RESULT.limit_desc |uri %]" startPage="[% SEARCH_RESULT.page | html %]" /> > <item> > <title>[% INCLUDE 'biblio-title-head.inc' biblio=SEARCH_RESULT %]</title> >- <dc:identifier>ISBN [% SEARCH_RESULT.isbn | html %]</dc:identifier> >+ <dc:identifier>ISBN:[% SEARCH_RESULT.isbn | html %]</dc:identifier> > [% IF ( SEARCH_RESULT.BiblioDefaultViewmarc ) %] > <link>[% OPACBaseURL | url %]/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber | uri %]</link> > [% ELSIF ( SEARCH_RESULT.BiblioDefaultViewisbd ) %] >@@ -83,7 +83,7 @@ > xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"> > <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 | html %][% limit_cgi | html %]&format=rss2"/> >+ <link href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-search.pl?[% query_cgi | html %][% limit_cgi | html %]&format=rss"/> > <updated>[% timestamp | html %]</updated> > <author> > <name>[% LibraryName | html %]</name> >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.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16111
:
49400
|
49587
|
49629
|
49837
|
76148
|
76160
|
76161
|
76162
|
77057
|
77058
|
77059
|
77060
|
78578
|
78579
|
78580
|
78581
|
78689
|
81285
|
81286
|
81287
|
81288
|
92050
|
92362
|
92363
|
92366
|
92435
|
92436
|
92437
|
92438
|
92439
|
92618
|
92619
|
92620
|
92621
|
92622
|
92623
| 92624