Bugzilla – Attachment 170481 Details for
Bug 37680
"Limit to records with available items" should consider withdrawn and negative not for loan status as unavailable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37680: inconsistencies with the search results when selecting the "Limit to records with available items" option
Bug-37680-inconsistencies-with-the-search-results-.patch (text/plain), 2.57 KB, created by
Hammat wele
on 2024-08-19 20:57:56 UTC
(
hide
)
Description:
Bug 37680: inconsistencies with the search results when selecting the "Limit to records with available items" option
Filename:
MIME Type:
Creator:
Hammat wele
Created:
2024-08-19 20:57:56 UTC
Size:
2.57 KB
patch
obsolete
>From 834119ac7ca17468d5e9d8122bd5ebf73dc03c4d Mon Sep 17 00:00:00 2001 >From: Hammat Wele <hammat.wele@inlibro.com> >Date: Mon, 19 Aug 2024 20:55:42 +0000 >Subject: [PATCH] Bug 37680: inconsistencies with the search results when > selecting the "Limit to records with available items" option >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >There seem to be inconsistencies with the search results when selecting the "Limit to records with available items" option, when we have a notice with two items if the first item is «notforloan» and the second is «notforloan» too or «withdrawn» the notice is still available. >And these conditions also are showing : > >Case : >1- Record with first item as «notforloan» - The second is «notforloan» >2- Record with first item as «notforloan» - The second is «withdrawn» >3- Record with first item as «itemlost» - The second is «notforloan» >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. Catalog a new record (record test 1) > 1.1. Go to Cataloging > 1.2. Click New record > 1.3. Fill out the mandatory fields (000, 003, 005, 008, 040$c, 245$a, 942$c) > 1.4. Click Save (No need to add an item) > 1.5. Add two items, set a negative notforloan (ordered) for the two items >2. Repeat step 1, by creating a record (record test 2) with two items one negative notforloan item and the second as «withdrawn» item >3. Repeat step 1, and creating all the record in «Case» section >4. Go to the Opac and search for the created record >5. Click on «Limit to records with available items» >----> All the created items is still showing >6. Apply the patch >7. Rebuild bibliographic index ./misc/search_tools/rebuild_elasticsearch.pl -d -v -r -b >8. Repeat step 4 and 5 >----> the created items is no more showing >--- > Koha/SearchEngine/Elasticsearch.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/Koha/SearchEngine/Elasticsearch.pm b/Koha/SearchEngine/Elasticsearch.pm >index 5ef5235720..c52019599b 100644 >--- a/Koha/SearchEngine/Elasticsearch.pm >+++ b/Koha/SearchEngine/Elasticsearch.pm >@@ -841,6 +841,8 @@ sub marc_records_to_documents { > my $avail_items = Koha::Items->search({ > biblionumber => $biblionumber, > onloan => undef, >+ notforloan => { '<=' => 0 }, >+ withdrawn => 0, > itemlost => 0, > })->count; > >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37680
: 170481 |
170611