|
Lines 28-33
use C4::Overdues qw( checkoverdues );
Link Here
|
| 28 |
use Koha::Checkouts; |
28 |
use Koha::Checkouts; |
| 29 |
use Koha::Holds; |
29 |
use Koha::Holds; |
| 30 |
use Koha::AdditionalContents; |
30 |
use Koha::AdditionalContents; |
|
|
31 |
use Koha::Patron::Categories; |
| 31 |
use Koha::Patron::Messages; |
32 |
use Koha::Patron::Messages; |
| 32 |
|
33 |
|
| 33 |
my $input = CGI->new; |
34 |
my $input = CGI->new; |
|
Lines 108-117
if ( $patron ) {
Link Here
|
| 108 |
} |
109 |
} |
| 109 |
} |
110 |
} |
| 110 |
|
111 |
|
|
|
112 |
my $PatronSelfRegistrationDefaultCategory = C4::Context->preference('PatronSelfRegistrationDefaultCategory'); |
| 113 |
my $self_registration_enabled = $PatronSelfRegistrationDefaultCategory && Koha::Patron::Categories->find($PatronSelfRegistrationDefaultCategory); |
| 111 |
$template->param( |
114 |
$template->param( |
| 112 |
koha_news => $koha_news, |
115 |
koha_news => $koha_news, |
| 113 |
branchcode => $homebranch, |
116 |
branchcode => $homebranch, |
| 114 |
daily_quote => Koha::Quotes->get_daily_quote(), |
117 |
daily_quote => Koha::Quotes->get_daily_quote(), |
|
|
118 |
self_registration_enabled => $self_registration_enabled, |
| 115 |
); |
119 |
); |
| 116 |
|
120 |
|
| 117 |
output_html_with_http_headers $input, $cookie, $template->output; |
121 |
output_html_with_http_headers $input, $cookie, $template->output; |
| 118 |
- |
|
|