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 463-468
sub get_template_and_user {
Link Here
|
463 |
OpenLibraryCovers => C4::Context->preference("OpenLibraryCovers"), |
464 |
OpenLibraryCovers => C4::Context->preference("OpenLibraryCovers"), |
464 |
KohaAdminEmailAddress => "" . C4::Context->preference("KohaAdminEmailAddress"), |
465 |
KohaAdminEmailAddress => "" . C4::Context->preference("KohaAdminEmailAddress"), |
465 |
LoginBranchcode => ( C4::Context->userenv ? C4::Context->userenv->{"branch"} : undef ), |
466 |
LoginBranchcode => ( C4::Context->userenv ? C4::Context->userenv->{"branch"} : undef ), |
|
|
467 |
LoginDeskname => ( C4::Context->userenv ? C4::Context->userenv->{"desk_name"} : undef ), |
466 |
LoginFirstname => ( C4::Context->userenv ? C4::Context->userenv->{"firstname"} : "Bel" ), |
468 |
LoginFirstname => ( C4::Context->userenv ? C4::Context->userenv->{"firstname"} : "Bel" ), |
467 |
LoginSurname => C4::Context->userenv ? C4::Context->userenv->{"surname"} : "Inconnu", |
469 |
LoginSurname => C4::Context->userenv ? C4::Context->userenv->{"surname"} : "Inconnu", |
468 |
emailaddress => C4::Context->userenv ? C4::Context->userenv->{"emailaddress"} : undef, |
470 |
emailaddress => C4::Context->userenv ? C4::Context->userenv->{"emailaddress"} : undef, |
Lines 491-496
sub get_template_and_user {
Link Here
|
491 |
IntranetmainUserblock => C4::Context->preference("IntranetmainUserblock"), |
493 |
IntranetmainUserblock => C4::Context->preference("IntranetmainUserblock"), |
492 |
LibraryName => C4::Context->preference("LibraryName"), |
494 |
LibraryName => C4::Context->preference("LibraryName"), |
493 |
LoginBranchname => ( C4::Context->userenv ? C4::Context->userenv->{"branchname"} : undef ), |
495 |
LoginBranchname => ( C4::Context->userenv ? C4::Context->userenv->{"branchname"} : undef ), |
|
|
496 |
LoginDeskname => ( C4::Context->userenv ? C4::Context->userenv->{"desk_name"} : undef ), |
494 |
advancedMARCEditor => C4::Context->preference("advancedMARCEditor"), |
497 |
advancedMARCEditor => C4::Context->preference("advancedMARCEditor"), |
495 |
canreservefromotherbranches => C4::Context->preference('canreservefromotherbranches'), |
498 |
canreservefromotherbranches => C4::Context->preference('canreservefromotherbranches'), |
496 |
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), |
499 |
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), |
Lines 559-564
sub get_template_and_user {
Link Here
|
559 |
LibraryName => "" . C4::Context->preference("LibraryName"), |
562 |
LibraryName => "" . C4::Context->preference("LibraryName"), |
560 |
LibraryNameTitle => "" . $LibraryNameTitle, |
563 |
LibraryNameTitle => "" . $LibraryNameTitle, |
561 |
LoginBranchname => C4::Context->userenv ? C4::Context->userenv->{"branchname"} : "", |
564 |
LoginBranchname => C4::Context->userenv ? C4::Context->userenv->{"branchname"} : "", |
|
|
565 |
LoginDeskname => C4::Context->userenv ? C4::Context->userenv->{"desk_name"} : "", |
562 |
OPACAmazonCoverImages => C4::Context->preference("OPACAmazonCoverImages"), |
566 |
OPACAmazonCoverImages => C4::Context->preference("OPACAmazonCoverImages"), |
563 |
OPACFRBRizeEditions => C4::Context->preference("OPACFRBRizeEditions"), |
567 |
OPACFRBRizeEditions => C4::Context->preference("OPACFRBRizeEditions"), |
564 |
OpacHighlightedWords => C4::Context->preference("OpacHighlightedWords"), |
568 |
OpacHighlightedWords => C4::Context->preference("OpacHighlightedWords"), |
Lines 848-855
sub checkauth {
Link Here
|
848 |
$session->param('cardnumber'), $session->param('firstname'), |
852 |
$session->param('cardnumber'), $session->param('firstname'), |
849 |
$session->param('surname'), $session->param('branch'), |
853 |
$session->param('surname'), $session->param('branch'), |
850 |
$session->param('branchname'), $session->param('flags'), |
854 |
$session->param('branchname'), $session->param('flags'), |
851 |
$session->param('emailaddress'), |
855 |
$session->param('emailaddress'), $session->param('shibboleth'), |
852 |
$session->param('shibboleth') |
856 |
$session->param('desk_id'), $session->param('desk_name') |
853 |
); |
857 |
); |
854 |
C4::Context::set_shelves_userenv( 'bar', $session->param('barshelves') ); |
858 |
C4::Context::set_shelves_userenv( 'bar', $session->param('barshelves') ); |
855 |
C4::Context::set_shelves_userenv( 'pub', $session->param('pubshelves') ); |
859 |
C4::Context::set_shelves_userenv( 'pub', $session->param('pubshelves') ); |
Lines 1162-1168
sub checkauth {
Link Here
|
1162 |
$session->param('cardnumber'), $session->param('firstname'), |
1166 |
$session->param('cardnumber'), $session->param('firstname'), |
1163 |
$session->param('surname'), $session->param('branch'), |
1167 |
$session->param('surname'), $session->param('branch'), |
1164 |
$session->param('branchname'), $session->param('flags'), |
1168 |
$session->param('branchname'), $session->param('flags'), |
1165 |
$session->param('emailaddress'), $session->param('shibboleth') |
1169 |
$session->param('emailaddress'), $session->param('shibboleth'), |
|
|
1170 |
$session->param('desk_id'), $session->param('desk_name') |
1166 |
); |
1171 |
); |
1167 |
|
1172 |
|
1168 |
} |
1173 |
} |
Lines 1440-1446
sub check_api_auth {
Link Here
|
1440 |
$session->param('cardnumber'), $session->param('firstname'), |
1445 |
$session->param('cardnumber'), $session->param('firstname'), |
1441 |
$session->param('surname'), $session->param('branch'), |
1446 |
$session->param('surname'), $session->param('branch'), |
1442 |
$session->param('branchname'), $session->param('flags'), |
1447 |
$session->param('branchname'), $session->param('flags'), |
1443 |
$session->param('emailaddress') |
1448 |
$session->param('emailaddress'), $session->param('desk_id'), |
|
|
1449 |
$session->param('desk_name') |
1444 |
); |
1450 |
); |
1445 |
|
1451 |
|
1446 |
my $ip = $session->param('ip'); |
1452 |
my $ip = $session->param('ip'); |
Lines 1599-1606
sub check_api_auth {
Link Here
|
1599 |
$session->param('number'), $session->param('id'), |
1605 |
$session->param('number'), $session->param('id'), |
1600 |
$session->param('cardnumber'), $session->param('firstname'), |
1606 |
$session->param('cardnumber'), $session->param('firstname'), |
1601 |
$session->param('surname'), $session->param('branch'), |
1607 |
$session->param('surname'), $session->param('branch'), |
1602 |
$session->param('branchname'), $session->param('flags'), |
1608 |
$session->param('emailaddress'), $session->param('shibboleth'), |
1603 |
$session->param('emailaddress') |
1609 |
$session->param('desk_id'), $session->param('desk_name') |
1604 |
); |
1610 |
); |
1605 |
return ( "ok", $cookie, $sessionID ); |
1611 |
return ( "ok", $cookie, $sessionID ); |
1606 |
} else { |
1612 |
} else { |
Lines 1688-1694
sub check_cookie_auth {
Link Here
|
1688 |
$session->param('cardnumber'), $session->param('firstname'), |
1694 |
$session->param('cardnumber'), $session->param('firstname'), |
1689 |
$session->param('surname'), $session->param('branch'), |
1695 |
$session->param('surname'), $session->param('branch'), |
1690 |
$session->param('branchname'), $session->param('flags'), |
1696 |
$session->param('branchname'), $session->param('flags'), |
1691 |
$session->param('emailaddress') |
1697 |
$session->param('emailaddress'), $session->param('shibboleth'), |
|
|
1698 |
$session->param('desk_id'), $session->param('desk_name') |
1692 |
); |
1699 |
); |
1693 |
|
1700 |
|
1694 |
my $ip = $session->param('ip'); |
1701 |
my $ip = $session->param('ip'); |