@@ -, +, @@
- Open the RSS link appearing after the "Your search returned..."
header.
- Depending on how your browser handles XML documents you may need to
view source on the page to see the actual XML markup.
- Copy the source and paste it into the W3C feed validator:
https://validator.w3.org/feed/#validate_by_input
- The feed should be found to be valid.
- In my tests you'll get a "Recommendation" about "Self reference
doesn't match document location." I think this recommendation
doesn't apply.
- Change the end of the RSS feed url from '&format=rss' to
'&format=atom' and validate the result.
- The same "self reference" recommendation will come up, and again I
think we can ignore it.
- There is another recommendation about "Two entries with the same
value for atom:updated." The updated time is set to the same time
as the feed itself (the time when the feed was generated. Maybe
this is incorrect. If so we need a follow-up that exposes a
different value to the template. biblio.datecreated maybe?
- Change the end of the feed url from '&format=atom' to
'&format=OpenSearchDescription' and validate that result.
---
.../bootstrap/en/modules/opac-opensearch.tt | 350 ++++++++++++------
1 file changed, 237 insertions(+), 113 deletions(-)
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-opensearch.tt
@@ -1,125 +1,249 @@
-
+[%- FILTER collapse -%]
[%- USE raw -%]
[%- USE Koha -%]
[%- PROCESS 'html_helpers.inc' -%]
-[% IF ( opensearchdescription ) %]
-
+ [% IF ( opensearchdescription ) %]
+
-[% END %][% END %][% END %]
+ [% IF ( rss ) %]
+
+ ]]>
+ [% END %]
+ [% END %]
-[% bt_id = ( SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_isbn ) %]
-[% IF ( BakerTaylorEnabled ) %][% IF bt_id %]
[% END %][% END %]
+ [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
+ [% SET custom_cover_image_url = SEARCH_RESULT.biblio_object.custom_cover_image_url %]
+ [% IF custom_cover_image_url %]
+
+ ]]>
+ [% END %]
+ [% END %]
+
+ [% IF ( SEARCH_RESULT.author ) %]
+ By [% SEARCH_RESULT.author | html %].
+ [% END %]
+ [% IF ( SEARCH_RESULT.place ) %]
+ [% SEARCH_RESULT.place | html %]
+ [% END %]
+ [% IF ( SEARCH_RESULT.publishercode ) %]
+ [% SEARCH_RESULT.publishercode | html %]
+ [% END %]
+ [% IF ( SEARCH_RESULT.publicationyear ) %]
+ [% SEARCH_RESULT.publicationyear | html %]
+ [% ELSE %]
+ [% IF ( SEARCH_RESULT.copyrightdate ) %]
+ [% SEARCH_RESULT.copyrightdate | html %]
+ [% END %]
+ [% END %]
+ [% IF ( SEARCH_RESULT.pages ) %]
+ .
[% SEARCH_RESULT.pages | html %]
+ [% END %]
+ [% IF ( SEARCH_RESULT.notes ) %]
+ , [% SEARCH_RESULT.notes | html %]
+ [% END %]
+ [% IF ( SEARCH_RESULT.size ) %]
+ [% SEARCH_RESULT.size | html %].
+ [% END %]
+ [% IF ( SEARCH_RESULT.isbn ) %]
+ [% SEARCH_RESULT.isbn | html %]
+ [% END %]
+
[% IF ( SEARCH_RESULT.author ) %]By [% SEARCH_RESULT.author | html %]. [% END %] - [% IF ( SEARCH_RESULT.place ) %][% SEARCH_RESULT.place | html %] [% END %][% IF ( SEARCH_RESULT.publishercode ) %][% SEARCH_RESULT.publishercode | html %][% END %][% IF ( SEARCH_RESULT.publicationyear ) %] [% SEARCH_RESULT.publicationyear | html %] - [% ELSE %][% IF ( SEARCH_RESULT.copyrightdate ) %] [% SEARCH_RESULT.copyrightdate | html %][% END %][% END %] - [% IF ( SEARCH_RESULT.pages ) %]. [% SEARCH_RESULT.pages | html %][% END %] - [% IF ( SEARCH_RESULT.notes ) %], [% SEARCH_RESULT.notes | html %][% END %] - [% IF ( SEARCH_RESULT.size ) %] [% SEARCH_RESULT.size | html %]. [% END %] - [% IF ( SEARCH_RESULT.isbn ) %] [% SEARCH_RESULT.isbn | html %][% END %] -
-[% IF Koha.Preference( 'OPACHoldRequests' ) == 1 %] -Place hold on [% SEARCH_RESULT.title | html %]
-[% END %] - ]]> -