From 9cecb7a9d30dfeb2c39789b7493d20734647b9b6 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sun, 27 Nov 2011 14:52:22 +0100 Subject: [PATCH] Bug 5974: Fix broken toolbar on paton checkout tab Fixed a couple of errors: - [% CAN_user_staffaccess %] should be [% IF ( CAN_user_staffaccess ) %] - added missing [% END %] - added missing line new YAHOO.widget.Button("duplicate"); To test: 1) Open patron account 2) Go through tabs, especially 'Check out' 3) Check toolbars are correct and buttons work Signed-off-by: Chris Cormack Signed-off-by: Paul Poulain --- koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc index 2933544e2c..913076f8d5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc @@ -94,6 +94,7 @@ function update_child() { new YAHOO.widget.Button("editpatron"); new YAHOO.widget.Button("addnote"); [% IF CAN_user_staffaccess %] new YAHOO.widget.Button("changepassword"); [% END %] + new YAHOO.widget.Button("duplicate"); new YAHOO.widget.Button("printslip"); new YAHOO.widget.Button("printpage"); } @@ -117,9 +118,10 @@ function update_child() { [% END %] [% END %] [% IF ( CAN_user_borrowers ) %] - [% IF ( adultborrower ) %]
  • Add child
  • [% END %] - [% CAN_user_staffaccess %]
  • Change Password
  • [% END %] -
  • Duplicate
  • + [% IF ( adultborrower ) %]
  • Add child
  • [% END %] + [% IF ( CAN_user_staffaccess ) %]
  • Change Password
  • [% END %] + [% END %] +
  • Duplicate
  • Print Page
  • Print Slip
  • Search to hold