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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-2 / +2 lines)
Lines 915-921 $(document).ready(function(){ Link Here
915
                return;
915
                return;
916
            }
916
            }
917
917
918
            if ( data.total > 0 ) {
918
            // data.total can be either 42 or "60+"
919
            if ( typeof(data.total) === 'string' && data.total.charAt(0) > 0 || typeof(data.total) === 'number' && data.total > 0 ) {
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
                $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 {
921
            } else {
921
                $recordedbooks_results.remove();
922
                $recordedbooks_results.remove();
922
- 

Return to bug 17602