Lines 905-921
$(document).ready(function(){
Link Here
|
905 |
} ); |
905 |
} ); |
906 |
[% END %] |
906 |
[% END %] |
907 |
[% IF ( RecordedBooksEnabled ) %] |
907 |
[% IF ( RecordedBooksEnabled ) %] |
908 |
var $recordedbooks_results = $( '<div id="recordedbooks-results">' + _( 'Searching RecordedBooks...' ) + ' <img class="throbber" src="[% interface %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' ); |
908 |
var $recordedbooks_results = $( '<div id="recordedbooks-results">' + _( "Searching RecordedBooks..." ) + ' <img class="throbber" src="[% interface %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' ); |
909 |
$( '#numresults' ) .append( ' ' ) |
909 |
$( '#numresults' ) .append( ' ' ) |
910 |
.append( $recordedbooks_results ); |
910 |
.append( $recordedbooks_results ); |
911 |
KOHA.RecordedBooks.search( querystring, [% OPACnumSearchResults || "null" %], null, function( data ) { |
911 |
KOHA.RecordedBooks.search( querystring, [% OPACnumSearchResults || "null" %], null, function( data ) { |
912 |
if ( data.error ) { |
912 |
if ( data.error ) { |
913 |
$recordedbooks_results.html( _( 'Error searching RecordedBooks collection' ) + ': ' + data.error); |
913 |
$recordedbooks_results.html( _( "Error searching RecordedBooks collection: %s" ).format( data.error ) ); |
914 |
return; |
914 |
return; |
915 |
} |
915 |
} |
916 |
|
916 |
|
917 |
if ( data.total > 0 ) { |
917 |
if ( data.total > 0 ) { |
918 |
$recordedbooks_results.html( _( 'Found' ) + ' <a href="/cgi-bin/koha/opac-recordedbooks-search.pl?q=' + escape( querystring ) + '">' + data.total + ' ' + _( 'results' ) + '</a> ' + _( 'in RecordedBooks collection' ) ); |
918 |
$recordedbooks_results.html( _( "Found %s results in RecordedBooks collection" ).format('<a href="/cgi-bin/koha/opac-recordedbooks-search.pl?q=' + escape( querystring ) + '">' + data.total + '</a>') ); |
919 |
} else { |
919 |
} else { |
920 |
$recordedbooks_results.remove(); |
920 |
$recordedbooks_results.remove(); |
921 |
} |
921 |
} |
922 |
- |
|
|