Lines 47-52
use C4::Items;
Link Here
|
47 |
use Koha::DateUtils qw( dt_from_string ); |
47 |
use Koha::DateUtils qw( dt_from_string ); |
48 |
use Koha::Acquisition::Currencies; |
48 |
use Koha::Acquisition::Currencies; |
49 |
use Koha::Patron::Images; |
49 |
use Koha::Patron::Images; |
|
|
50 |
use Koha::Patrons; |
50 |
use Koha::Patron::Messages; |
51 |
use Koha::Patron::Messages; |
51 |
|
52 |
|
52 |
my $query = new CGI; |
53 |
my $query = new CGI; |
Lines 299-307
if ($borrower->{cardnumber}) {
Link Here
|
299 |
); |
300 |
); |
300 |
if (C4::Context->preference('ShowPatronImageInWebBasedSelfCheck')) { |
301 |
if (C4::Context->preference('ShowPatronImageInWebBasedSelfCheck')) { |
301 |
my $patron_image = Koha::Patron::Images->find($borrower->{borrowernumber}); |
302 |
my $patron_image = Koha::Patron::Images->find($borrower->{borrowernumber}); |
|
|
303 |
my $patron = Koha::Patrons->find($borrower->{borrowernumber}); |
304 |
my $hash = md5_base64($patron->cardnumber()); |
305 |
|
302 |
$template->param( |
306 |
$template->param( |
303 |
display_patron_image => 1, |
307 |
display_patron_image => 1, |
304 |
cardnumber => $borrower->{cardnumber}, |
308 |
cardnumber => $borrower->{cardnumber}, |
|
|
309 |
ck => md5_base64($patron->cardnumber()), |
305 |
) if $patron_image; |
310 |
) if $patron_image; |
306 |
} |
311 |
} |
307 |
} else { |
312 |
} else { |