From 98447dbcc9f9d9f8dc8f2acc5984b4742ad739a7 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Wed, 22 Aug 2012 15:26:58 +0200 Subject: [PATCH] Bug 8666: Hide 'New basket' link if supplier is inactive Signed-off-by: Koha Team Lyon 3 Signed-off-by: Paul Poulain --- .../intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc index 11d7b3938f..0c52cc2677 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc @@ -23,7 +23,9 @@ var manageorders = [ [% IF ( CAN_user_acquisition_order_manage ) %] + [% IF (active) %] { text: _("New basket"), url: "/cgi-bin/koha/acqui/basketheader.pl?booksellerid=[% booksellerid %]&op=add_form"}, + [% END %] { text: _("Baskets"), url: "/cgi-bin/koha/acqui/booksellers.pl?booksellerid=[% booksellerid %]"}, { text: _("Basket groups"), url: "/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]"}, [% END %] @@ -52,7 +54,7 @@ [% END %]
  • New contract
  • Contracts
  • - [% UNLESS ( basketcount ) %] + [% IF (active && !basketcount) %]
  • New basket
  • [% END %] [% END %] -- 2.39.5