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 558-563
sub get_template_and_user {
Link Here
|
558 |
LibraryName => "" . C4::Context->preference("LibraryName"), |
561 |
LibraryName => "" . C4::Context->preference("LibraryName"), |
559 |
LibraryNameTitle => "" . $LibraryNameTitle, |
562 |
LibraryNameTitle => "" . $LibraryNameTitle, |
560 |
LoginBranchname => C4::Context->userenv ? C4::Context->userenv->{"branchname"} : "", |
563 |
LoginBranchname => C4::Context->userenv ? C4::Context->userenv->{"branchname"} : "", |
|
|
564 |
LoginDeskname => C4::Context->userenv ? C4::Context->userenv->{"desk_name"} : "", |
561 |
OPACAmazonCoverImages => C4::Context->preference("OPACAmazonCoverImages"), |
565 |
OPACAmazonCoverImages => C4::Context->preference("OPACAmazonCoverImages"), |
562 |
OPACFRBRizeEditions => C4::Context->preference("OPACFRBRizeEditions"), |
566 |
OPACFRBRizeEditions => C4::Context->preference("OPACFRBRizeEditions"), |
563 |
OpacHighlightedWords => C4::Context->preference("OpacHighlightedWords"), |
567 |
OpacHighlightedWords => C4::Context->preference("OpacHighlightedWords"), |
Lines 850-856
sub checkauth {
Link Here
|
850 |
$session->param('surname'), $session->param('branch'), |
854 |
$session->param('surname'), $session->param('branch'), |
851 |
$session->param('branchname'), $session->param('flags'), |
855 |
$session->param('branchname'), $session->param('flags'), |
852 |
$session->param('emailaddress'), $session->param('branchprinter'), |
856 |
$session->param('emailaddress'), $session->param('branchprinter'), |
853 |
$session->param('shibboleth') |
857 |
$session->param('shibboleth'), $session->param('desk_id'), |
|
|
858 |
$session->param('desk_name'), |
854 |
); |
859 |
); |
855 |
C4::Context::set_shelves_userenv( 'bar', $session->param('barshelves') ); |
860 |
C4::Context::set_shelves_userenv( 'bar', $session->param('barshelves') ); |
856 |
C4::Context::set_shelves_userenv( 'pub', $session->param('pubshelves') ); |
861 |
C4::Context::set_shelves_userenv( 'pub', $session->param('pubshelves') ); |
Lines 1167-1173
sub checkauth {
Link Here
|
1167 |
$session->param('surname'), $session->param('branch'), |
1172 |
$session->param('surname'), $session->param('branch'), |
1168 |
$session->param('branchname'), $session->param('flags'), |
1173 |
$session->param('branchname'), $session->param('flags'), |
1169 |
$session->param('emailaddress'), $session->param('branchprinter'), |
1174 |
$session->param('emailaddress'), $session->param('branchprinter'), |
1170 |
$session->param('shibboleth') |
1175 |
$session->param('shibboleth'), $session->param('desk_id'), |
|
|
1176 |
$session->param('desk_name'), |
1171 |
); |
1177 |
); |
1172 |
|
1178 |
|
1173 |
} |
1179 |
} |
Lines 1446-1452
sub check_api_auth {
Link Here
|
1446 |
$session->param('cardnumber'), $session->param('firstname'), |
1452 |
$session->param('cardnumber'), $session->param('firstname'), |
1447 |
$session->param('surname'), $session->param('branch'), |
1453 |
$session->param('surname'), $session->param('branch'), |
1448 |
$session->param('branchname'), $session->param('flags'), |
1454 |
$session->param('branchname'), $session->param('flags'), |
1449 |
$session->param('emailaddress'), $session->param('branchprinter') |
1455 |
$session->param('emailaddress'), $session->param('branchprinter'), |
|
|
1456 |
$session->param('desk_id'), $session->param('desk_name'), |
1450 |
); |
1457 |
); |
1451 |
|
1458 |
|
1452 |
my $ip = $session->param('ip'); |
1459 |
my $ip = $session->param('ip'); |
Lines 1607-1613
sub check_api_auth {
Link Here
|
1607 |
$session->param('cardnumber'), $session->param('firstname'), |
1614 |
$session->param('cardnumber'), $session->param('firstname'), |
1608 |
$session->param('surname'), $session->param('branch'), |
1615 |
$session->param('surname'), $session->param('branch'), |
1609 |
$session->param('branchname'), $session->param('flags'), |
1616 |
$session->param('branchname'), $session->param('flags'), |
1610 |
$session->param('emailaddress'), $session->param('branchprinter') |
1617 |
$session->param('emailaddress'), $session->param('branchprinter'), |
|
|
1618 |
$session->param('shibboleth'), $session->param('desk_id'), |
1619 |
$session->param('desk_name'), |
1611 |
); |
1620 |
); |
1612 |
return ( "ok", $cookie, $sessionID ); |
1621 |
return ( "ok", $cookie, $sessionID ); |
1613 |
} else { |
1622 |
} else { |
Lines 1695-1701
sub check_cookie_auth {
Link Here
|
1695 |
$session->param('cardnumber'), $session->param('firstname'), |
1704 |
$session->param('cardnumber'), $session->param('firstname'), |
1696 |
$session->param('surname'), $session->param('branch'), |
1705 |
$session->param('surname'), $session->param('branch'), |
1697 |
$session->param('branchname'), $session->param('flags'), |
1706 |
$session->param('branchname'), $session->param('flags'), |
1698 |
$session->param('emailaddress'), $session->param('branchprinter') |
1707 |
$session->param('emailaddress'), $session->param('branchprinter'), |
|
|
1708 |
$session->param('shibboleth'), $session->param('desk_id'), |
1709 |
$session->param('desk_name'), |
1699 |
); |
1710 |
); |
1700 |
|
1711 |
|
1701 |
my $ip = $session->param('ip'); |
1712 |
my $ip = $session->param('ip'); |