From 80608af36a755d96b60169d533d138afc5d535c8 Mon Sep 17 00:00:00 2001 From: Mathieu Saby Date: Thu, 19 Dec 2013 22:58:35 +0100 Subject: [PATCH] [PASSED QA] Bug 11429 : Add a link to basketgroup in basket detail page If a basket is in a closed basketgroup, the basketgroup name is currently displayed. This patch adds a link around the basketgroup name if the librarian has permission to manage basketgroups. Test: A. With a librarian with rights for managing basketgroups Display a closed basket that is grouped in a basketgroup Check the name of the basketgroup is now a link Click on the link and check you are seeing information about the right basketgroup B. With a librarian WITHOUT rights for managing basketgroups Display a closed basket that is grouped in a basketgroup Check the name of the basketgroup is not a link Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt index c94aa86..ebfa553 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -346,7 +346,11 @@
  • Basket group: [% IF basketgroup.closed %] - [% basketgroup.name %] (closed) + [% IF ( CAN_user_acquisition_group_manage ) %] + [% basketgroup.name %] (closed) + [% ELSE %] + [% basketgroup.name %] (closed) + [% END %] [% ELSIF ( ! CAN_user_acquisition_group_manage ) %] [%- IF basketgroup.name -%] [% basketgroup.name %] -- 1.8.3.2