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

(-)a/circ/circulation.pl (-1 lines)
Lines 619-625 if ( $patron ) { Link Here
619
        categoryname      => $patron->category->description,
619
        categoryname      => $patron->category->description,
620
        expiry            => $patron->dateexpiry,
620
        expiry            => $patron->dateexpiry,
621
        is_child          => ( $patron->category->category_type eq 'C' ),
621
        is_child          => ( $patron->category->category_type eq 'C' ),
622
        picture           => ( $patron->image ? 1 : 0 ),
623
    );
622
    );
624
}
623
}
625
624
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc (-2 / +2 lines)
Lines 7-13 Link Here
7
<![endif]-->
7
<![endif]-->
8
<ul class="patronbriefinfo">
8
<ul class="patronbriefinfo">
9
    [% IF ( patronimages ) %]
9
    [% IF ( patronimages ) %]
10
        [% IF ( picture ) %]
10
        [% IF ( patron.image ) %]
11
            <li>
11
            <li>
12
                <img src="/cgi-bin/koha/members/patronimage.pl?borrowernumber=[% patron.borrowernumber | uri %]" id="patronimage" alt="[% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])" />
12
                <img src="/cgi-bin/koha/members/patronimage.pl?borrowernumber=[% patron.borrowernumber | uri %]" id="patronimage" alt="[% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])" />
13
            </li>
13
            </li>
