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:
parent
013a469b45
commit
7e4f2f7c29
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue