Bug 17838 Availability limit broken until an item has been checked out.
authorZoe Schoeler <crazy.mental.onion@gmail.com>
Wed, 18 Jan 2017 00:55:43 +0000 (00:55 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 14 Feb 2017 14:05:40 +0000 (14:05 +0000)
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

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

etc/zebradb/ccl.properties

index 3ec1363..27def12 100644 (file)
@@ -1029,7 +1029,7 @@ reserves 1=8021
 Local-classification 1=8022
 barcode 1=8023
 bc barcode
-onloan 1=8024
+onloan 1=8024 14=1
 datelastseen 1=8025
 datelastborrowed 1=8026
 copynumber 1=8027