Bugzilla – Attachment 2125 Details for
Bug 4481
Search's Limit to Available filters out many available items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bugfix for bug 4481
0002-Fixes-bug-4481-Limit-to-Available-filters-out-many-a.patch (text/plain), 2.13 KB, created by
Chris Cormack
on 2010-05-18 22:13:00 UTC
(
hide
)
Description:
bugfix for bug 4481
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2010-05-18 22:13:00 UTC
Size:
2.13 KB
patch
obsolete
>From 4ac857cce05e801b5d6ec11f6c099363748914a9 Mon Sep 17 00:00:00 2001 >From: Ian Walls <Ian.Walls@med.nyu.edu> >Date: Tue, 18 May 2010 17:33:36 -0400 >Subject: [PATCH 2/2] Fixes bug 4481: Limit to Available filters out many available items. > Uncomments several of the lines in C4/Search.pm that were commented out with commit 3daa3143 >Content-type: text/plain; charset="utf8" > >--- > C4/Search.pm | 25 ++++++++++++------------- > 1 files changed, 12 insertions(+), 13 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 229ee40..e7c9c76 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1256,21 +1256,20 @@ sub buildQuery { > my $group_OR_limits; > my $availability_limit; > foreach my $this_limit (@limits) { >-# if ( $this_limit =~ /available/ ) { >-# >-## 'available' is defined as (items.onloan is NULL) and (items.itemlost = 0) >-## In English: >-## all records not indexed in the onloan register (zebra) and all records with a value of lost equal to 0 >-# $availability_limit .= >-#"( ( allrecords,AlwaysMatches='' not onloan,AlwaysMatches='') and (lost,st-numeric=0) )"; #or ( allrecords,AlwaysMatches='' not lost,AlwaysMatches='')) )"; >-# $limit_cgi .= "&limit=available"; >-# $limit_desc .= ""; >-# } >-# >+ if ( $this_limit =~ /available/ ) { >+ >+# 'available' is defined as (items.onloan is NULL) and (items.itemlost = 0) >+# In English: >+# all records not indexed in the onloan register (zebra) and all records with a value of lost equal to 0 >+ $availability_limit .= >+"( ( allrecords,AlwaysMatches='' not onloan,AlwaysMatches='') and (lost,st-numeric=0) )"; #or ( allrecords,AlwaysMatches='' not lost,AlwaysMatches='')) )"; >+ $limit_cgi .= "&limit=available"; >+ $limit_desc .= ""; >+ } >+ > # group_OR_limits, prefixed by mc- > # OR every member of the group >-# elsif ( $this_limit =~ /mc/ ) { >- if ( $this_limit =~ /mc/ ) { >+ elsif ( $this_limit =~ /mc/ ) { > $group_OR_limits .= " or " if $group_OR_limits; > $limit_desc .= " or " if $group_OR_limits; > $group_OR_limits .= "$this_limit"; >-- >1.6.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 4481
: 2125