Lines 473-506
sub get_template_and_user {
Link Here
|
473 |
if ( $in->{'type'} eq "intranet" ) { |
473 |
if ( $in->{'type'} eq "intranet" ) { |
474 |
|
474 |
|
475 |
$template->param( |
475 |
$template->param( |
476 |
can_see_cataloguing_module => haspermission( $user, get_cataloguing_page_permissions() ) ? 1 : 0, |
476 |
advancedMARCEditor => C4::Context->preference("advancedMARCEditor"), |
477 |
AmazonCoverImages => C4::Context->preference("AmazonCoverImages"), |
477 |
AllowMultipleCovers => C4::Context->preference('AllowMultipleCovers'), |
478 |
AutoLocation => C4::Context->preference("AutoLocation"), |
478 |
AmazonCoverImages => C4::Context->preference("AmazonCoverImages"), |
479 |
PatronAutoComplete => C4::Context->preference("PatronAutoComplete"), |
479 |
AutoLocation => C4::Context->preference("AutoLocation"), |
480 |
FRBRizeEditions => C4::Context->preference("FRBRizeEditions"), |
480 |
can_see_cataloguing_module => haspermission( $user, get_cataloguing_page_permissions() ) ? 1 : 0, |
481 |
IndependentBranches => C4::Context->preference("IndependentBranches"), |
481 |
canreservefromotherbranches => C4::Context->preference('canreservefromotherbranches'), |
482 |
IntranetNav => C4::Context->preference("IntranetNav"), |
482 |
EasyAnalyticalRecords => C4::Context->preference('EasyAnalyticalRecords'), |
483 |
IntranetmainUserblock => C4::Context->preference("IntranetmainUserblock"), |
483 |
EnableBorrowerFiles => C4::Context->preference('EnableBorrowerFiles'), |
484 |
LibraryName => C4::Context->preference("LibraryName"), |
484 |
FRBRizeEditions => C4::Context->preference("FRBRizeEditions"), |
485 |
advancedMARCEditor => C4::Context->preference("advancedMARCEditor"), |
485 |
IndependentBranches => C4::Context->preference("IndependentBranches"), |
486 |
canreservefromotherbranches => C4::Context->preference('canreservefromotherbranches'), |
486 |
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), |
487 |
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"), |
487 |
IntranetFavicon => C4::Context->preference("IntranetFavicon"), |
488 |
IntranetFavicon => C4::Context->preference("IntranetFavicon"), |
488 |
IntranetmainUserblock => C4::Context->preference("IntranetmainUserblock"), |
489 |
intranetreadinghistory => C4::Context->preference("intranetreadinghistory"), |
489 |
IntranetNav => C4::Context->preference("IntranetNav"), |
490 |
intranetstylesheet => C4::Context->preference("intranetstylesheet"), |
490 |
intranetreadinghistory => C4::Context->preference("intranetreadinghistory"), |
491 |
IntranetUserCSS => C4::Context->preference("IntranetUserCSS"), |
491 |
intranetstylesheet => C4::Context->preference("intranetstylesheet"), |
492 |
IntranetUserJS => C4::Context->preference("IntranetUserJS"), |
492 |
IntranetUserCSS => C4::Context->preference("IntranetUserCSS"), |
493 |
virtualshelves => C4::Context->preference("virtualshelves"), |
493 |
IntranetUserJS => C4::Context->preference("IntranetUserJS"), |
494 |
StaffSerialIssueDisplayCount => C4::Context->preference("StaffSerialIssueDisplayCount"), |
494 |
LibraryName => C4::Context->preference("LibraryName"), |
495 |
EasyAnalyticalRecords => C4::Context->preference('EasyAnalyticalRecords'), |
495 |
LocalCoverImages => C4::Context->preference('LocalCoverImages'), |
496 |
LocalCoverImages => C4::Context->preference('LocalCoverImages'), |
496 |
OPACLocalCoverImages => C4::Context->preference('OPACLocalCoverImages'), |
497 |
OPACLocalCoverImages => C4::Context->preference('OPACLocalCoverImages'), |
497 |
PatronAutoComplete => C4::Context->preference("PatronAutoComplete"), |
498 |
AllowMultipleCovers => C4::Context->preference('AllowMultipleCovers'), |
498 |
pending_checkout_notes => Koha::Checkouts->search( { noteseen => 0 } ), |
499 |
EnableBorrowerFiles => C4::Context->preference('EnableBorrowerFiles'), |
499 |
plugins_enabled => C4::Context->config("enable_plugins"), |
500 |
UseCourseReserves => C4::Context->preference("UseCourseReserves"), |
500 |
StaffSerialIssueDisplayCount => C4::Context->preference("StaffSerialIssueDisplayCount"), |
501 |
useDischarge => C4::Context->preference('useDischarge'), |
501 |
UseCourseReserves => C4::Context->preference("UseCourseReserves"), |
502 |
pending_checkout_notes => Koha::Checkouts->search({ noteseen => 0 }), |
502 |
useDischarge => C4::Context->preference('useDischarge'), |
503 |
plugins_enabled => C4::Context->config("enable_plugins"), |
503 |
virtualshelves => C4::Context->preference("virtualshelves"), |
504 |
); |
504 |
); |
505 |
} |
505 |
} |
506 |
else { |
506 |
else { |
507 |
- |
|
|