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