From e80266ab6e929f24ea12f1c39a272b954cfc54f9 Mon Sep 17 00:00:00 2001 From: Emmi Takkinen Date: Wed, 10 Jul 2024 11:53:16 +0300 Subject: [PATCH] Bug 37300: Allow modifying holds from any library again via biblio detail page Currently one can no longer select item to be modified from biblio detail page if items hold library differs from users home library and home libraries of all items. Previously this was possible. This patch reintroduces this functionality. To test: 1. Find biblio with items from library A and B. 2. Change one items holding branch to branch C (either manually from database or transfer item through Koha). => Note that you can no longer select this item and its row has no "Edit" button on it. 3. Apply this patch. 4. Refresh page. => You can now select item and "Edit" button is displayed. Sponsored-by: Koha-Suomi Oy Signed-off-by: Esther --- .../includes/html_helpers/tables/items/catalogue_detail.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 18a2c36630..a26745a8ac 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 @@ -300,7 +300,7 @@ searchable: false, orderable: false, render: function (data, type, row, meta) { - if ( can_edit_items_from[row.holding_library_id] ){ + if ( can_edit_items_from[row.home_library_id] ){ if ( items_selection[tab_id].includes(row.item_id) ) { return ''.format(row.item_id); } else { @@ -752,7 +752,7 @@ { data: function( row, type, val, meta ) { let nodes = ''; - if ( can_edit_items_from[row.holding_library_id] ){ + if ( can_edit_items_from[row.home_library_id] ){ [% IF Koha.Preference('LocalCoverImages') OR Koha.Preference('OPACLocalCoverImages') %] nodes += '
'; nodes += ' %s'.format(row.biblio_id, row.item_id, _("Edit")); -- 2.39.2