From 1485d09cbfbff8038216bce9029de517c25ad6d9 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 18 Apr 2017 13:53:54 -0400 Subject: [PATCH] Bug 18423 - Add 'Add child' button to files, housebound, and deletemem pages Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit b81a18ea39e1f360dc0dc4b7a874b614dc67d725) Signed-off-by: Katrin Fischer --- members/deletemem.pl | 2 ++ members/files.pl | 1 + members/housebound.pl | 1 + 3 files changed, 4 insertions(+) diff --git a/members/deletemem.pl b/members/deletemem.pl index c4eb8b69c1..931ebb63a1 100755 --- a/members/deletemem.pl +++ b/members/deletemem.pl @@ -110,6 +110,8 @@ if ( $op eq 'delete_confirm' or $countissues > 0 or $flags->{'CHARGES'} or $is_ my $patron_image = Koha::Patron::Images->find($bor->{borrowernumber}); $template->param( picture => 1 ) if $patron_image; + $template->param( adultborrower => 1 ) if ( $bor->{category_type} eq 'A' ); + $template->param(borrowernumber => $member, surname => $bor->{'surname'}, title => $bor->{'title'}, diff --git a/members/files.pl b/members/files.pl index 709c2aabfc..1d99bcf801 100755 --- a/members/files.pl +++ b/members/files.pl @@ -117,6 +117,7 @@ else { my $patron_image = Koha::Patron::Images->find($data->{borrowernumber}); $template->param( picture => 1 ) if $patron_image; + $template->param( adultborrower => 1 ) if ( $data->{category_type} eq 'A' ); $template->param( files => Koha::Patron::Files->new( borrowernumber => $borrowernumber ) ->GetFilesInfo(), diff --git a/members/housebound.pl b/members/housebound.pl index ad3e88d611..0b571e6cf9 100755 --- a/members/housebound.pl +++ b/members/housebound.pl @@ -171,6 +171,7 @@ if ( C4::Context->preference('ExtendedPatronAttributes') and $patron ) { ); } +$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' ); $template->param( picture => $patron_image, housebound_profile => $houseboundprofile, -- 2.39.5