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