To update the image for [% patron.title | html %] [% patron.surname | html %], select a new image file and click 'Upload.'
Click the 'Delete' button to remove the current image.
[% ELSE %]
@@ -303,7 +303,7 @@ function validate1(date) {
- [% IF ( picture ) %]
Delete [% END %]
+ [% IF ( patron.image ) %]
Delete [% END %]
@@ -393,7 +393,7 @@ function validate1(date) {
Borrowernumber: [% patron.borrowernumber %]
Category: [% patron.category.description %] ([% patron.categorycode %])
Registration date: [% patron.dateenrolled | $KohaDates %]
-
+
Expiration date:
[% IF ( was_renewed ) %]
[% patron.dateexpiry | $KohaDates %]
@@ -486,10 +486,10 @@ function validate1(date) {
First name: [% patron.altcontactfirstname | html %]
Address: [% patron.altcontactaddress1 | html %]
Address 2: [% patron.altcontactaddress2 | html %]
-
City: [% patron.altcontactaddress3 | html %]
+
City: [% patron.altcontactaddress3 | html %]
[% IF ( patron.altcontactstate ) %]
State: [% patron.altcontactstate | html %][% END %]
ZIP/Postal code: [% patron.altcontactzipcode | html %]
- [% IF ( patron.altcontactcountry ) %]
Country: [% patron.altcontactcountry | html %][% END %]
+ [% IF ( patron.altcontactcountry ) %]
Country: [% patron.altcontactcountry | html %][% END %]
[% IF ( patron.altcontactphone ) %]
Phone: [% patron.altcontactphone | html %] [% END %]
--- a/members/boraccount.pl
+++ a/members/boraccount.pl
@@ -99,8 +99,6 @@ foreach my $accountline ( @{$accts}) {
$template->param( adultborrower => 1 ) if ( $patron->category->category_type =~ /^(A|I)$/ );
-$template->param( picture => 1 ) if $patron->image;
-
if (C4::Context->preference('ExtendedPatronAttributes')) {
my $attributes = GetBorrowerAttributes($borrowernumber);
$template->param(
--- a/members/deletemem.pl
+++ a/members/deletemem.pl
@@ -109,7 +109,6 @@ my $op = $input->param('op') || 'delete_confirm';
my $dbh = C4::Context->dbh;
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( picture => 1 ) if $patron->image;
$template->param( adultborrower => 1 ) if $patron->category->category_type =~ /^(A|I)$/;
--- a/members/discharge.pl
+++ a/members/discharge.pl
@@ -103,8 +103,6 @@ my @validated_discharges = Koha::Patron::Discharge::get_validated({
borrowernumber => $borrowernumber,
});
-$template->param( picture => 1 ) if $patron->image;
-
$template->param(
patron => $patron,
can_be_discharged => $can_be_discharged,
--- a/members/files.pl
+++ a/members/files.pl
@@ -115,7 +115,6 @@ else {
);
}
- $template->param( picture => 1 ) if $patron->image;
$template->param( adultborrower => 1 )
if ( $patron_category->category_type eq 'A' || $patron_category->category_type eq 'I' );
--- a/members/housebound.pl
+++ a/members/housebound.pl
@@ -62,9 +62,8 @@ my $patron = Koha::Patrons->find($borrowernumber);
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, $patron_image );
+my ( $branch, $category, $houseboundprofile, $visit );
if ( $patron ) { # FIXME This test is not needed - output_and_exit_if_error handles it
- $patron_image = $patron->image;
$category = Koha::Patron::Categories->new->find($patron->categorycode);
$houseboundprofile = $patron->housebound_profile;
}
@@ -170,7 +169,6 @@ if ( C4::Context->preference('ExtendedPatronAttributes') and $patron ) {
$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' );
$template->param(
- picture => $patron_image,
housebound_profile => $houseboundprofile,
visit => $houseboundvisit,
messages => \@messages,
--- a/members/mancredit.pl
+++ a/members/mancredit.pl
@@ -87,7 +87,6 @@ if ($add){
}
$template->param( adultborrower => 1 ) if ( $patron->category->category_type =~ /^(A|I)$/ );
- $template->param( picture => 1 ) if $patron->image;
if (C4::Context->preference('ExtendedPatronAttributes')) {
my $attributes = GetBorrowerAttributes($borrowernumber);
--- a/members/maninvoice.pl
+++ a/members/maninvoice.pl
@@ -115,7 +115,6 @@ if ($add){
}
$template->param( adultborrower => 1 ) if ( $patron->category->category_type =~ /^(A|I)$/ );
- $template->param( picture => 1 ) if $patron->image;
if (C4::Context->preference('ExtendedPatronAttributes')) {
my $attributes = GetBorrowerAttributes($borrowernumber);
--- a/members/member-flags.pl
+++ a/members/member-flags.pl
@@ -19,7 +19,6 @@ use Koha::Patron::Categories;
use Koha::Patrons;
use C4::Output;
-use Koha::Patron::Images;
use Koha::Token;
my $input = new CGI;
@@ -190,7 +189,6 @@ if ($input->param('newflags')) {
}
$template->param( adultborrower => 1 ) if ( $category_type =~ /^(A|I)$/ );
- $template->param( picture => 1 ) if $patron->image;
if (C4::Context->preference('ExtendedPatronAttributes')) {
my $attributes = GetBorrowerAttributes($bor->{'borrowernumber'});
--- a/members/member-password.pl
+++ a/members/member-password.pl
@@ -104,8 +104,6 @@ if ( $category_type eq 'C') {
$template->param( adultborrower => 1 ) if ( $category_type =~ /^(A|I)$/ );
-$template->param( picture => 1 ) if $patron->image;
-
if ( C4::Context->preference('ExtendedPatronAttributes') ) {
my $attributes = GetBorrowerAttributes( $bor->{'borrowernumber'} );
$template->param(
--- a/members/moremember.pl
+++ a/members/moremember.pl
@@ -54,7 +54,6 @@ use C4::Members::Attributes qw(GetBorrowerAttributes);
use Koha::AuthorisedValues;
use Koha::CsvProfiles;
use Koha::Patron::Debarments qw(GetDebarments);
-use Koha::Patron::Images;
use Module::Load;
if ( C4::Context->preference('NorwegianPatronDBEnable') && C4::Context->preference('NorwegianPatronDBEnable') == 1 ) {
load Koha::NorwegianPatronDB, qw( NLGetSyncDataFromBorrowernumber );
@@ -275,10 +274,6 @@ if ( C4::Context->preference('NorwegianPatronDBEnable') && C4::Context->preferen
}
}
-# check to see if patron's image exists in the database
-# basically this gives us a template var to condition the display of
-# patronimage related interface on
-$template->param( picture => 1 ) if $patron->image;
# Generate CSRF token for upload and delete image buttons
$template->param(
csrf_token => Koha::Token->new->generate_csrf({ session_id => $input->cookie('CGISESSID'),}),
--- a/members/notices.pl
+++ a/members/notices.pl
@@ -52,8 +52,6 @@ my ($template, $loggedinuser, $cookie)
my $logged_in_user = Koha::Patrons->find( $loggedinuser ) or die "Not logged in";
output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } );
-$template->param( picture => 1 ) if $patron->image;
-
# Allow resending of messages in Notices tab
my $op = $input->param('op') || q{};
if ( $op eq 'resend_notice' ) {
--- a/members/pay.pl
+++ a/members/pay.pl
@@ -41,7 +41,6 @@ use C4::Koha;
use C4::Overdues;
use C4::Members::Attributes qw(GetBorrowerAttributes);
use Koha::Patrons;
-use Koha::Patron::Images;
use Koha::Patron::Categories;
use URI::Escape;
@@ -141,8 +140,6 @@ sub add_accounts_to_template {
}
borrower_add_additional_fields($patron->unblessed);
- my $patron_image = Koha::Patron::Images->find($borrower->{borrowernumber});
- $template->param( picture => 1 ) if $patron_image;
$template->param(
patron => $patron,
accounts => \@accounts,
--- a/members/paycollect.pl
+++ a/members/paycollect.pl
@@ -28,7 +28,6 @@ use C4::Members;
use C4::Members::Attributes qw(GetBorrowerAttributes);
use C4::Accounts;
use C4::Koha;
-use Koha::Patron::Images;
use Koha::Patrons;
use Koha::Account;
use Koha::Token;
@@ -201,9 +200,6 @@ sub borrower_add_additional_fields {
$b_ref->{adultborrower} = 1;
}
- my $patron_image = Koha::Patron::Images->find($b_ref->{borrowernumber});
- $template->param( picture => 1 ) if $patron_image;
-
if (C4::Context->preference('ExtendedPatronAttributes')) {
$b_ref->{extendedattributes} = GetBorrowerAttributes($b_ref->{borrowernumber});
}
--- a/members/printfeercpt.pl
+++ a/members/printfeercpt.pl
@@ -117,8 +117,6 @@ for (my $i=0;$i<$numaccts;$i++){
$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' );
-$template->param( picture => 1 ) if $patron->image;
-
$template->param(
patron => $patron,
finesview => 1,
--- a/members/printinvoice.pl
+++ a/members/printinvoice.pl
@@ -117,8 +117,6 @@ for ( my $i = 0 ; $i < $numaccts ; $i++ ) {
$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' );
-$template->param( picture => 1 ) if $patron->image;
-
$template->param(
patron => $patron,
finesview => 1,
--- a/members/purchase-suggestions.pl
+++ a/members/purchase-suggestions.pl
@@ -60,8 +60,6 @@ if (C4::Context->preference('ExtendedPatronAttributes')) {
);
}
-$template->param( picture => 1 ) if $patron->image;
-
my $suggestions = SearchSuggestion( { suggestedby => $borrowernumber } );
$template->param( suggestions => $suggestions );
--- a/members/readingrec.pl
+++ a/members/readingrec.pl
@@ -105,8 +105,6 @@ if (! $limit){
$limit = 'full';
}
-$template->param( picture => 1 ) if $patron->image;
-
if (C4::Context->preference('ExtendedPatronAttributes')) {
my $attributes = GetBorrowerAttributes($patron->borrowernumber);
$template->param(
--- a/members/routing-lists.pl
+++ a/members/routing-lists.pl
@@ -89,6 +89,4 @@ if (C4::Context->preference('ExtendedPatronAttributes')) {
);
}
-$template->param( picture => 1 ) if $patron and $patron->image;
-
output_html_with_http_headers $query, $cookie, $template->output;
--- a/members/statistics.pl
+++ a/members/statistics.pl
@@ -84,8 +84,6 @@ if (C4::Context->preference('ExtendedPatronAttributes')) {
);
}
-$template->param( picture => 1 ) if $patron->image;
-
$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' );
$template->param(
--