holds_count => $holds->count(),
WaitingHolds => $waiting_holds,
);
-
- my $category_type = $patron->category->category_type;
- $template->param( adultborrower => 1 ) if ( $category_type eq 'A' || $category_type eq 'I' );
}
#title
[% END %]
[% IF CAN_user_borrowers_edit_borrowers %]
- [% IF adultborrower AND Koha.Preference("borrowerRelationship") %]
+ [% IF patron.is_adult AND Koha.Preference("borrowerRelationship") %]
<a id="addchild" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=add&guarantorid=[% patron.borrowernumber %]"><i class="fa fa-plus"></i> Add child</a>
[% END %]
[% IF CAN_user_borrowers_edit_borrowers %]
}
}
-$template->param( adultborrower => 1 ) if ( $patron->category->category_type =~ /^(A|I)$/ );
-
if (C4::Context->preference('ExtendedPatronAttributes')) {
my $attributes = GetBorrowerAttributes($borrowernumber);
$template->param(
my $is_guarantor = $dbh->selectrow_array("SELECT COUNT(*) FROM borrowers WHERE guarantorid=?", undef, $member);
if ( $op eq 'delete_confirm' or $countissues > 0 or $flags->{'CHARGES'} or $is_guarantor or $deletelocal == 0) {
- $template->param( adultborrower => 1 ) if $patron->category->category_type =~ /^(A|I)$/;
-
$template->param(
patron => $patron,
);
);
}
-
- $template->param( adultborrower => 1 )
- if ( $patron_category->category_type eq 'A' || $patron_category->category_type eq 'I' );
-
$template->param(
files => Koha::Patron::Files->new( borrowernumber => $borrowernumber )
->GetFilesInfo(),
output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } );
# Get supporting cast
-my ( $branch, $category, $houseboundprofile, $visit );
+my ( $branch, $houseboundprofile, $visit );
if ( $patron ) { # FIXME This test is not needed - output_and_exit_if_error handles it
- $category = Koha::Patron::Categories->new->find($patron->categorycode);
$houseboundprofile = $patron->housebound_profile;
}
if ( $visit_id ) {
);
}
-$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' );
$template->param(
housebound_profile => $houseboundprofile,
visit => $houseboundvisit,
$template->param( 'catcode' => $patron_categories->next->categorycode ) if $patron_categories->count == 1;
}
- $template->param( adultborrower => 1 ) if ( $patron->category->category_type =~ /^(A|I)$/ );
-
if (C4::Context->preference('ExtendedPatronAttributes')) {
my $attributes = GetBorrowerAttributes($borrowernumber);
$template->param(
$template->param( 'catcode' => $patron_categories->next->categorycode ) if $patron_categories->count == 1;
}
- $template->param( adultborrower => 1 ) if ( $patron->category->category_type =~ /^(A|I)$/ );
-
if (C4::Context->preference('ExtendedPatronAttributes')) {
my $attributes = GetBorrowerAttributes($borrowernumber);
$template->param(
$template->param( 'catcode' => $patron_categories->next->categorycode ) if $patron_categories->count == 1;
}
-$template->param( adultborrower => 1 ) if ( $category_type =~ /^(A|I)$/ );
-
if (C4::Context->preference('ExtendedPatronAttributes')) {
my $attributes = GetBorrowerAttributes($bor->{'borrowernumber'});
$template->param(
$template->param( 'catcode' => $patron_categories->next->categorycode ) if $patron_categories->count == 1;
}
-$template->param( adultborrower => 1 ) if ( $category_type =~ /^(A|I)$/ );
-
if ( C4::Context->preference('ExtendedPatronAttributes') ) {
my $attributes = GetBorrowerAttributes( $bor->{'borrowernumber'} );
$template->param(
Koha::Database->new()->schema()->resultset('Issue')
->count( { borrowernumber => \@relatives } );
-$template->param( adultborrower => 1 ) if ( $category_type eq 'A' || $category_type eq 'I' );
-
my %bor;
$bor{'borrowernumber'} = $borrowernumber;
);
}
-$template->param( adultborrower => 1 ) if ( $borrower->{category_type} eq 'A' || $borrower->{category_type} eq 'I' );
$template->param(
patron => $patron,
QUEUED_MESSAGES => $queued_messages,
push(@accountrows, \%row);
}
-$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' );
-
$template->param(
patron => $patron,
finesview => 1,
push( @accountrows, \%row );
}
-$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' );
-
$template->param(
patron => $patron,
finesview => 1,
$template->param( 'catcode' => $patron_categories->next->categorycode ) if $patron_categories->count == 1;
}
-$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' );
if (! $limit){
$limit = 'full';
}
routinglistview => 1
);
-$template->param( adultborrower => 1 ) if ( $category->category_type =~ /^(A|I)$/ );
-
$template->param(
patron => $patron,
findborrower => $findborrower,
);
}
-$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' );
-
$template->param(
patron => $patron,
statisticsview => 1,