Bugzilla – Attachment 96357 Details for
Bug 23261
RecordedBooks - notify patron of need to login / register to see availability
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23261: (follow-up) Use logged_in_user and move test
Bug-23261-follow-up-Use-loggedinuser-and-move-test.patch (text/plain), 2.34 KB, created by
Nick Clemens (kidclamp)
on 2019-12-17 02:08:18 UTC
(
hide
)
Description:
Bug 23261: (follow-up) Use logged_in_user and move test
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2019-12-17 02:08:18 UTC
Size:
2.34 KB
patch
obsolete
>From 93f491e3b88f36d28faa07e697b6e0e5e29e36b5 Mon Sep 17 00:00:00 2001 >From: Nick <nick@bywatersolutions.com> >Date: Tue, 17 Dec 2019 02:07:47 +0000 >Subject: [PATCH] Bug 23261: (follow-up) Use logged_in_user and move test > >--- > .../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 @@ > <div class="span10"> > <div id="recordedbooks-results-content" class="maincontent searchresults"> > <h1>RecordedBooks search for '[% q | html %]'</h1> >- [% UNLESS ( loggedinusername ) %] >+ [% UNLESS ( logged_in_user ) %] > <h3 class="rb_login">Sign in to view availability and checkout items or place holds</h3> > [% END %] > >@@ -140,6 +140,10 @@ function search( page ) { > > if ( pages.length > 1 ) $( '#top-pages, #bottom-pages' ).find( '.pagination' ).html( '<ul>' + pages.join( '' ) + '</ul>'); > >+ if( KOHA.RecordedBooks.is_identified() == false ){ >+ $("#breadcrumbs").before('<h3 class="rb_register"><a href="https://[% Koha.Preference('RecordedBooksDomain') %]">To see availability you must register for RecordedBooks using your cardnumber and the email associated with your Koha account</a></h3>'); >+ } >+ > } ); > } > >@@ -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('<h3 class="rb_register"><a href="https://[% Koha.Preference('RecordedBooksDomain') %]">To see availability you must register for RecordedBooks using your cardnumber and the email associated with your Koha account</a></h3>'); >- } > [% ELSE %] > search( 1 ); > [% END %] >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23261
:
91233
|
94773
|
96038
|
96356
| 96357