From 5ab88df697756745ffc0aaea22326129f1e7d518 Mon Sep 17 00:00:00 2001
From: Christophe Croullebois
Date: Tue, 17 May 2011 10:16:07 +1200
Subject: [PATCH] Bug 6147 : Correcting invalid RSS
Signed-off-by: Liz Rea
Feed validates using http://feed1.w3.org/ with the following recommendations:
This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
line 12, column 149: Relative href value on self link: /cgi-bin/koha/opac-search.pl?idx=kw&q=some&sort_by=acqdate_dsc&format=rss2 [help]
... p;sort_by=acqdate_dsc&format=rss2"/>
^
line 12, column 149: Self reference doesn't match document location [help]
... p;sort_by=acqdate_dsc&format=rss2"/>
^
line 20, column 158: Unregistered link relationship: search (10 occurrences) [help]
... _by=&format=opensearchdescription"/>
^
line 40, column 9: description should not contain relative URL references: /cgi-bin/koha/opac-reserve.pl?biblionumber=10 (10 occurrences) [help]
]]>
^
line 22, column 5: Misplaced Item (9 occurrences) [help]
-
Signed-off-by: Paul Poulain
(cherry picked from commit a0a57b9526c244771aac57ad3ac3dee5dec1a16e)
Signed-off-by: Chris Nighswonger
---
.../prog/en/modules/opac-opensearch.tt | 20 +++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-opensearch.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-opensearch.tt
index 07103440ba..14a5f3ea95 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-opensearch.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-opensearch.tt
@@ -14,11 +14,12 @@
[% IF ( rss2 ) %]
[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&format=rss2
-
+
[% total %]
[% offset %]
@@ -27,20 +28,19 @@
[% ELSE %]
20
[% END %]
-
-
[% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
+
+
-
[% SEARCH_RESULT.title |html %] [% FOREACH subtitl IN SEARCH_RESULT.subtitle %], [% subtitl.subfield |html %][% END %]
- [% SEARCH_RESULT.isbn |html %]
+ ISBN [% SEARCH_RESULT.isbn |html %]
[% IF ( SEARCH_RESULT.BiblioDefaultViewmarc ) %][% OPACBaseURL %]/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %][% ELSE %][% IF ( SEARCH_RESULT.BiblioDefaultViewisbd ) %][% OPACBaseURL %]/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %][% ELSE %][% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %][% END %][% END %]
[% END %][% END %][% END %]
-
-[% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( SEARCH_RESULT.content_identifier_exists ) %][% IF ( using_https ) %]
+[% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( SEARCH_RESULT.content_identifier_exists ) %]
[% ELSE %]
-[% END %][% END %][% END %][% END %]
+[% END %][% END %][% END %]
[% IF ( BakerTaylorEnabled ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %][% END %][% END %]
[% IF ( SEARCH_RESULT.author ) %]By [% SEARCH_RESULT.author |html %]. [% END %]
@@ -51,7 +51,7 @@
[% IF ( SEARCH_RESULT.size ) %] [% SEARCH_RESULT.size |html %]. [% END %]
[% IF ( SEARCH_RESULT.isbn ) %] [% SEARCH_RESULT.isbn |html %][% END %]
[% IF ( RequestOnOpac ) %]
-Place Hold on [% SEARCH_RESULT.title |html %]
+Place Hold on [% SEARCH_RESULT.title %]
[% END %]
]]>
[% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]
@@ -80,12 +80,12 @@
20
[% END %]
-
+
-
+
[% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
--
2.39.5