From d39787147ca98bf2b2b982d60dbbc22e21c0a676 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 19 Apr 2019 11:25:43 +0000 Subject: [PATCH] Bug 22743: Add password modal to overdrive results page This patch also removes a line abotu ratings which was throwing an error. Confirm stars rating for OD results are still shown as expected To test: 1 - Enable overdrive circulation with password required 2 - Sign in to OPAC but not overdrive 3 - Perform a search that returns overdrive results 4 - Click in to results page http://localhost:8080/cgi-bin/koha/opac-overdrive-search.pl?q=cats 5 - Note 'Login to OverDrive account' link 6 - Click it 7 - Nothing happens! 8 - Apply patch 9 - Repeat 10 - Success! Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens (cherry picked from commit 7be176cf1da5adb5f264bb9668667dfeb1d9a2ae) Signed-off-by: Martin Renvoize (cherry picked from commit 461c7176735cbfd4ed7db97a9fa094b60ac2e0ca) Signed-off-by: Lucas Gass --- .../bootstrap/en/modules/opac-overdrive-search.tt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 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 29caf86478..6a1a190240 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 @@ -56,7 +56,12 @@ -[% INCLUDE 'overdrive-checkout.inc' %] +[% IF ( Koha.Preference('OverDriveCirculation') ) %] + [% INCLUDE 'overdrive-checkout.inc' %] + [% IF ( Koha.Preference('OverDrivePasswordRequired') ) %] + [% INCLUDE 'overdrive-login.inc' %] + [% END %] +[% END %] [% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %] @@ -171,7 +176,6 @@ function search( offset ) { if ( pages.length > 1 ) $( '#top-pages, #bottom-pages' ).find( '.pagination' ).html( '
    ' + pages.join( '' ) + '
'); - $( '#overdrive-results-list input.star' ).rating(); } ); } -- 2.39.5