From 907936d6422b8f0eae898ac2c63888c833f25ff9 Mon Sep 17 00:00:00 2001 From: Arthur Suzuki Date: Tue, 30 Sep 2025 09:04:02 +0000 Subject: [PATCH] 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. --- .../en/includes/html_helpers/tables/items/catalogue_detail.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc index b5a93b4a94..91c76f47bb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc @@ -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) { -- 2.39.5