Revert "Bug 17278: Fix "show all items" link"

This reverts commit 24e69d1ccbe0efa5ad49db7cd3bfe09cfab6a6ca.
This commit is contained in:
Mason James 2016-12-29 13:50:42 +13:00
parent f7d75c5f2b
commit aed6d17ffd
1 changed files with 0 additions and 4 deletions

View File

@ -1472,10 +1472,6 @@ sub buildQuery {
# this happens when selecting a subject on the opac-detail page
@limits = grep {!/^$/} @limits;
my $original_q = $q; # without available part
unless ( grep { /^available$/ } @limits ) {
$q =~ s| and \( \( allrecords,AlwaysMatches:'' not onloan,AlwaysMatches:''\) and \(lost,st-numeric=0\) \)||;
$original_q = $q;
}
if ( @limits ) {
if ( grep { /^available$/ } @limits ) {
$q .= q| and ( ( allrecords,AlwaysMatches:'' not onloan,AlwaysMatches:'') and (lost,st-numeric=0) )|;