[Koha-bugs] [Bug 11677] Limit to Only items currently available for loan or reference not working

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 21 12:50:41 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11677

Olli-Antti Kivilahti <olli-antti.kivilahti at jns.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #32101|0                           |1
        is obsolete|                            |

--- Comment #10 from Olli-Antti Kivilahti <olli-antti.kivilahti at jns.fi> ---
Created attachment 32547
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32547&action=edit
Bug 11677 - Limit to Only items currently available for loan or reference not
working!

This row:
$availability_limit .=
"( ( allrecords,AlwaysMatches='' not onloan,AlwaysMatches='') and
(lost,st-numeric=0) )";
Causes all records in Zebra to be selected and removes records with even one
item onloan
  (even if items would be available)!
This is obviously wrong, but because Zebra (and not many other text indexers)
cannot deal
with (If undef)-search terms, a fix might be to set 952$q (onloan) datetime to
0000-00-00
instead of NULL in the DB. Then we could find Records with items where onloan
is 0000-00-00.

Comments out that Zebra availability search and deals with availability on
Koha-side.

Gets the branch or holdingbranch limit from opac-search.pl or search.pl and
uses that to
skip Zebra results which are onloan or notforloan.
Updates the result set size when results are removed.

Fixed a bug where pagination broke, due to the $results_hash->{'RECORDS'}
-array getting populated
always starting from 0, where it should have started from the given $offset.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list