Lines 55-60
use Koha::AuthorisedValues;
Link Here
|
55 |
use Koha::CsvProfiles; |
55 |
use Koha::CsvProfiles; |
56 |
use Koha::Patron::Debarments qw(GetDebarments); |
56 |
use Koha::Patron::Debarments qw(GetDebarments); |
57 |
use Koha::Patron::Images; |
57 |
use Koha::Patron::Images; |
|
|
58 |
use Koha::Patron::Messages; |
58 |
use Module::Load; |
59 |
use Module::Load; |
59 |
if ( C4::Context->preference('NorwegianPatronDBEnable') && C4::Context->preference('NorwegianPatronDBEnable') == 1 ) { |
60 |
if ( C4::Context->preference('NorwegianPatronDBEnable') && C4::Context->preference('NorwegianPatronDBEnable') == 1 ) { |
60 |
load Koha::NorwegianPatronDB, qw( NLGetSyncDataFromBorrowernumber ); |
61 |
load Koha::NorwegianPatronDB, qw( NLGetSyncDataFromBorrowernumber ); |
Lines 332-337
if ( C4::Context->preference("ExportCircHistory") ) {
Link Here
|
332 |
$template->param(csv_profiles => [ Koha::CsvProfiles->search({ type => 'marc' }) ]); |
333 |
$template->param(csv_profiles => [ Koha::CsvProfiles->search({ type => 'marc' }) ]); |
333 |
} |
334 |
} |
334 |
|
335 |
|
|
|
336 |
my $messages = Koha::Patron::Messages->search( |
337 |
{ |
338 |
'me.borrowernumber' => $borrowernumber, |
339 |
}, |
340 |
{ |
341 |
join => 'manager', |
342 |
'+select' => ['manager.surname', 'manager.firstname' ], |
343 |
'+as' => ['manager_surname', 'manager_firstname'], |
344 |
} |
345 |
); |
346 |
|
347 |
|
335 |
# Display the language description instead of the code |
348 |
# Display the language description instead of the code |
336 |
# Note that this is certainly wrong |
349 |
# Note that this is certainly wrong |
337 |
my ( $subtag, $region ) = split '-', $patron->lang; |
350 |
my ( $subtag, $region ) = split '-', $patron->lang; |
Lines 360-365
$template->param(
Link Here
|
360 |
PatronsPerPage => C4::Context->preference("PatronsPerPage") || 20, |
373 |
PatronsPerPage => C4::Context->preference("PatronsPerPage") || 20, |
361 |
relatives_issues_count => $relatives_issues_count, |
374 |
relatives_issues_count => $relatives_issues_count, |
362 |
relatives_borrowernumbers => \@relatives, |
375 |
relatives_borrowernumbers => \@relatives, |
|
|
376 |
messages => $messages, |
363 |
); |
377 |
); |
364 |
|
378 |
|
365 |
output_html_with_http_headers $input, $cookie, $template->output; |
379 |
output_html_with_http_headers $input, $cookie, $template->output; |
366 |
- |
|
|