From bcd7e4c94ccc1ec14ea04d66c80b20a7aecddf96 Mon Sep 17 00:00:00 2001 From: Nick Date: Tue, 17 Dec 2019 02:07:47 +0000 Subject: [PATCH] Bug 23261: (follow-up) Use logged_in_user and move test Signed-off-by: Martin Renvoize --- .../bootstrap/en/modules/opac-recordedbooks-search.tt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recordedbooks-search.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recordedbooks-search.tt index 15581833d0..449f15a311 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recordedbooks-search.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recordedbooks-search.tt @@ -26,7 +26,7 @@

RecordedBooks search for '[% q | html %]'

- [% UNLESS ( loggedinusername ) %] + [% UNLESS ( logged_in_user ) %] [% END %] @@ -140,6 +140,10 @@ function search( page ) { if ( pages.length > 1 ) $( '#top-pages, #bottom-pages' ).find( '.pagination' ).html( '
    ' + pages.join( '' ) + '
'); + if( KOHA.RecordedBooks.is_identified() == false ){ + $("#breadcrumbs").before('

To see availability you must register for RecordedBooks using your cardnumber and the email associated with your Koha account

'); + } + } ); } @@ -153,13 +157,10 @@ $( document ).ready( function() { return false; }); - [% IF ( loggedinusername ) %] + [% IF ( logged_in_user ) %] KOHA.RecordedBooks.with_account_details("#breadcrumbs", function() { search( 1 ); }); - if( KOHA.RecordedBooks.is_identified() == 'false' ){ - $("#breadcrumbs").before('

To see availability you must register for RecordedBooks using your cardnumber and the email associated with your Koha account

'); - } [% ELSE %] search( 1 ); [% END %] -- 2.39.5