From 584cf35502364f91f31013ac201ac45d8c4bdaa8 Mon Sep 17 00:00:00 2001 From: Rogan Hamby Date: Tue, 14 Jan 2020 14:38:36 -0500 Subject: [PATCH] Bug 15377: Allow removal of 'checked out' items from course reserves 1) removes the restriction of not allowing a reserve to be removed if it is onloan 2) adds a column to the display that says with the item is checked out or available based on the onloan flag testplan: add an item to course reserves, check the item out, check that the Ciruclation column changes to Checked Out and that you can remove it Signed-off-by: David Nind Signed-off-by: Hannah Olsen Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- .../modules/course_reserves/course-details.tt | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt index ab08e01654..86765eb397 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt @@ -86,6 +86,7 @@ Public note Link Other course reserves + Circulation [% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %] Actions [% END %] @@ -216,6 +217,16 @@ [% END %] + + + [% IF cr.item.onloan %] + Checked Out + [% ELSE %] + Available + [% END %] + + + [% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %] [% IF CAN_user_coursereserves_add_reserves %] @@ -223,11 +234,7 @@ [% END %] [% IF CAN_user_coursereserves_delete_reserves %] - [% IF cr.item.onloan %] - - [% ELSE %] - - [% END %] + Remove [% END %] -- 2.39.5