View | Details | Raw Unified | Return to bug 27634
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt (-1 / +1 lines)
Lines 228-234 Link Here
228
                                                <p><a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a></p>
228
                                                <p><a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a></p>
229
                                            </div>
229
                                            </div>
230
                                        [% END %]
230
                                        [% END %]
231
                                        [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]
231
                                        [% IF self_registration_enabled %]
232
                                            <div id="patronregistration-main" class="patronregistration">
232
                                            <div id="patronregistration-main" class="patronregistration">
233
                                                <p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p>
233
                                                <p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p>
234
                                            </div>
234
                                            </div>
(-)a/opac/opac-main.pl (-1 / +4 lines)
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
- 

Return to bug 27634