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

--- Comment #19 from Hammat wele <[email protected]> ---
Created attachment 185668
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=185668&action=edit
Bug 37680: inconsistencies with the search results when selecting the "Limit to
records with available items" option

There were inconsistencies in search results when selecting "Limit to records
with available items". Records with items marked as «notforloan» or «withdrawn»
were still being shown as available.
This patch add two systems preferences UnavailableNotForLoan and
UnavailableWithDrawn, these allow users to choose which notforloan or withdrawn
values should be considered as unavailable items.

Case :
1- Record with first item as «notforloan» (Ordered) - The second is
«notforloan» (Ordered)
2- Record with first item as «notforloan» (Ordered) - The second is «withdrawn»
3- Record with first item as «itemlost» - The second is «notforloan» (Not for
loan)
4- Record with first item as «itemlost» - The second is «withdrawn»
5- Record with first item «onloan» - The second is «notforloan»
6- Record with first item «onloan» - The second is «withdrawn»

To reproduce:

1. Import "Test records for the cases described" records
2. Checkout the first item of «Bug 37680 Case 5 » and «Bug 37680 Case 6»
3. Make sure OpacHiddenItems is empty
4. In the OPAC, search for «Bug 37680»
5. Click on «Limit to records with available items»
----> Records for Case 2, 3 ,4, 5, 6 is still showing
6. Apply the patch
7. Run ./installer/data/mysql/updatedatabase.pl
8. Go to Administration -> search for UnavailableNotForLoan then select Not for
loan that should be consider as not available (e.g. «Ordered» and «Not For
Loan»)
9. Go to Administration -> search for UnavailableWithDrawn then select
Withdrawn that should be consider as not available (e.g. «Withdrawn»)
10. Rebuild bibliographic index ./misc/search_tools/rebuild_elasticsearch.pl -d
-v -r -b
11. Repeat step 4 and 5
----> Records for Case 2, 3, 4, 5, and 6 no longer appear.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to