|
Lines 26-32
Link Here
|
| 26 |
<div class="span10"> |
26 |
<div class="span10"> |
| 27 |
<div id="recordedbooks-results-content" class="maincontent searchresults"> |
27 |
<div id="recordedbooks-results-content" class="maincontent searchresults"> |
| 28 |
<h1>RecordedBooks search for '[% q | html %]'</h1> |
28 |
<h1>RecordedBooks search for '[% q | html %]'</h1> |
| 29 |
[% UNLESS ( loggedinusername ) %] |
29 |
[% UNLESS ( logged_in_user ) %] |
| 30 |
<h3 class="rb_login">Sign in to view availability and checkout items or place holds</h3> |
30 |
<h3 class="rb_login">Sign in to view availability and checkout items or place holds</h3> |
| 31 |
[% END %] |
31 |
[% END %] |
| 32 |
|
32 |
|
|
Lines 140-145
function search( page ) {
Link Here
|
| 140 |
|
140 |
|
| 141 |
if ( pages.length > 1 ) $( '#top-pages, #bottom-pages' ).find( '.pagination' ).html( '<ul>' + pages.join( '' ) + '</ul>'); |
141 |
if ( pages.length > 1 ) $( '#top-pages, #bottom-pages' ).find( '.pagination' ).html( '<ul>' + pages.join( '' ) + '</ul>'); |
| 142 |
|
142 |
|
|
|
143 |
if( KOHA.RecordedBooks.is_identified() == false ){ |
| 144 |
$("#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>'); |
| 145 |
} |
| 146 |
|
| 143 |
} ); |
147 |
} ); |
| 144 |
} |
148 |
} |
| 145 |
|
149 |
|
|
Lines 153-165
$( document ).ready( function() {
Link Here
|
| 153 |
return false; |
157 |
return false; |
| 154 |
}); |
158 |
}); |
| 155 |
|
159 |
|
| 156 |
[% IF ( loggedinusername ) %] |
160 |
[% IF ( logged_in_user ) %] |
| 157 |
KOHA.RecordedBooks.with_account_details("#breadcrumbs", function() { |
161 |
KOHA.RecordedBooks.with_account_details("#breadcrumbs", function() { |
| 158 |
search( 1 ); |
162 |
search( 1 ); |
| 159 |
}); |
163 |
}); |
| 160 |
if( KOHA.RecordedBooks.is_identified() == 'false' ){ |
|
|
| 161 |
$("#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>'); |
| 162 |
} |
| 163 |
[% ELSE %] |
164 |
[% ELSE %] |
| 164 |
search( 1 ); |
165 |
search( 1 ); |
| 165 |
[% END %] |
166 |
[% END %] |
| 166 |
- |
|
|