[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
Sun Aug 11 18:14:22 CEST 2019


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

--- Comment #25 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 92144
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=92144&action=edit
Bug 11677: Use zebra not-onloan-count index for availability limit

This uses the work from bug 18098 to use the count of not-onloan items to
determine availability.

Note that availability in this sense means not check out and not lost.
Transfers, holds, and not for loan statuses
should probably have indexes built in the same way as bug 18098 (there are
related fixmes in the code)

To test:
 1 - make sure SearchEngine pref is set to 'Zebra'
 2 - Do a search on the OPAC that returns some records
 3 - Find a record in those results with more than one 1 item, and checkout 1
leaving 1 (or more) available
 4 - Find another record with only 1 item, check that item out
 5 - Limit opac search to available items - both records disappear
 6 - Apply patch
 7 - Restart all the things
 8 - Repeat search
 9 - First record should show, but no second
10 - Mark other items of first record as lost, return items on second record
11 - Repeat search, first record should not be in results, second should

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


More information about the Koha-bugs mailing list