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

Return to bug 17602