Bugzilla – Attachment 91233 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: Add notice for login/registering to RBdigital results
Bug-23261-Add-notice-for-loginregistering-to-RBdig.patch (text/plain), 2.76 KB, created by
Nick Clemens (kidclamp)
on 2019-07-03 19:15:47 UTC
(
hide
)
Description:
Bug 23261: Add notice for login/registering to RBdigital results
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2019-07-03 19:15:47 UTC
Size:
2.76 KB
patch
obsolete
>From 7d3bcba53d5fb9ee565d8741829b7aacd6157a7d Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 3 Jul 2019 19:11:54 +0000 >Subject: [PATCH] Bug 23261: Add notice for login/registering to RBdigital > results > >To test: > 1 - You will need a valid library RBDigital account > 2 - Fill in the RecordedBooks system preferences > 3 - Open the catalog, perform a search with RBDigtal resuls, 'love' often works > 4 - Click to the results > 5 - Note if not logged you don't see availability > 6 - Log in with a patron with no email, note you do not see any notice that you must register your email with RBDigital > 7 - Apply patch > 8 - Reload results, you now see a notice to register with rbdigital, do so unless you already have an account > 9 - Add your associated email to the koha account >10 - Reload results, note you see availability >11 - Log out, reload results >12 - Note you see a promp to login to see availability >--- > .../opac-tmpl/bootstrap/en/modules/opac-recordedbooks-search.tt | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > >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 64366cd0f3..15581833d0 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,6 +26,10 @@ > <div class="span10"> > <div id="recordedbooks-results-content" class="maincontent searchresults"> > <h1>RecordedBooks search for '[% q | html %]'</h1> >+ [% UNLESS ( loggedinusername ) %] >+ <h3 class="rb_login">Sign in to view availability and checkout items or place holds</h3> >+ [% END %] >+ > <div id="breadcrumbs"> > <p></p> > </div> >@@ -81,7 +85,6 @@ function search( page ) { > for ( var i = 0; data.items[i]; i++ ) { > var prod = data.items[i]; > var results = []; >- > results.push( '<tr>' ); > > results.push( '<td class="info"><span class="title">' ); >@@ -154,6 +157,9 @@ $( document ).ready( function() { > 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