From e2dd7ac6f20c559c172864dc684b41412aab14d7 Mon Sep 17 00:00:00 2001 From: wolfpac444 Date: Tue, 27 May 2003 07:09:07 +0000 Subject: [PATCH] Fixed jmemberentry stuff --- insertjdata.pl | 2 +- jmemberentry.pl | 5 ++++- koha-tmpl/intranet-tmpl/default/en/members/jmemberentry.tmpl | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/insertjdata.pl b/insertjdata.pl index 7ea4a6cca5..bace33b0ae 100755 --- a/insertjdata.pl +++ b/insertjdata.pl @@ -44,7 +44,7 @@ foreach my $key (@names){ } my $dbh = C4::Context->dbh; my $query; -for (my $i=0;$i<3;$i++){ +for (my $i=0;$i<1;$i++){ my $x = "cardnumber_child_$i"; my $sth=$dbh->prepare("Select * from borrowers where borrowernumber=?"); $sth->execute($x); diff --git a/jmemberentry.pl b/jmemberentry.pl index 577cb454ac..921ce69c55 100755 --- a/jmemberentry.pl +++ b/jmemberentry.pl @@ -29,6 +29,7 @@ use C4::Search; use HTML::Template; use C4::Interface::CGI::Output; use C4::Date; +use C4::Members; my $input = new CGI; @@ -66,7 +67,7 @@ while (@titles) { # get the data for children my $cmember1=NewBorrowerNumber(); my @cmemdata; -for (my $i=0;$i<3;$i++){ +for (my $i=0;$i<1;$i++){ my %row; $row{'cmember'}=$cmember1+$i; $row{'i'}=$i; @@ -74,11 +75,13 @@ for (my $i=0;$i<3;$i++){ push(@cmemdata, \%row); } +my $jcardnumber=C4::Members::fixup_cardnumber(""); $template->param( member => $member, firstname => $data->{'firstname'}, surname => $data->{'surname'}, cardnumber => $data->{'cardnumber'}, + jcardnumber => $jcardnumber, area => $data->{'area'}, city => $data->{'city'}, physstreet => $data->{'physstreet'}, diff --git a/koha-tmpl/intranet-tmpl/default/en/members/jmemberentry.tmpl b/koha-tmpl/intranet-tmpl/default/en/members/jmemberentry.tmpl index ccb2cde1a3..3b37dec33f 100644 --- a/koha-tmpl/intranet-tmpl/default/en/members/jmemberentry.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/members/jmemberentry.tmpl @@ -55,7 +55,7 @@ Member# , Card Number* - size=20 value="">
+ size=20 value="">
value=""> -- 2.39.5