View | Details | Raw Unified | Return to bug 18423
Collapse All | Expand All

(-)a/members/boraccount.pl (-1 / +1 lines)
Lines 92-98 foreach my $accountline ( @{$accts}) { Link Here
92
    }
92
    }
93
}
93
}
94
94
95
$template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' );
95
$template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' || $data->{'category_type'} eq 'I' );
96
96
97
my $patron_image = Koha::Patron::Images->find($data->{borrowernumber});
97
my $patron_image = Koha::Patron::Images->find($data->{borrowernumber});
98
$template->param( picture => 1 ) if $patron_image;
98
$template->param( picture => 1 ) if $patron_image;
(-)a/members/deletemem.pl (-1 / +1 lines)
Lines 110-116 if ( $op eq 'delete_confirm' or $countissues > 0 or $flags->{'CHARGES'} or $is_ Link Here
110
    my $patron_image = Koha::Patron::Images->find($bor->{borrowernumber});
110
    my $patron_image = Koha::Patron::Images->find($bor->{borrowernumber});
111
    $template->param( picture => 1 ) if $patron_image;
111
    $template->param( picture => 1 ) if $patron_image;
112
112
113
    $template->param( adultborrower => 1 ) if ( $bor->{category_type} eq 'A' );
113
    $template->param( adultborrower => 1 ) if ( $bor->{category_type} eq 'A' || $bor->{category_type} eq 'I' );
114
114
115
    $template->param(borrowernumber => $member,
115
    $template->param(borrowernumber => $member,
116
        surname => $bor->{'surname'},
116
        surname => $bor->{'surname'},
(-)a/members/files.pl (-1 / +1 lines)
Lines 117-123 else { Link Here
117
    my $patron_image = Koha::Patron::Images->find($data->{borrowernumber});
117
    my $patron_image = Koha::Patron::Images->find($data->{borrowernumber});
118
    $template->param( picture => 1 ) if $patron_image;
118
    $template->param( picture => 1 ) if $patron_image;
119
119
120
    $template->param( adultborrower => 1 ) if ( $data->{category_type} eq 'A' );
120
    $template->param( adultborrower => 1 ) if ( $data->{category_type} eq 'A' || $data->{category_type} eq 'I' );
121
    $template->param(
121
    $template->param(
122
        files => Koha::Patron::Files->new( borrowernumber => $borrowernumber )
122
        files => Koha::Patron::Files->new( borrowernumber => $borrowernumber )
123
          ->GetFilesInfo(),
123
          ->GetFilesInfo(),
(-)a/members/housebound.pl (-1 / +1 lines)
Lines 171-177 if ( C4::Context->preference('ExtendedPatronAttributes') and $patron ) { Link Here
171
    );
171
    );
172
}
172
}
173
173
174
$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' );
174
$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' );
175
$template->param(
175
$template->param(
176
    picture            => $patron_image,
176
    picture            => $patron_image,
177
    housebound_profile => $houseboundprofile,
177
    housebound_profile => $houseboundprofile,
(-)a/members/mancredit.pl (-1 / +1 lines)
Lines 80-86 if ($add){ Link Here
80
        $template->param( 'catcode' => $patron_categories->next )  if $patron_categories->count == 1;
80
        $template->param( 'catcode' => $patron_categories->next )  if $patron_categories->count == 1;
81
    }
81
    }
82
82
83
    $template->param( adultborrower => 1 ) if ( $data->{category_type} eq 'A' );
83
    $template->param( adultborrower => 1 ) if ( $data->{category_type} eq 'A' || $data->{category_type} eq 'I' );
84
    my $patron_image = Koha::Patron::Images->find($data->{borrowernumber});
84
    my $patron_image = Koha::Patron::Images->find($data->{borrowernumber});
85
    $template->param( picture => 1 ) if $patron_image;
85
    $template->param( picture => 1 ) if $patron_image;
86
86
(-)a/members/maninvoice.pl (-1 / +1 lines)
Lines 106-112 if ($add){ Link Here
106
        $template->param( 'catcode' => $patron_categories->next )  if $patron_categories->count == 1;
106
        $template->param( 'catcode' => $patron_categories->next )  if $patron_categories->count == 1;
107
    }
107
    }
108
108
109
    $template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' );
109
    $template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' || $data->{'category_type'} eq 'I' );
110
    my $patron_image = Koha::Patron::Images->find($data->{borrowernumber});
110
    my $patron_image = Koha::Patron::Images->find($data->{borrowernumber});
111
    $template->param( picture => 1 ) if $patron_image;
111
    $template->param( picture => 1 ) if $patron_image;
112
112
(-)a/members/member-flags.pl (-1 / +1 lines)
Lines 176-182 if ($input->param('newflags')) { Link Here
176
        $template->param( 'catcode' => $patron_categories->next )  if $patron_categories->count == 1;
176
        $template->param( 'catcode' => $patron_categories->next )  if $patron_categories->count == 1;
177
    }
177
    }
178
	
178
	
179
$template->param( adultborrower => 1 ) if ( $bor->{'category_type'} eq 'A' );
179
$template->param( adultborrower => 1 ) if ( $bor->{'category_type'} eq 'A' || $bor->{'category_type'} eq 'I' );
180
    my $patron_image = Koha::Patron::Images->find($bor->{borrowernumber});
180
    my $patron_image = Koha::Patron::Images->find($bor->{borrowernumber});
181
    $template->param( picture => 1 ) if $patron_image;
181
    $template->param( picture => 1 ) if $patron_image;
182
182
(-)a/members/member-password.pl (-1 / +1 lines)
Lines 105-111 if ( $bor->{'category_type'} eq 'C') { Link Here
105
    $template->param( 'catcode' => $patron_categories->next )  if $patron_categories->count == 1;
105
    $template->param( 'catcode' => $patron_categories->next )  if $patron_categories->count == 1;
106
}
106
}
107
107
108
$template->param( adultborrower => 1 ) if ( $bor->{'category_type'} eq 'A' );
108
$template->param( adultborrower => 1 ) if ( $bor->{'category_type'} eq 'A' || $bor->{'category_type'} eq 'I' );
109
109
110
my $patron_image = Koha::Patron::Images->find($bor->{borrowernumber});
110
my $patron_image = Koha::Patron::Images->find($bor->{borrowernumber});
111
$template->param( picture => 1 ) if $patron_image;
111
$template->param( picture => 1 ) if $patron_image;
(-)a/members/notices.pl (-1 / +1 lines)
Lines 73-79 if (C4::Context->preference('ExtendedPatronAttributes')) { Link Here
73
}
73
}
74
74
75
$template->param(%$borrower);
75
$template->param(%$borrower);
76
$template->param( adultborrower => 1 ) if ( $borrower->{category_type} eq 'A' );
76
$template->param( adultborrower => 1 ) if ( $borrower->{category_type} eq 'A' || $borrower->{category_type} eq 'I' );
77
$template->param(
77
$template->param(
78
    QUEUED_MESSAGES    => $queued_messages,
78
    QUEUED_MESSAGES    => $queued_messages,
79
    borrowernumber     => $borrowernumber,
79
    borrowernumber     => $borrowernumber,
(-)a/members/pay.pl (-1 / +1 lines)
Lines 231-237 sub borrower_add_additional_fields { Link Here
231
        my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']});
231
        my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']});
232
        $template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1;
232
        $template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1;
233
        $template->param( 'catcode' => $patron_categories->next )  if $patron_categories->count == 1;
233
        $template->param( 'catcode' => $patron_categories->next )  if $patron_categories->count == 1;
234
    } elsif ( $b_ref->{category_type} eq 'A' ) {
234
    } elsif ( $b_ref->{category_type} eq 'A' || $b_ref->{category_type} eq 'I' ) {
235
        $b_ref->{adultborrower} = 1;
235
        $b_ref->{adultborrower} = 1;
236
    }
236
    }
237
237
(-)a/members/paycollect.pl (-1 / +1 lines)
Lines 191-197 sub borrower_add_additional_fields { Link Here
191
        my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']});
191
        my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']});
192
        $template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1;
192
        $template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1;
193
        $template->param( 'catcode' => $patron_categories->next )  if $patron_categories->count == 1;
193
        $template->param( 'catcode' => $patron_categories->next )  if $patron_categories->count == 1;
194
    } elsif ( $b_ref->{category_type} eq 'A' ) {
194
    } elsif ( $b_ref->{category_type} eq 'A' || $b_ref->{category_type} eq 'I' ) {
195
        $b_ref->{adultborrower} = 1;
195
        $b_ref->{adultborrower} = 1;
196
    }
196
    }
197
197
(-)a/members/printfeercpt.pl (-1 / +1 lines)
Lines 112-118 for (my $i=0;$i<$numaccts;$i++){ Link Here
112
    push(@accountrows, \%row);
112
    push(@accountrows, \%row);
113
}
113
}
114
114
115
$template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' );
115
$template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' || $data->{'category_type'} eq 'I' );
116
116
117
my $patron_image = Koha::Patron::Images->find($data->{borrowernumber});
117
my $patron_image = Koha::Patron::Images->find($data->{borrowernumber});
118
$template->param( picture => 1 ) if $patron_image;
118
$template->param( picture => 1 ) if $patron_image;
(-)a/members/printinvoice.pl (-1 / +1 lines)
Lines 112-118 for ( my $i = 0 ; $i < $numaccts ; $i++ ) { Link Here
112
    push( @accountrows, \%row );
112
    push( @accountrows, \%row );
113
}
113
}
114
114
115
$template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' );
115
$template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' || $data->{'category_type'} eq 'I' );
116
116
117
my $patron_image = Koha::Patron::Images->find($data->{borrowernumber});
117
my $patron_image = Koha::Patron::Images->find($data->{borrowernumber});
118
$template->param( picture => 1 ) if $patron_image;
118
$template->param( picture => 1 ) if $patron_image;
(-)a/members/readingrec.pl (-1 / +1 lines)
Lines 101-107 if ( $data->{'category_type'} eq 'C') { Link Here
101
    $template->param( 'catcode' => $patron_categories->next )  if $patron_categories->count == 1;
101
    $template->param( 'catcode' => $patron_categories->next )  if $patron_categories->count == 1;
102
}
102
}
103
103
104
$template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' );
104
$template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' || $data->{'category_type'} eq 'I' );
105
if (! $limit){
105
if (! $limit){
106
	$limit = 'full';
106
	$limit = 'full';
107
}
107
}
(-)a/members/routing-lists.pl (-1 / +1 lines)
Lines 80-86 if ($borrowernumber) { Link Here
80
        routinglistview => 1
80
        routinglistview => 1
81
    );
81
    );
82
82
83
    $template->param( adultborrower => 1 ) if ( $borrower->{'category_type'} eq 'A' );
83
    $template->param( adultborrower => 1 ) if ( $borrower->{'category_type'} eq 'A' || $borrower->{'category_type'} eq 'I' );
84
}
84
}
85
85
86
##################################################################################
86
##################################################################################
(-)a/members/statistics.pl (-2 / +1 lines)
Lines 97-103 $template->param( picture => 1 ) if $patron_image; Link Here
97
97
98
$template->param(%$borrower);
98
$template->param(%$borrower);
99
99
100
$template->param( adultborrower => 1 ) if ( $borrower->{category_type} eq 'A' );
100
$template->param( adultborrower => 1 ) if ( $borrower->{category_type} eq 'A' || $borrower->{category_type} eq 'I' );
101
101
102
$template->param(
102
$template->param(
103
    statisticsview     => 1,
103
    statisticsview     => 1,
104
- 

Return to bug 18423