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

Return to bug 17602