Lines 2-8
Link Here
|
2 |
[% USE Asset %] |
2 |
[% USE Asset %] |
3 |
[% USE Koha %] |
3 |
[% USE Koha %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › RecordedBooks search for '[% q | html %]'</title> |
5 |
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › RecordedBooks search for '[% q | html %]'</title> |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
[% BLOCK cssinclude %] |
7 |
[% BLOCK cssinclude %] |
8 |
[% Asset.css("css/jquery.rating.css") | $raw %] |
8 |
[% Asset.css("css/jquery.rating.css") | $raw %] |
Lines 61-74
Link Here
|
61 |
|
61 |
|
62 |
[% INCLUDE 'opac-bottom.inc' %] |
62 |
[% INCLUDE 'opac-bottom.inc' %] |
63 |
[% BLOCK jsinclude %] |
63 |
[% BLOCK jsinclude %] |
64 |
[% Asset.js("js/recordedbooks.js") %] |
64 |
[% Asset.js("js/recordedbooks.js") | $raw %] |
65 |
[% Asset.js("lib/jquery/plugins/jquery.rating.js") %] |
65 |
[% Asset.js("lib/jquery/plugins/jquery.rating.js") | $raw %] |
66 |
<script type="text/javascript"> |
66 |
<script type="text/javascript"> |
67 |
var querystring = "[% q |replace( "'", "\'" ) |replace( '\n', '\\n' ) |replace( '\r', '\\r' ) |html %]"; |
67 |
var querystring = "[% q |replace( "'", "\'" ) |replace( '\n', '\\n' ) |replace( '\r', '\\r' ) |html %]"; |
68 |
var results_per_page = [% OPACnumSearchResults || 20 %]; |
68 |
var results_per_page = [% OPACnumSearchResults || 20 | html %]; |
69 |
|
69 |
|
70 |
function search( page ) { |
70 |
function search( page ) { |
71 |
$( '#recordedbooks-status' ).html( MSG_SEARCHING.format("RecordedBooks") + ' <img class="throbber" src="[% interface %]/lib/jquery/plugins/themes/classic/throbber.gif" /></span>' ); |
71 |
$( '#recordedbooks-status' ).html( MSG_SEARCHING.format("RecordedBooks") + ' <img class="throbber" src="[% interface | html %]/lib/jquery/plugins/themes/classic/throbber.gif" /></span>' ); |
72 |
|
72 |
|
73 |
KOHA.RecordedBooks.search( querystring, results_per_page, page, function( data ) { |
73 |
KOHA.RecordedBooks.search( querystring, results_per_page, page, function( data ) { |
74 |
if ( data.error ) { |
74 |
if ( data.error ) { |