[Koha] Currently Available Items Filter Problem
Chris Cormack
chris at bigballofwax.co.nz
Mon Jan 3 01:35:44 NZDT 2011
Yes, that is the behaviour you get before you uncomment those lines. Are you
sure you edited the right file? Because there is a patch that uncomments
those lines in master, and it changes the behaviour back to searching the
indexes, not searching for the word available. Others have verified this, so
I am guessing you edited the wrong copy of the file, or something similar.
Chris
On 3 Jan 2011 01:27, "massoud alshareef" <massoud at kwareict.com> wrote:
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
_______________________________________________
Koha mailing list http://koha-community.org
Koha at lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20110103/2d277e94/attachment.htm
More information about the Koha
mailing list