Bugzilla – Attachment 187076 Details for
Bug 40904
Unable to search items by location
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40904: Fix item search by shelving location on catalogue/details.pl
Bug-40904-Fix-item-search-by-shelving-location-on-.patch (text/plain), 1.93 KB, created by
Arthur Suzuki
on 2025-09-30 09:08:40 UTC
(
hide
)
Description:
Bug 40904: Fix item search by shelving location on catalogue/details.pl
Filename:
MIME Type:
Creator:
Arthur Suzuki
Created:
2025-09-30 09:08:40 UTC
Size:
1.93 KB
patch
obsolete
>From 907936d6422b8f0eae898ac2c63888c833f25ff9 Mon Sep 17 00:00:00 2001 >From: Arthur Suzuki <arthur.suzuki@biblibre.com> >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
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 40904
:
187076
|
187095