Bug 40904: Fix item search by shelving location on catalogue/details.pl

Test plan :
- before patch on ktd, go to http://localhost:8081/cgi-bin/koha/catalogue/detail.pl?biblionumber=155
- in the holdings table search for "general" like "General Stacks".
- see that no items appear
- apply patch
- repeat the search
- all items appear now.

Signed-off-by: Mathieu <mathsabypro@gmail.com>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Arthur Suzuki 2025-09-30 09:04:02 +00:00 committed by Lucas Gass
parent 013a469b45
commit 7e4f2f7c29
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 2 additions and 0 deletions

View File

@ -239,6 +239,7 @@
library: new Map(all_libraries.map( l => [l.branchname, l.branchcode] )),
item_type: new Map(all_item_types.map( i => [i.translated_description, i.itemtype] )),
collection_code: new Map([% To.json(AuthorisedValues.GetDescriptionsByKohaField({ kohafield => 'items.ccode' })) | $raw %].map( av => [av.lib, av.authorised_value])),
location: new Map([% To.json(AuthorisedValues.GetDescriptionsByKohaField({ kohafield => 'items.location' })) | $raw %].map( av => [av.lib, av.authorised_value])),
};
[% IF Koha.Preference('URLLinkText') %]
@ -429,6 +430,7 @@
},
{
data: "me.location",
datatype: "coded_value:location",
searchable: true,
orderable: true,
render: function (data, type, row, meta) {