From 52c933c41393dd1b3f3888ce98bda3e4091c1e01 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 8 Jul 2008 08:25:52 -0500 Subject: [PATCH] Scripts missing check for Child category type would not correctly show 'update child patron' link in toolbar. Signed-off-by: Joshua Ferraro --- circ/circulation.pl | 1 + members/boraccount.pl | 1 + members/mancredit.pl | 1 + members/maninvoice.pl | 1 + members/member-flags.pl | 1 + members/member-password.pl | 1 + members/messaging.pl | 1 + members/pay.pl | 1 + members/readingrec.pl | 1 + 9 files changed, 9 insertions(+) diff --git a/circ/circulation.pl b/circ/circulation.pl index 0d302bbefb..9708d09c10 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -690,6 +690,7 @@ $template->param( inprocess => $inprocess, memberofinstution => $member_of_institution, CGIorganisations => $CGIorganisations, + is_child => ($borrower->{'category_type'} eq 'C'), circview => 1, ); diff --git a/members/boraccount.pl b/members/boraccount.pl index 253983c090..1cfb5ef218 100755 --- a/members/boraccount.pl +++ b/members/boraccount.pl @@ -111,6 +111,7 @@ $template->param( branchname => GetBranchName($data->{'branchcode'}), total => sprintf("%.2f",$total), totalcredit => $totalcredit, + is_child => ($data->{'category_type'} eq 'C'), accounts => \@accountrows ); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/members/mancredit.pl b/members/mancredit.pl index 714ce9111d..4832455fc4 100755 --- a/members/mancredit.pl +++ b/members/mancredit.pl @@ -71,6 +71,7 @@ if ($add){ zipcode => $data->{'zipcode'}, phone => $data->{'phone'}, email => $data->{'email'}, + is_child => ($data->{'category_type'} eq 'C'), ); output_html_with_http_headers $input, $cookie, $template->output; } diff --git a/members/maninvoice.pl b/members/maninvoice.pl index f3ad4cbad3..17442354ed 100755 --- a/members/maninvoice.pl +++ b/members/maninvoice.pl @@ -90,6 +90,7 @@ if ($add){ zipcode => $data->{'zipcode'}, phone => $data->{'phone'}, email => $data->{'email'}, + is_child => ($data->{'category_type'} eq 'C'), ); output_html_with_http_headers $input, $cookie, $template->output; } diff --git a/members/member-flags.pl b/members/member-flags.pl index 6149b1729b..4f45033ee7 100755 --- a/members/member-flags.pl +++ b/members/member-flags.pl @@ -173,6 +173,7 @@ $template->param( email => $bor->{'email'}, branchcode => $bor->{'branchcode'}, loop => \@loop, + is_child => ($bor->{'category_type'} eq 'C'), ); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/members/member-password.pl b/members/member-password.pl index 9f5629fbc3..0ee5337cbc 100755 --- a/members/member-password.pl +++ b/members/member-password.pl @@ -97,6 +97,7 @@ $template->param( picture => 1 ) if $picture; branchcode => $bor->{'branchcode'}, userid => $bor->{'userid'}, destination => $destination, + is_child => ($bor->{'category_type'} eq 'C'), defaultnewpassword => $defaultnewpassword ); diff --git a/members/messaging.pl b/members/messaging.pl index d7dd5bbe11..b37a066de2 100755 --- a/members/messaging.pl +++ b/members/messaging.pl @@ -145,6 +145,7 @@ $messaging_preferences->{'SMSnumber'}{'value'} = defined $borrower->{'smsalertnu $template->param( BORROWER_INFO => [ $borrower ], messagingview => 1, messaging_preferences => $messaging_options, + is_child => ($borrower->{'category_type'} eq 'C'), SMSnumber => defined $borrower->{'smsalertnumber'} ? $borrower->{'smsalertnumber'} : $borrower->{'mobile'} ); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/members/pay.pl b/members/pay.pl index 35faea3c59..e0de50a548 100755 --- a/members/pay.pl +++ b/members/pay.pl @@ -151,6 +151,7 @@ $template->param( picture => 1 ) if $picture; phone => $data->{'phone'}, email => $data->{'email'}, branchcode => $data->{'branchcode'}, + is_child => ($data->{'category_type'} eq 'C'), total => sprintf( "%.2f", $total ) ); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/members/readingrec.pl b/members/readingrec.pl index 86564bf336..611078bc6a 100755 --- a/members/readingrec.pl +++ b/members/readingrec.pl @@ -106,6 +106,7 @@ $template->param( phone => $data->{'phone'}, email => $data->{'email'}, branchcode => $data->{'branchcode'}, + is_child => ($data->{'category_type'} eq 'C'), branchname => GetBranchName($data->{'branchcode'}), showfulllink => ($count > 50), loop_reading => \@loop_reading); -- 2.39.5