The availability limit in the OPAC will return on results, until an item has been checked out for the first time. From the mailing list: The index doesn't exist, so the query fails, the index just has to exist (which it does as soon as something is circulated, it will continue to work if you return that item, the index doesn't go away, unless you do a full reindex and have not circulated anything ever) In practice people don't run into this much at all. However the fix is just in the ccl.properties file /etc/koha/zebradb/ccl.properties change line 1032 From onloan 1=8024 to onloan 1=8024 14=1 And it will work even if you library has never done a circulation operation
Created attachment 59130 [details] [review] Bug 17838 Availability limit broken until an item has been checked out. TEST PLAN 1. Make sure you have no items checked out. 2. Run sudo koha-rebuild-zebra -f -v kohadev. 3. Go to search the catalog and search. 4. Check items availability and then click on limit to currently available items. 5. This should return no results. 6. Apply patch and reload. 7. Results should show.
Created attachment 59133 [details] [review] [SIGNED OFF] Bug 17838 Availability limit broken until an item has been checked out. TEST PLAN 1. Make sure you have no items checked out. 2. Run sudo koha-rebuild-zebra -f -v kohadev. 3. Go to search the catalog and search. 4. Check items availability and then click on limit to currently available items. 5. This should return no results. 6. Apply patch and reload. 7. Results should show. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 59582 [details] [review] Bug 17838 Availability limit broken until an item has been checked out. TEST PLAN 1. Make sure you have no items checked out. 2. Run sudo koha-rebuild-zebra -f -v kohadev. 3. Go to search the catalog and search. 4. Check items availability and then click on limit to currently available items. 5. This should return no results. 6. Apply patch and reload. 7. Results should show. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Attribute 14: " Specifies whether un-indexed fields should be ignored. A zero value (default) throws a diagnostic when an un-indexed field is specified. A non-zero value makes it return 0 hits." From http://www.indexdata.com/zebra/doc/querymodel-zebra.html
Pushed to master for 17.05, thanks Zoe!
This patch has been pushed to 16.11.x and will be in 16.11.04.
Pushed to 3.22.x for 3.22.17
Pushed to 16.05.x, for 16.05.10 release