From 4c38b7140aa7b33d170ee84be17c890b811b6ca1 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 23 Jan 2024 17:53:39 +0000 Subject: [PATCH] Bug 35800: Remove item.can.be.edited check To test: APPLY PATCH 1. Check out an item to a patron from library A 2. Give permissions to a patron from library B (example of a circulation staff account) - circulate - catalogue - borrowers ( including view_borrower_infos_from_any_libraries ) - reserveforothers - updatecharges - suggestions - lists - clubs -> enroll 3. If necessary, change the username and password of that staff member in order to be able to log in 4. In a private browser window, log in as the staff member 5. View the record with the checked out item 6. You should see the name/cardnumber of the patron the item is checked out ot. 7. Turn off the view_borrower_infos_from_any_libraries for this patron. 8. Now on the record detail page you should see text like `Checked out to A patron from library Midway : due 01/28/2024`. Signed-off-by: Caroline Cyr La Rose Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer (cherry picked from commit e8c0438d87468d7a5638a3463817aff5c9d75e85) Signed-off-by: Fridolin Somers --- .../prog/en/modules/catalogue/detail.tt | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 2a4f04b958..e2658b7dc7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -475,15 +475,13 @@ [% ELSE %] Checked out [% END %] - [% IF item.can_be_edited %] - [% IF item.object.checkout.onsite_checkout %] - by - [% ELSE %] - to - [% END %] - [% INCLUDE 'patron-title.inc' patron=item.object.checkout.patron hide_patron_infos_if_needed=1 %] - [% END %] - : due [% date_due | $KohaDates as_due_date => 1 %] + [% IF item.object.checkout.onsite_checkout %] + by + [% ELSE %] + to + [% END %] + [% INCLUDE 'patron-title.inc' patron=item.object.checkout.patron hide_patron_infos_if_needed=1 %] + : due [% date_due | $KohaDates as_due_date => 1 %] [% ELSIF ( transfer = item.object.get_transfer ) %] [% IF (transfer.datesent) %] -- 2.39.5