View | Details | Raw Unified | Return to bug 17602
Collapse All | Expand All

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

Return to bug 17602