From eba01fcafb438fd2523017a553ea39ffc23b7799 Mon Sep 17 00:00:00 2001 From: Mathieu Saby Date: Thu, 19 Dec 2013 22:58:35 +0100 Subject: [PATCH] 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 Signed-off-by: Galen Charlton --- 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 c94aa8644e..ebfa553351 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 %] -- 2.39.5