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 913-919 $(document).ready(function(){ Link Here
913
                return;
913
                return;
914
            }
914
            }
915
915
916
            if ( data.total > 0 ) {
916
            // data.total can be either 42 or "60+"
917
            if ( typeof(data.total) === 'string' && data.total.charAt(0) > 0 || typeof(data.total) === 'number' && data.total > 0 ) {
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
                $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 {
919
            } else {
919
                $recordedbooks_results.remove();
920
                $recordedbooks_results.remove();
920
- 

Return to bug 17602