Lines 97-103 Link Here
97
        [% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&amp;modules=MEMBERS&amp;modules=circulation&amp;object=[% patron.borrowernumber %]&amp;src=circ">Modification log</a></li>
97
        [% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&amp;modules=MEMBERS&amp;modules=circulation&amp;object=[% patron.borrowernumber %]&amp;src=circ">Modification log</a></li>
98
    [% END %]
98
    [% END %]
99
    [% IF CAN_user_borrowers_edit_borrowers %]
99
    [% IF CAN_user_borrowers_edit_borrowers %]
100
	[% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% patron.borrowernumber %]">Notices</a></li>
100
    [% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% patron.borrowernumber %]">Notices</a></li>
101
    [% END %]
101
    [% END %]
102
    [% IF CAN_user_borrowers_edit_borrowers %]
102
    [% IF CAN_user_borrowers_edit_borrowers %]
103
        [% IF (  statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% patron.borrowernumber %]">Statistics</a></li>
103
        [% IF (  statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% patron.borrowernumber %]">Statistics</a></li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-6 / +6 lines)
Lines 186-192 Link Here
186
    [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
186
    [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
187
        <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
187
        <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
188
            <fieldset class="brief">
188
            <fieldset class="brief">
189
            [% IF ( picture ) %]
189
            [% IF ( patron.image ) %]
190
                <legend>Manage patron image</legend>
190
                <legend>Manage patron image</legend>
191
                <div class="hint">To update the image for [% patron.title | html %] [% patron.surname | html %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image.
191
                <div class="hint">To update the image for [% patron.title | html %] [% patron.surname | html %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image.
192
            [% ELSE %]
192
            [% ELSE %]
Lines 207-213 Link Here
207
                    <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
207
                    <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
208
                    <input type="submit" value="Upload" class="submit" />
208
                    <input type="submit" value="Upload" class="submit" />
209
                    <input name="op" type="hidden" value="Upload" />
209
                    <input name="op" type="hidden" value="Upload" />
210
                    [% IF ( picture ) %]<a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&amp;borrowernumber=[% patron.borrowernumber %]&amp;csrf_token=[% csrf_token %]" class="delete">Delete</a>[% END %]
210
                    [% IF ( patron.image ) %]<a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&amp;borrowernumber=[% patron.borrowernumber %]&amp;csrf_token=[% csrf_token %]" class="delete">Delete</a>[% END %]
211
                </fieldset>
211
                </fieldset>
212
            </fieldset>
212
            </fieldset>
213
        </form>
213
        </form>
Lines 297-303 Link Here
297
    <li><span class="label">Borrowernumber: </span> [% patron.borrowernumber %]</li>
297
    <li><span class="label">Borrowernumber: </span> [% patron.borrowernumber %]</li>
298
    <li><span class="label">Category: </span>[% patron.category.description %] ([% patron.categorycode %])</li>
298
    <li><span class="label">Category: </span>[% patron.category.description %] ([% patron.categorycode %])</li>
299
    <li><span class="label">Registration date: </span>[% patron.dateenrolled | $KohaDates %]</li>
299
    <li><span class="label">Registration date: </span>[% patron.dateenrolled | $KohaDates %]</li>
300
    
300
301
    <li><span class="label">Expiration date: </span>
301
    <li><span class="label">Expiration date: </span>
302
    [% IF ( was_renewed ) %]
302
    [% IF ( was_renewed ) %]
303
            <strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong>
303
            <strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong>
Lines 390-399 Link Here
390
    <li><span class="label">First name: </span>[% patron.altcontactfirstname | html %]</li>
390
    <li><span class="label">First name: </span>[% patron.altcontactfirstname | html %]</li>
391
    <li><span class="label">Address: </span>[% patron.altcontactaddress1 | html %]</li>
391
    <li><span class="label">Address: </span>[% patron.altcontactaddress1 | html %]</li>
392
    <li><span class="label">Address 2: </span>[% patron.altcontactaddress2 | html %]</li>
392
    <li><span class="label">Address 2: </span>[% patron.altcontactaddress2 | html %]</li>
393
	<li><span class="label">City: </span>[% patron.altcontactaddress3 | html %]</li>
393
    <li><span class="label">City: </span>[% patron.altcontactaddress3 | html %]</li>
394
    [% IF ( patron.altcontactstate ) %]<li><span class="label">State: </span>[% patron.altcontactstate | html %]</li>[% END %]
394
    [% IF ( patron.altcontactstate ) %]<li><span class="label">State: </span>[% patron.altcontactstate | html %]</li>[% END %]
395
    <li><span class="label">ZIP/Postal code: </span>[% patron.altcontactzipcode | html %]</li>
395
    <li><span class="label">ZIP/Postal code: </span>[% patron.altcontactzipcode | html %]</li>
396
	[% IF ( patron.altcontactcountry ) %]<li><span class="label">Country: </span>[% patron.altcontactcountry | html %]</li>[% END %]
396
    [% IF ( patron.altcontactcountry ) %]<li><span class="label">Country: </span>[% patron.altcontactcountry | html %]</li>[% END %]
397
    [% IF ( patron.altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a></li>[% END %]
397
    [% IF ( patron.altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a></li>[% END %]
398
    </ol></div>
398
    </ol></div>
399
</div>
399
</div>
Lines 606-612 Link Here
606
                ],
606
                ],
607
                "bPaginate": false
607
                "bPaginate": false
608
            }));
608
            }));
609
            [% IF ( picture ) %]
609
            [% IF ( patron.image ) %]
610
                $('#delpicture').click(function(){
610
                $('#delpicture').click(function(){
611
                     return confirm(_("Are you sure you want to delete this patron image? This cannot be undone."));
611
                     return confirm(_("Are you sure you want to delete this patron image? This cannot be undone."));
612
                });
612
                });
(-)a/members/boraccount.pl (-2 lines)
Lines 98-105 foreach my $accountline ( @{$accts}) { Link Here
98
98
99
$template->param( adultborrower => 1 ) if ( $patron->category->category_type =~ /^(A|I)$/ );
99
$template->param( adultborrower => 1 ) if ( $patron->category->category_type =~ /^(A|I)$/ );
100
100
101
$template->param( picture => 1 ) if $patron->image;
102
103
if (C4::Context->preference('ExtendedPatronAttributes')) {
101
if (C4::Context->preference('ExtendedPatronAttributes')) {
104
    my $attributes = GetBorrowerAttributes($borrowernumber);
102
    my $attributes = GetBorrowerAttributes($borrowernumber);
105
    $template->param(
103
    $template->param(
(-)a/members/deletemem.pl (-1 lines)
Lines 108-114 my $op = $input->param('op') || 'delete_confirm'; Link Here
108
my $dbh = C4::Context->dbh;
108
my $dbh = C4::Context->dbh;
109
my $is_guarantor = $dbh->selectrow_array("SELECT COUNT(*) FROM borrowers WHERE guarantorid=?", undef, $member);
109
my $is_guarantor = $dbh->selectrow_array("SELECT COUNT(*) FROM borrowers WHERE guarantorid=?", undef, $member);
110
if ( $op eq 'delete_confirm' or $countissues > 0 or $flags->{'CHARGES'}  or $is_guarantor or $deletelocal == 0) {
110
if ( $op eq 'delete_confirm' or $countissues > 0 or $flags->{'CHARGES'}  or $is_guarantor or $deletelocal == 0) {
111
    $template->param( picture => 1 ) if $patron->image;
112
111
113
    $template->param( adultborrower => 1 ) if $patron->category->category_type =~ /^(A|I)$/;
112
    $template->param( adultborrower => 1 ) if $patron->category->category_type =~ /^(A|I)$/;
114
113
(-)a/members/discharge.pl (-2 lines)
Lines 103-110 my @validated_discharges = Koha::Patron::Discharge::get_validated({ Link Here
103
    borrowernumber => $borrowernumber,
103
    borrowernumber => $borrowernumber,
104
});
104
});
105
105
106
$template->param( picture => 1 ) if $patron->image;
107
108
$template->param(
106
$template->param(
109
    patron => $patron,
107
    patron => $patron,
110
    can_be_discharged => $can_be_discharged,
108
    can_be_discharged => $can_be_discharged,
(-)a/members/files.pl (-1 lines)
Lines 114-120 else { Link Here
114
        );
114
        );
115
    }
115
    }
116
116
117
    $template->param( picture => 1 ) if $patron->image;
118
117
119
    $template->param( adultborrower => 1 )
118
    $template->param( adultborrower => 1 )
120
        if ( $patron_category->category_type eq 'A' || $patron_category->category_type eq 'I' );
119
        if ( $patron_category->category_type eq 'A' || $patron_category->category_type eq 'I' );
(-)a/members/housebound.pl (-3 / +1 lines)
Lines 62-70 my $patron = Koha::Patrons->find($borrowernumber); Link Here
62
output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } );
62
output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } );
63
63
64
# Get supporting cast
64
# Get supporting cast
65
my ( $branch, $category, $houseboundprofile, $visit, $patron_image );
65
my ( $branch, $category, $houseboundprofile, $visit );
66
if ( $patron ) { # FIXME This test is not needed - output_and_exit_if_error handles it
66
if ( $patron ) { # FIXME This test is not needed - output_and_exit_if_error handles it
67
    $patron_image = $patron->image;
68
    $category = Koha::Patron::Categories->new->find($patron->categorycode);
67
    $category = Koha::Patron::Categories->new->find($patron->categorycode);
69
    $houseboundprofile = $patron->housebound_profile;
68
    $houseboundprofile = $patron->housebound_profile;
70
}
69
}
Lines 170-176 if ( C4::Context->preference('ExtendedPatronAttributes') and $patron ) { Link Here
170
169
171
$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' );
170
$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' );
172
$template->param(
171
$template->param(
173
    picture            => $patron_image,
174
    housebound_profile => $houseboundprofile,
172
    housebound_profile => $houseboundprofile,
175
    visit              => $houseboundvisit,
173
    visit              => $houseboundvisit,
176
    messages           => \@messages,
174
    messages           => \@messages,
(-)a/members/mancredit.pl (-1 lines)
Lines 86-92 if ($add){ Link Here
86
    }
86
    }
87
87
88
    $template->param( adultborrower => 1 ) if ( $patron->category->category_type =~ /^(A|I)$/ );
88
    $template->param( adultborrower => 1 ) if ( $patron->category->category_type =~ /^(A|I)$/ );
89
    $template->param( picture => 1 ) if $patron->image;
90
89
91
    if (C4::Context->preference('ExtendedPatronAttributes')) {
90
    if (C4::Context->preference('ExtendedPatronAttributes')) {
92
        my $attributes = GetBorrowerAttributes($borrowernumber);
91
        my $attributes = GetBorrowerAttributes($borrowernumber);
(-)a/members/maninvoice.pl (-1 lines)
Lines 114-120 if ($add){ Link Here
114
    }
114
    }
115
115
116
    $template->param( adultborrower => 1 ) if ( $patron->category->category_type =~ /^(A|I)$/ );
116
    $template->param( adultborrower => 1 ) if ( $patron->category->category_type =~ /^(A|I)$/ );
117
    $template->param( picture => 1 ) if $patron->image;
118
117
119
    if (C4::Context->preference('ExtendedPatronAttributes')) {
118
    if (C4::Context->preference('ExtendedPatronAttributes')) {
120
        my $attributes = GetBorrowerAttributes($borrowernumber);
119
        my $attributes = GetBorrowerAttributes($borrowernumber);
(-)a/members/member-flags.pl (-2 lines)
Lines 18-24 use Koha::Patron::Categories; Link Here
18
use Koha::Patrons;
18
use Koha::Patrons;
19
19
20
use C4::Output;
20
use C4::Output;
21
use Koha::Patron::Images;
22
use Koha::Token;
21
use Koha::Token;
23
22
24
my $input = new CGI;
23
my $input = new CGI;
Lines 189-195 if ($input->param('newflags')) { Link Here
189
    }
188
    }
190
189
191
$template->param( adultborrower => 1 ) if ( $category_type =~ /^(A|I)$/ );
190
$template->param( adultborrower => 1 ) if ( $category_type =~ /^(A|I)$/ );
192
    $template->param( picture => 1 ) if $patron->image;
193
191
194
if (C4::Context->preference('ExtendedPatronAttributes')) {
192
if (C4::Context->preference('ExtendedPatronAttributes')) {
195
    my $attributes = GetBorrowerAttributes($bor->{'borrowernumber'});
193
    my $attributes = GetBorrowerAttributes($bor->{'borrowernumber'});
(-)a/members/member-password.pl (-2 lines)
Lines 103-110 if ( $category_type eq 'C') { Link Here
103
103
104
$template->param( adultborrower => 1 ) if ( $category_type =~ /^(A|I)$/ );
104
$template->param( adultborrower => 1 ) if ( $category_type =~ /^(A|I)$/ );
105
105
106
$template->param( picture => 1 ) if $patron->image;
107
108
if ( C4::Context->preference('ExtendedPatronAttributes') ) {
106
if ( C4::Context->preference('ExtendedPatronAttributes') ) {
109
    my $attributes = GetBorrowerAttributes( $bor->{'borrowernumber'} );
107
    my $attributes = GetBorrowerAttributes( $bor->{'borrowernumber'} );
110
    $template->param(
108
    $template->param(
(-)a/members/moremember.pl (-5 lines)
Lines 53-59 use C4::Members::Attributes qw(GetBorrowerAttributes); Link Here
53
use Koha::AuthorisedValues;
53
use Koha::AuthorisedValues;
54
use Koha::CsvProfiles;
54
use Koha::CsvProfiles;
55
use Koha::Patron::Debarments qw(GetDebarments);
55
use Koha::Patron::Debarments qw(GetDebarments);
56
use Koha::Patron::Images;
57
use Koha::Patron::Messages;
56
use Koha::Patron::Messages;
58
use Module::Load;
57
use Module::Load;
59
if ( C4::Context->preference('NorwegianPatronDBEnable') && C4::Context->preference('NorwegianPatronDBEnable') == 1 ) {
58
if ( C4::Context->preference('NorwegianPatronDBEnable') && C4::Context->preference('NorwegianPatronDBEnable') == 1 ) {
Lines 275-284 if ( C4::Context->preference('NorwegianPatronDBEnable') && C4::Context->preferen Link Here
275
    }
274
    }
276
}
275
}
277
276
278
# check to see if patron's image exists in the database
279
# basically this gives us a template var to condition the display of
280
# patronimage related interface on
281
$template->param( picture => 1 ) if $patron->image;
282
# Generate CSRF token for upload and delete image buttons
277
# Generate CSRF token for upload and delete image buttons
283
$template->param(
278
$template->param(
284
    csrf_token => Koha::Token->new->generate_csrf({ session_id => $input->cookie('CGISESSID'),}),
279
    csrf_token => Koha::Token->new->generate_csrf({ session_id => $input->cookie('CGISESSID'),}),
(-)a/members/notices.pl (-2 lines)
Lines 51-58 my ($template, $loggedinuser, $cookie) Link Here
51
my $logged_in_user = Koha::Patrons->find( $loggedinuser ) or die "Not logged in";
51
my $logged_in_user = Koha::Patrons->find( $loggedinuser ) or die "Not logged in";
52
output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } );
52
output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } );
53
53
54
$template->param( picture => 1 ) if $patron->image;
55
56
# Allow resending of messages in Notices tab
54
# Allow resending of messages in Notices tab
57
my $op = $input->param('op') || q{};
55
my $op = $input->param('op') || q{};
58
if ( $op eq 'resend_notice' ) {
56
if ( $op eq 'resend_notice' ) {
(-)a/members/pay.pl (-3 lines)
Lines 40-46 use C4::Koha; Link Here
40
use C4::Overdues;
40
use C4::Overdues;
41
use C4::Members::Attributes qw(GetBorrowerAttributes);
41
use C4::Members::Attributes qw(GetBorrowerAttributes);
42
use Koha::Patrons;
42
use Koha::Patrons;
43
use Koha::Patron::Images;
44
43
45
use Koha::Patron::Categories;
44
use Koha::Patron::Categories;
46
use URI::Escape;
45
use URI::Escape;
Lines 140-147 sub add_accounts_to_template { Link Here
140
    }
139
    }
141
    borrower_add_additional_fields($patron->unblessed);
140
    borrower_add_additional_fields($patron->unblessed);
142
141
143
    my $patron_image = Koha::Patron::Images->find($borrower->{borrowernumber});
144
    $template->param( picture => 1 ) if $patron_image;
145
    $template->param(
142
    $template->param(
146
        patron   => $patron,
143
        patron   => $patron,
147
        accounts => \@accounts,
144
        accounts => \@accounts,
(-)a/members/paycollect.pl (-4 lines)
Lines 27-33 use C4::Members; Link Here
27
use C4::Members::Attributes qw(GetBorrowerAttributes);
27
use C4::Members::Attributes qw(GetBorrowerAttributes);
28
use C4::Accounts;
28
use C4::Accounts;
29
use C4::Koha;
29
use C4::Koha;
30
use Koha::Patron::Images;
31
use Koha::Patrons;
30
use Koha::Patrons;
32
use Koha::Account;
31
use Koha::Account;
33
use Koha::Token;
32
use Koha::Token;
Lines 200-208 sub borrower_add_additional_fields { Link Here
200
        $b_ref->{adultborrower} = 1;
199
        $b_ref->{adultborrower} = 1;
201
    }
200
    }
202
201
203
    my $patron_image = Koha::Patron::Images->find($b_ref->{borrowernumber});
204
    $template->param( picture => 1 ) if $patron_image;
205
206
    if (C4::Context->preference('ExtendedPatronAttributes')) {
202
    if (C4::Context->preference('ExtendedPatronAttributes')) {
207
        $b_ref->{extendedattributes} = GetBorrowerAttributes($b_ref->{borrowernumber});
203
        $b_ref->{extendedattributes} = GetBorrowerAttributes($b_ref->{borrowernumber});
208
    }
204
    }
(-)a/members/printfeercpt.pl (-2 lines)
Lines 116-123 for (my $i=0;$i<$numaccts;$i++){ Link Here
116
116
117
$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' );
117
$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' );
118
118
119
$template->param( picture => 1 ) if $patron->image;
120
121
$template->param(
119
$template->param(
122
    patron               => $patron,
120
    patron               => $patron,
123
    finesview           => 1,
121
    finesview           => 1,
(-)a/members/printinvoice.pl (-2 lines)
Lines 116-123 for ( my $i = 0 ; $i < $numaccts ; $i++ ) { Link Here
116
116
117
$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' );
117
$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' );
118
118
119
$template->param( picture => 1 ) if $patron->image;
120
121
$template->param(
119
$template->param(
122
    patron         => $patron,
120
    patron         => $patron,
123
    finesview      => 1,
121
    finesview      => 1,
(-)a/members/purchase-suggestions.pl (-2 lines)
Lines 60-67 if (C4::Context->preference('ExtendedPatronAttributes')) { Link Here
60
    );
60
    );
61
}
61
}
62
62
63
$template->param( picture => 1 ) if $patron->image;
64
65
my $suggestions = SearchSuggestion( { suggestedby => $borrowernumber } );
63
my $suggestions = SearchSuggestion( { suggestedby => $borrowernumber } );
66
64
67
$template->param( suggestions => $suggestions );
65
$template->param( suggestions => $suggestions );
(-)a/members/readingrec.pl (-2 lines)
Lines 104-111 if (! $limit){ Link Here
104
	$limit = 'full';
104
	$limit = 'full';
105
}
105
}
106
106
107
$template->param( picture => 1 ) if $patron->image;
108
109
if (C4::Context->preference('ExtendedPatronAttributes')) {
107
if (C4::Context->preference('ExtendedPatronAttributes')) {
110
    my $attributes = GetBorrowerAttributes($patron->borrowernumber);
108
    my $attributes = GetBorrowerAttributes($patron->borrowernumber);
111
    $template->param(
109
    $template->param(
(-)a/members/routing-lists.pl (-2 lines)
Lines 88-93 if (C4::Context->preference('ExtendedPatronAttributes')) { Link Here
88
    );
88
    );
89
}
89
}
90
90
91
$template->param( picture => 1 ) if $patron and $patron->image;
92
93
output_html_with_http_headers $query, $cookie, $template->output;
91
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/members/statistics.pl (-3 lines)
Lines 84-91 if (C4::Context->preference('ExtendedPatronAttributes')) { Link Here
84
    );
84
    );
85
}
85
}
86
86
87
$template->param( picture => 1 ) if $patron->image;
88
89
$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' );
87
$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' );
90
88
91
$template->param(
89
$template->param(
92
- 

Return to bug 18789