Lines 38-43
use Koha::Checkouts;
Link Here
|
38 |
use Koha::DateUtils qw(dt_from_string); |
38 |
use Koha::DateUtils qw(dt_from_string); |
39 |
use Koha::Library::Groups; |
39 |
use Koha::Library::Groups; |
40 |
use Koha::Libraries; |
40 |
use Koha::Libraries; |
|
|
41 |
use Koha::Desks; |
41 |
use Koha::Patrons; |
42 |
use Koha::Patrons; |
42 |
use Koha::Patron::Consents; |
43 |
use Koha::Patron::Consents; |
43 |
use POSIX qw/strftime/; |
44 |
use POSIX qw/strftime/; |
Lines 461-466
sub get_template_and_user {
Link Here
|
461 |
OpenLibraryCovers => C4::Context->preference("OpenLibraryCovers"), |
462 |
OpenLibraryCovers => C4::Context->preference("OpenLibraryCovers"), |
462 |
KohaAdminEmailAddress => "" . C4::Context->preference("KohaAdminEmailAddress"), |
463 |
KohaAdminEmailAddress => "" . C4::Context->preference("KohaAdminEmailAddress"), |
463 |
LoginBranchcode => ( C4::Context->userenv ? C4::Context->userenv->{"branch"} : undef ), |
464 |
LoginBranchcode => ( C4::Context->userenv ? C4::Context->userenv->{"branch"} : undef ), |
|
|
465 |
LoginDeskname => ( C4::Context->userenv ? C4::Context->userenv->{"desk_name"} : undef ), |
464 |
LoginFirstname => ( C4::Context->userenv ? C4::Context->userenv->{"firstname"} : "Bel" ), |
466 |
LoginFirstname => ( C4::Context->userenv ? C4::Context->userenv->{"firstname"} : "Bel" ), |
465 |
LoginSurname => C4::Context->userenv ? C4::Context->userenv->{"surname"} : "Inconnu", |
467 |
LoginSurname => C4::Context->userenv ? C4::Context->userenv->{"surname"} : "Inconnu", |
466 |
emailaddress => C4::Context->userenv ? C4::Context->userenv->{"emailaddress"} : undef, |
468 |
emailaddress => C4::Context->userenv ? C4::Context->userenv->{"emailaddress"} : undef, |
Lines 489-494
sub get_template_and_user {
Link Here
|
489 |
IntranetmainUserblock => C4::Context->preference("IntranetmainUserblock"), |
491 |
IntranetmainUserblock => C4::Context->preference("IntranetmainUserblock"), |
490 |
LibraryName => C4::Context->preference("LibraryName"), |
492 |
LibraryName => C4::Context->preference("LibraryName"), |
491 |
LoginBranchname => ( C4::Context->userenv ? C4::Context->userenv->{"branchname"} : undef ), |
493 |
LoginBranchname => ( C4::Context->userenv ? C4::Context->userenv->{"branchname"} : undef ), |
|
|
494 |
LoginDeskname => ( C4::Context->userenv ? C4::Context->userenv->{"desk_name"} : undef ), |
492 |
advancedMARCEditor => C4::Context->preference("advancedMARCEditor"), |
495 |
advancedMARCEditor => C4::Context->preference("advancedMARCEditor"), |
493 |
canreservefromotherbranches => C4::Context->preference('canreservefromotherbranches'), |
496 |
canreservefromotherbranches => C4::Context->preference('canreservefromotherbranches'), |
494 |
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), |
497 |
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), |
Lines 557-562
sub get_template_and_user {
Link Here
|
557 |
LibraryName => "" . C4::Context->preference("LibraryName"), |
560 |
LibraryName => "" . C4::Context->preference("LibraryName"), |
558 |
LibraryNameTitle => "" . $LibraryNameTitle, |
561 |
LibraryNameTitle => "" . $LibraryNameTitle, |
559 |
LoginBranchname => C4::Context->userenv ? C4::Context->userenv->{"branchname"} : "", |
562 |
LoginBranchname => C4::Context->userenv ? C4::Context->userenv->{"branchname"} : "", |
|
|
563 |
LoginDeskname => C4::Context->userenv ? C4::Context->userenv->{"desk_name"} : "", |
560 |
OPACAmazonCoverImages => C4::Context->preference("OPACAmazonCoverImages"), |
564 |
OPACAmazonCoverImages => C4::Context->preference("OPACAmazonCoverImages"), |
561 |
OPACFRBRizeEditions => C4::Context->preference("OPACFRBRizeEditions"), |
565 |
OPACFRBRizeEditions => C4::Context->preference("OPACFRBRizeEditions"), |
562 |
OpacHighlightedWords => C4::Context->preference("OpacHighlightedWords"), |
566 |
OpacHighlightedWords => C4::Context->preference("OpacHighlightedWords"), |
Lines 847-854
sub checkauth {
Link Here
|
847 |
$session->param('cardnumber'), $session->param('firstname'), |
851 |
$session->param('cardnumber'), $session->param('firstname'), |
848 |
$session->param('surname'), $session->param('branch'), |
852 |
$session->param('surname'), $session->param('branch'), |
849 |
$session->param('branchname'), $session->param('flags'), |
853 |
$session->param('branchname'), $session->param('flags'), |
850 |
$session->param('emailaddress'), |
854 |
$session->param('emailaddress'), $session->param('shibboleth'), |
851 |
$session->param('shibboleth') |
855 |
$session->param('desk_id'), $session->param('desk_name') |
852 |
); |
856 |
); |
853 |
C4::Context::set_shelves_userenv( 'bar', $session->param('barshelves') ); |
857 |
C4::Context::set_shelves_userenv( 'bar', $session->param('barshelves') ); |
854 |
C4::Context::set_shelves_userenv( 'pub', $session->param('pubshelves') ); |
858 |
C4::Context::set_shelves_userenv( 'pub', $session->param('pubshelves') ); |
Lines 1161-1167
sub checkauth {
Link Here
|
1161 |
$session->param('cardnumber'), $session->param('firstname'), |
1165 |
$session->param('cardnumber'), $session->param('firstname'), |
1162 |
$session->param('surname'), $session->param('branch'), |
1166 |
$session->param('surname'), $session->param('branch'), |
1163 |
$session->param('branchname'), $session->param('flags'), |
1167 |
$session->param('branchname'), $session->param('flags'), |
1164 |
$session->param('emailaddress'), $session->param('shibboleth') |
1168 |
$session->param('emailaddress'), $session->param('shibboleth'), |
|
|
1169 |
$session->param('desk_id'), $session->param('desk_name') |
1165 |
); |
1170 |
); |
1166 |
|
1171 |
|
1167 |
} |
1172 |
} |
Lines 1439-1445
sub check_api_auth {
Link Here
|
1439 |
$session->param('cardnumber'), $session->param('firstname'), |
1444 |
$session->param('cardnumber'), $session->param('firstname'), |
1440 |
$session->param('surname'), $session->param('branch'), |
1445 |
$session->param('surname'), $session->param('branch'), |
1441 |
$session->param('branchname'), $session->param('flags'), |
1446 |
$session->param('branchname'), $session->param('flags'), |
1442 |
$session->param('emailaddress') |
1447 |
$session->param('emailaddress'), $session->param('desk_id'), |
|
|
1448 |
$session->param('desk_name') |
1443 |
); |
1449 |
); |
1444 |
|
1450 |
|
1445 |
my $ip = $session->param('ip'); |
1451 |
my $ip = $session->param('ip'); |
Lines 1598-1605
sub check_api_auth {
Link Here
|
1598 |
$session->param('number'), $session->param('id'), |
1604 |
$session->param('number'), $session->param('id'), |
1599 |
$session->param('cardnumber'), $session->param('firstname'), |
1605 |
$session->param('cardnumber'), $session->param('firstname'), |
1600 |
$session->param('surname'), $session->param('branch'), |
1606 |
$session->param('surname'), $session->param('branch'), |
1601 |
$session->param('branchname'), $session->param('flags'), |
1607 |
$session->param('emailaddress'), $session->param('shibboleth'), |
1602 |
$session->param('emailaddress') |
1608 |
$session->param('desk_id'), $session->param('desk_name') |
1603 |
); |
1609 |
); |
1604 |
return ( "ok", $cookie, $sessionID ); |
1610 |
return ( "ok", $cookie, $sessionID ); |
1605 |
} else { |
1611 |
} else { |
Lines 1687-1693
sub check_cookie_auth {
Link Here
|
1687 |
$session->param('cardnumber'), $session->param('firstname'), |
1693 |
$session->param('cardnumber'), $session->param('firstname'), |
1688 |
$session->param('surname'), $session->param('branch'), |
1694 |
$session->param('surname'), $session->param('branch'), |
1689 |
$session->param('branchname'), $session->param('flags'), |
1695 |
$session->param('branchname'), $session->param('flags'), |
1690 |
$session->param('emailaddress') |
1696 |
$session->param('emailaddress'), $session->param('shibboleth'), |
|
|
1697 |
$session->param('desk_id'), $session->param('desk_name') |
1691 |
); |
1698 |
); |
1692 |
|
1699 |
|
1693 |
my $ip = $session->param('ip'); |
1700 |
my $ip = $session->param('ip'); |