From f80596660827828c77542690573a99f1379305a8 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 28 Feb 2019 13:12:59 +0000 Subject: [PATCH] Bug 22432: Star ratings plugin replacement missing from a couple pages This patch modifies two templates to conform to the change to the start ratings plugin: Overdrive search results and RecordedBooks search results. On the Overdrive page, the star ratings are now correctly displayed using the new plugin. On the RecordedBooks page, star ratings code has been removed because it is unused. RecordedBooks doesn't provide ratings information in their API. To test you need credentials for both Overdrive and RecordedBooks. Apply the patch and enable both services. - In the OPAC, perform a search that will return results from Overdrive and RecordedBooks. - Open the search results for each of those services. - On the Overdrive search results page, star ratings should appear correctly (in read-only mode). - On the RecordedBooks page everything should look the same. Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer --- .../bootstrap/en/modules/opac-overdrive-search.tt | 22 ++++++++++++++-------- .../en/modules/opac-recordedbooks-search.tt | 10 +--------- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt index 1c2548bcef..62101ac5c6 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt @@ -5,12 +5,6 @@ [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › OverDrive search for '[% q | html %]' [% INCLUDE 'doc-head-close.inc' %] [% BLOCK cssinclude %] -[% Asset.css("css/jquery.rating.css") | $raw %] - [% END %] [% INCLUDE 'bodytag.inc' bodyid='overdrive-results-page' bodyclass='scrollto' %] @@ -62,7 +56,6 @@ [% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %] [% Asset.js("js/overdrive.js") | $raw %] -[% Asset.js("lib/jquery/plugins/jquery.rating.js") | $raw %]