Lines 500-505
sub get_template_and_user {
Link Here
|
500 |
|
500 |
|
501 |
# these template parameters are set the same regardless of $in->{'type'} |
501 |
# these template parameters are set the same regardless of $in->{'type'} |
502 |
|
502 |
|
|
|
503 |
# Decide if the patron can make suggestions in the OPAC |
504 |
my $can_make_suggestions; |
505 |
if ( C4::Context->userenv && C4::Context->userenv->{'number'} ) { |
506 |
$can_make_suggestions = Koha::Patrons->find(C4::Context->userenv->{'number'})->category->can_make_suggestions; |
507 |
} |
508 |
|
503 |
my $minPasswordLength = C4::Context->preference('minPasswordLength'); |
509 |
my $minPasswordLength = C4::Context->preference('minPasswordLength'); |
504 |
$minPasswordLength = 3 if not $minPasswordLength or $minPasswordLength < 3; |
510 |
$minPasswordLength = 3 if not $minPasswordLength or $minPasswordLength < 3; |
505 |
$template->param( |
511 |
$template->param( |
Lines 538-544
sub get_template_and_user {
Link Here
|
538 |
intranetstylesheet => C4::Context->preference("intranetstylesheet"), |
544 |
intranetstylesheet => C4::Context->preference("intranetstylesheet"), |
539 |
IntranetUserCSS => C4::Context->preference("IntranetUserCSS"), |
545 |
IntranetUserCSS => C4::Context->preference("IntranetUserCSS"), |
540 |
IntranetUserJS => C4::Context->preference("IntranetUserJS"), |
546 |
IntranetUserJS => C4::Context->preference("IntranetUserJS"), |
541 |
suggestion => C4::Context->preference("suggestion"), |
547 |
suggestion => $can_make_suggestions, |
542 |
virtualshelves => C4::Context->preference("virtualshelves"), |
548 |
virtualshelves => C4::Context->preference("virtualshelves"), |
543 |
StaffSerialIssueDisplayCount => C4::Context->preference("StaffSerialIssueDisplayCount"), |
549 |
StaffSerialIssueDisplayCount => C4::Context->preference("StaffSerialIssueDisplayCount"), |
544 |
EasyAnalyticalRecords => C4::Context->preference('EasyAnalyticalRecords'), |
550 |
EasyAnalyticalRecords => C4::Context->preference('EasyAnalyticalRecords'), |
Lines 628-634
sub get_template_and_user {
Link Here
|
628 |
OpenLibrarySearch => C4::Context->preference("OpenLibrarySearch"), |
634 |
OpenLibrarySearch => C4::Context->preference("OpenLibrarySearch"), |
629 |
ShowReviewer => C4::Context->preference("ShowReviewer"), |
635 |
ShowReviewer => C4::Context->preference("ShowReviewer"), |
630 |
ShowReviewerPhoto => C4::Context->preference("ShowReviewerPhoto"), |
636 |
ShowReviewerPhoto => C4::Context->preference("ShowReviewerPhoto"), |
631 |
suggestion => "" . C4::Context->preference("suggestion"), |
637 |
suggestion => $can_make_suggestions, |
632 |
virtualshelves => "" . C4::Context->preference("virtualshelves"), |
638 |
virtualshelves => "" . C4::Context->preference("virtualshelves"), |
633 |
OPACSerialIssueDisplayCount => C4::Context->preference("OPACSerialIssueDisplayCount"), |
639 |
OPACSerialIssueDisplayCount => C4::Context->preference("OPACSerialIssueDisplayCount"), |
634 |
SyndeticsClientCode => C4::Context->preference("SyndeticsClientCode"), |
640 |
SyndeticsClientCode => C4::Context->preference("SyndeticsClientCode"), |