From 85d8c91976349a21272235b2a2c4de23dfd4f38b Mon Sep 17 00:00:00 2001 From: Ryan Higgins Date: Sun, 25 Nov 2007 16:31:01 -0600 Subject: [PATCH] adding Staff Borrower to handle Bug 1269 Signed-off-by: Joshua Ferraro --- C4/Members.pm | 2 +- .../prog/en/modules/members/memberentrygen.tmpl | 8 ++++---- members/memberentry.pl | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/C4/Members.pm b/C4/Members.pm index 00d43415ed..a790165e9f 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -641,7 +641,7 @@ sub ModMember { # so when we update information for an adult we should check for guarantees and update the relevant part # of their records, ie addresses and phone numbers my $borrowercategory= GetBorrowercategory( $data{'category_type'} ); - if ( $borrowercategory->{'category_type'} eq 'A' ) { + if ( $borrowercategory->{'category_type'} eq ('A' || 'S') ) { # is adult check guarantees; UpdateGuarantees(%data); 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 33ccc14eb2..7d66507947 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl @@ -25,10 +25,10 @@ patron , - Add Organisation Adult Child Professional + Add Organisation Adult Child Professional Staff patron -"> Modify Organisation Adult Child Professional +"> Modify Organisation Adult Child Professional Staff patron
@@ -40,12 +40,12 @@ patron

- Add organisation adult child professional + Add organisation adult child professional staff patron

- Modify organisation adult child professional + Modify organisation adult child professional staff patron

diff --git a/members/memberentry.pl b/members/memberentry.pl index b21dbbfed9..41c1554a76 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -460,8 +460,8 @@ $data{'dateexpiry'}=format_date($data{'dateexpiry'}); $data{'contactname'}=uc($data{'contactname'}) if C4::Context->preference('uppercasesurnames'); $data{'dateofbirth'} = format_date($data{'dateofbirth'}); -$template->param( "showguarantor" => 1) if ($category_type!~/A|I/);# associate with step to know where u are -$template->param( "showguarantor" => 0) if ($category_type=~/A|I/);# associate with step to know where u are +$template->param( "showguarantor" => 1) if ($category_type!~/A|I|S/);# associate with step to know where u are +$template->param( "showguarantor" => 0) if ($category_type=~/A|I|S/);# associate with step to know where u are warn "$step"; $template->param(%data); $template->param( "step_$step" => 1) if $step;# associate with step to know where u are -- 2.39.5