From 83d8e095aef7275df4bf94f427612dccc84fbdc3 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 9 Jan 2008 14:02:13 -0600 Subject: [PATCH] Cleanup for member entry: XHTML-compliance (close inputs, ids must match labels) and translator-friendliness (can't embed TMPL_IF inside tags); Cleanup of circ and members menus; Menu context flag for readingrec.pl; Correction to Auth.pm (updatecharge -> updatecharges) Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Auth.pm | 4 +- .../prog/en/includes/circ-menu.inc | 2 +- .../prog/en/includes/members-menu.inc | 6 +- .../en/modules/members/memberentrygen.tmpl | 119 ++++++++++++------ members/readingrec.pl | 1 + 5 files changed, 90 insertions(+), 42 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index c392e44998..999e6f5c5a 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -154,7 +154,7 @@ sub get_template_and_user { $template->param( "USER_INFO" => \@bordat ); my @flagroots = qw(circulate catalogue parameters borrowers permissions reserveforothers borrow - editcatalogue updatecharge management tools editauthorities serials reports); + editcatalogue updatecharges management tools editauthorities serials reports); # We are going to use the $flags returned by checkauth # to create the template's parameters that will indicate # which menus the user can access. @@ -167,7 +167,7 @@ sub get_template_and_user { $template->param( CAN_user_reserveforothers => 1 ); $template->param( CAN_user_borrow => 1 ); $template->param( CAN_user_editcatalogue => 1 ); - $template->param( CAN_user_updatecharge => 1 ); + $template->param( CAN_user_updatecharges => 1 ); $template->param( CAN_user_acquisition => 1 ); $template->param( CAN_user_management => 1 ); $template->param( CAN_user_tools => 1 ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc index eef505c8d6..221ec9fa00 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc @@ -36,7 +36,7 @@
  • ">Fines
  • -
  • ">Circulation History
  • +
  • ">Circulation History
  • ">Modification Log
  • diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/members-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/members-menu.inc index 776288bcaf..b08282f44b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-menu.inc @@ -2,8 +2,10 @@ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl index 82bcba354d..816c8bc3b8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl @@ -35,9 +35,9 @@ patron , "> Modify Organisation Adult Child Professional Staff -patron +patron -
    +
    @@ -59,8 +59,8 @@ patron

    -
    - Duplicate suspected +
    +

    Duplicate suspected

    ');" >Detail Duplicate ? &category_type=">Yes @@ -81,7 +81,7 @@ patron -
    +

    The following fields are wrong. Please fix them.

      @@ -175,7 +175,13 @@ patron Date of birth: - onchange="CheckDate(document.form.dateofbirth);" value="" /> + + + " /> + + " /> + + /lib/calendar/cal.gif" id="dateofbirth_button" alt="Show Calendar" />