Lines 1689-1697
sub buildQuery {
Link Here
|
1689 |
# |
1689 |
# |
1690 |
## 'available' is defined as (items.onloan is NULL) and (items.itemlost = 0) |
1690 |
## 'available' is defined as (items.onloan is NULL) and (items.itemlost = 0) |
1691 |
## In English: |
1691 |
## In English: |
1692 |
## all records not indexed in the onloan register (zebra) and all records with a value of lost equal to 0 |
1692 |
## all records with a not-onloan-count > 0 and all records with a value of lost equal to 0 |
1693 |
$availability_limit .= |
1693 |
$availability_limit .= "( (not-onloan-count,st-numeric>0) and (lost,st-numeric=0) )"; |
1694 |
"( ( allrecords,AlwaysMatches='' not onloan,AlwaysMatches='') and (lost,st-numeric=0) )"; #or ( allrecords,AlwaysMatches='' not lost,AlwaysMatches='')) )"; |
|
|
1695 |
$limit_cgi .= "&limit=available"; |
1694 |
$limit_cgi .= "&limit=available"; |
1696 |
$limit_desc .= ""; |
1695 |
$limit_desc .= ""; |
1697 |
} |
1696 |
} |
1698 |
- |
|
|