From aed6d17ffd3aa6de49deb9dab9436ba979c35f6e Mon Sep 17 00:00:00 2001 From: Mason James Date: Thu, 29 Dec 2016 13:50:42 +1300 Subject: [PATCH] Revert "Bug 17278: Fix "show all items" link" This reverts commit 24e69d1ccbe0efa5ad49db7cd3bfe09cfab6a6ca. --- C4/Search.pm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 10d566e59b..dd5982816d 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -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) )|; -- 2.39.5