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

Return to bug 17602