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 462-467
sub get_template_and_user {
Link Here
|
462 |
GoogleJackets => C4::Context->preference("GoogleJackets"), |
463 |
GoogleJackets => C4::Context->preference("GoogleJackets"), |
463 |
OpenLibraryCovers => C4::Context->preference("OpenLibraryCovers"), |
464 |
OpenLibraryCovers => C4::Context->preference("OpenLibraryCovers"), |
464 |
KohaAdminEmailAddress => "" . C4::Context->preference("KohaAdminEmailAddress"), |
465 |
KohaAdminEmailAddress => "" . C4::Context->preference("KohaAdminEmailAddress"), |
|
|
466 |
LoginDeskname => ( C4::Context->userenv ? C4::Context->userenv->{"desk_name"} : undef ), |
465 |
LoginFirstname => ( C4::Context->userenv ? C4::Context->userenv->{"firstname"} : "Bel" ), |
467 |
LoginFirstname => ( C4::Context->userenv ? C4::Context->userenv->{"firstname"} : "Bel" ), |
466 |
LoginSurname => C4::Context->userenv ? C4::Context->userenv->{"surname"} : "Inconnu", |
468 |
LoginSurname => C4::Context->userenv ? C4::Context->userenv->{"surname"} : "Inconnu", |
467 |
emailaddress => C4::Context->userenv ? C4::Context->userenv->{"emailaddress"} : undef, |
469 |
emailaddress => C4::Context->userenv ? C4::Context->userenv->{"emailaddress"} : undef, |
Lines 489-494
sub get_template_and_user {
Link Here
|
489 |
IntranetNav => C4::Context->preference("IntranetNav"), |
491 |
IntranetNav => C4::Context->preference("IntranetNav"), |
490 |
IntranetmainUserblock => C4::Context->preference("IntranetmainUserblock"), |
492 |
IntranetmainUserblock => C4::Context->preference("IntranetmainUserblock"), |
491 |
LibraryName => C4::Context->preference("LibraryName"), |
493 |
LibraryName => C4::Context->preference("LibraryName"), |
|
|
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 556-561
sub get_template_and_user {
Link Here
|
556 |
opac_name => $opac_name, |
559 |
opac_name => $opac_name, |
557 |
LibraryName => "" . C4::Context->preference("LibraryName"), |
560 |
LibraryName => "" . C4::Context->preference("LibraryName"), |
558 |
LibraryNameTitle => "" . $LibraryNameTitle, |
561 |
LibraryNameTitle => "" . $LibraryNameTitle, |
|
|
562 |
LoginDeskname => C4::Context->userenv ? C4::Context->userenv->{"desk_name"} : "", |
559 |
OPACAmazonCoverImages => C4::Context->preference("OPACAmazonCoverImages"), |
563 |
OPACAmazonCoverImages => C4::Context->preference("OPACAmazonCoverImages"), |
560 |
OPACFRBRizeEditions => C4::Context->preference("OPACFRBRizeEditions"), |
564 |
OPACFRBRizeEditions => C4::Context->preference("OPACFRBRizeEditions"), |
561 |
OpacHighlightedWords => C4::Context->preference("OpacHighlightedWords"), |
565 |
OpacHighlightedWords => C4::Context->preference("OpacHighlightedWords"), |
Lines 844-851
sub checkauth {
Link Here
|
844 |
$session->param('cardnumber'), $session->param('firstname'), |
848 |
$session->param('cardnumber'), $session->param('firstname'), |
845 |
$session->param('surname'), $session->param('branch'), |
849 |
$session->param('surname'), $session->param('branch'), |
846 |
$session->param('branchname'), $session->param('flags'), |
850 |
$session->param('branchname'), $session->param('flags'), |
847 |
$session->param('emailaddress'), |
851 |
$session->param('emailaddress'), $session->param('shibboleth'), |
848 |
$session->param('shibboleth') |
852 |
$session->param('desk_id'), $session->param('desk_name') |
849 |
); |
853 |
); |
850 |
C4::Context::set_shelves_userenv( 'bar', $session->param('barshelves') ); |
854 |
C4::Context::set_shelves_userenv( 'bar', $session->param('barshelves') ); |
851 |
C4::Context::set_shelves_userenv( 'pub', $session->param('pubshelves') ); |
855 |
C4::Context::set_shelves_userenv( 'pub', $session->param('pubshelves') ); |
Lines 1158-1164
sub checkauth {
Link Here
|
1158 |
$session->param('cardnumber'), $session->param('firstname'), |
1162 |
$session->param('cardnumber'), $session->param('firstname'), |
1159 |
$session->param('surname'), $session->param('branch'), |
1163 |
$session->param('surname'), $session->param('branch'), |
1160 |
$session->param('branchname'), $session->param('flags'), |
1164 |
$session->param('branchname'), $session->param('flags'), |
1161 |
$session->param('emailaddress'), $session->param('shibboleth') |
1165 |
$session->param('emailaddress'), $session->param('shibboleth'), |
|
|
1166 |
$session->param('desk_id'), $session->param('desk_name') |
1162 |
); |
1167 |
); |
1163 |
|
1168 |
|
1164 |
} |
1169 |
} |
Lines 1435-1441
sub check_api_auth {
Link Here
|
1435 |
$session->param('cardnumber'), $session->param('firstname'), |
1440 |
$session->param('cardnumber'), $session->param('firstname'), |
1436 |
$session->param('surname'), $session->param('branch'), |
1441 |
$session->param('surname'), $session->param('branch'), |
1437 |
$session->param('branchname'), $session->param('flags'), |
1442 |
$session->param('branchname'), $session->param('flags'), |
1438 |
$session->param('emailaddress') |
1443 |
$session->param('emailaddress'), $session->param('desk_id'), |
|
|
1444 |
$session->param('desk_name') |
1439 |
); |
1445 |
); |
1440 |
|
1446 |
|
1441 |
my $ip = $session->param('ip'); |
1447 |
my $ip = $session->param('ip'); |
Lines 1594-1601
sub check_api_auth {
Link Here
|
1594 |
$session->param('number'), $session->param('id'), |
1600 |
$session->param('number'), $session->param('id'), |
1595 |
$session->param('cardnumber'), $session->param('firstname'), |
1601 |
$session->param('cardnumber'), $session->param('firstname'), |
1596 |
$session->param('surname'), $session->param('branch'), |
1602 |
$session->param('surname'), $session->param('branch'), |
1597 |
$session->param('branchname'), $session->param('flags'), |
1603 |
$session->param('emailaddress'), $session->param('shibboleth'), |
1598 |
$session->param('emailaddress') |
1604 |
$session->param('desk_id'), $session->param('desk_name') |
1599 |
); |
1605 |
); |
1600 |
return ( "ok", $cookie, $sessionID ); |
1606 |
return ( "ok", $cookie, $sessionID ); |
1601 |
} else { |
1607 |
} else { |
Lines 1683-1689
sub check_cookie_auth {
Link Here
|
1683 |
$session->param('cardnumber'), $session->param('firstname'), |
1689 |
$session->param('cardnumber'), $session->param('firstname'), |
1684 |
$session->param('surname'), $session->param('branch'), |
1690 |
$session->param('surname'), $session->param('branch'), |
1685 |
$session->param('branchname'), $session->param('flags'), |
1691 |
$session->param('branchname'), $session->param('flags'), |
1686 |
$session->param('emailaddress') |
1692 |
$session->param('emailaddress'), $session->param('shibboleth'), |
|
|
1693 |
$session->param('desk_id'), $session->param('desk_name') |
1687 |
); |
1694 |
); |
1688 |
|
1695 |
|
1689 |
my $ip = $session->param('ip'); |
1696 |
my $ip = $session->param('ip'); |