Lines 1256-1276
sub buildQuery {
Link Here
|
1256 |
my $group_OR_limits; |
1256 |
my $group_OR_limits; |
1257 |
my $availability_limit; |
1257 |
my $availability_limit; |
1258 |
foreach my $this_limit (@limits) { |
1258 |
foreach my $this_limit (@limits) { |
1259 |
# if ( $this_limit =~ /available/ ) { |
1259 |
if ( $this_limit =~ /available/ ) { |
1260 |
# |
1260 |
|
1261 |
## 'available' is defined as (items.onloan is NULL) and (items.itemlost = 0) |
1261 |
# 'available' is defined as (items.onloan is NULL) and (items.itemlost = 0) |
1262 |
## In English: |
1262 |
# In English: |
1263 |
## all records not indexed in the onloan register (zebra) and all records with a value of lost equal to 0 |
1263 |
# all records not indexed in the onloan register (zebra) and all records with a value of lost equal to 0 |
1264 |
# $availability_limit .= |
1264 |
$availability_limit .= |
1265 |
#"( ( allrecords,AlwaysMatches='' not onloan,AlwaysMatches='') and (lost,st-numeric=0) )"; #or ( allrecords,AlwaysMatches='' not lost,AlwaysMatches='')) )"; |
1265 |
"( ( allrecords,AlwaysMatches='' not onloan,AlwaysMatches='') and (lost,st-numeric=0) )"; #or ( allrecords,AlwaysMatches='' not lost,AlwaysMatches='')) )"; |
1266 |
# $limit_cgi .= "&limit=available"; |
1266 |
$limit_cgi .= "&limit=available"; |
1267 |
# $limit_desc .= ""; |
1267 |
$limit_desc .= ""; |
1268 |
# } |
1268 |
} |
1269 |
# |
1269 |
|
1270 |
# group_OR_limits, prefixed by mc- |
1270 |
# group_OR_limits, prefixed by mc- |
1271 |
# OR every member of the group |
1271 |
# OR every member of the group |
1272 |
# elsif ( $this_limit =~ /mc/ ) { |
1272 |
elsif ( $this_limit =~ /mc/ ) { |
1273 |
if ( $this_limit =~ /mc/ ) { |
|
|
1274 |
$group_OR_limits .= " or " if $group_OR_limits; |
1273 |
$group_OR_limits .= " or " if $group_OR_limits; |
1275 |
$limit_desc .= " or " if $group_OR_limits; |
1274 |
$limit_desc .= " or " if $group_OR_limits; |
1276 |
$group_OR_limits .= "$this_limit"; |
1275 |
$group_OR_limits .= "$this_limit"; |
1277 |
- |
|
|