[Koha] Currently Available Items Filter Problem
massoud alshareef
massoud at kwareict.com
Mon Jan 3 01:26:58 NZDT 2011
Hello,
Here is our shot to solve the that Availability Filter problem..
As suggested, we uncommented all lines in the following code (part of file:
search.pm)
# 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 .= "";
Clicking on Currently Available Items filter here (
http://alshafallah.maktabat-online.net/cgi-bin/koha/opac-search.pl?q=science)
gives no results. This is in spite that all records in the catalog are not
indexed in the onloan register (zebra) and all records have a value of lost
equal to 0 in the database.
We uploaded English only marc file to test with, download from the net, and
we noticed that the link of the availability worked fine, then as we
investigated its records we found the field 500$a is filled with the word
"available" ! The item considered to available if field 500$a is loaded with
"available" string else it's not available.
We understand that Availability of a title means it has copies on the shelf
ready for loan; in technical terms 'available' is defined as (items.onloan
is NULL) and (items.itemlost = 0) ...etc
Thank you for your help.
Thanks, AbdulSalam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20110102/0bc64970/attachment.htm
More information about the Koha
mailing list