adding Staff Borrower to handle Bug 1269
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
ad4e02f91d
commit
85d8c91976
3 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -25,10 +25,10 @@ patron <!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR name="firstname" --><!--
|
|||
|
||||
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> ›
|
||||
<!-- TMPL_IF NAME="opadd" -->
|
||||
Add<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF -->
|
||||
Add<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF --> <!--TMPL_IF Name="S"-->Staff <!--/TMPL_IF -->
|
||||
patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
|
||||
<!-- TMPL_ELSE -->
|
||||
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" --></a> › <strong>Modify<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF -->
|
||||
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" --></a> › <strong>Modify<!--TMPL_IF Name="I"--> Organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> Adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> Child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> Professional <!--/TMPL_IF --><!--TMPL_IF Name="S"-->Staff <!--/TMPL_IF -->
|
||||
patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" --><!-- /TMPL_IF --></strong></div>
|
||||
|
||||
<div id="doc3" class="yui-t2">
|
||||
|
@ -40,12 +40,12 @@ patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" --><!-- /
|
|||
|
||||
<!-- TMPL_IF NAME="opadd" -->
|
||||
<h1>
|
||||
Add<!--TMPL_IF Name="I"--> organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> professional <!--/TMPL_IF -->
|
||||
Add<!--TMPL_IF Name="I"--> organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> professional <!--/TMPL_IF --><!--TMPL_IF Name="S"-->staff <!--/TMPL_IF -->
|
||||
patron <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" -->
|
||||
</h1>
|
||||
<!-- TMPL_ELSE -->
|
||||
<h1 >
|
||||
Modify<!--TMPL_IF Name="I"--> organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> professional <!--/TMPL_IF -->
|
||||
Modify<!--TMPL_IF Name="I"--> organisation <!--/TMPL_IF --><!--TMPL_IF Name="A"--> adult <!--/TMPL_IF --><!--TMPL_IF Name="C"--> child <!--/TMPL_IF --><!--TMPL_IF Name="P"--> professional <!--/TMPL_IF --><!--TMPL_IF Name="S"-->staff <!--/TMPL_IF -->
|
||||
patron <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" -->
|
||||
</h1>
|
||||
<!-- /TMPL_IF -->
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue