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 204-210 Link Here
204
                                                <p><a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a></p>
204
                                                <p><a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a></p>
205
                                            </div>
205
                                            </div>
206
                                        [% END %]
206
                                        [% END %]
207
                                        [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]
207
                                        [% IF self_registration_enabled %]
208
                                            <div id="patronregistration-main" class="patronregistration">
208
                                            <div id="patronregistration-main" class="patronregistration">
209
                                                <p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p>
209
                                                <p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p>
210
                                            </div>
210
                                            </div>
(-)a/opac/opac-main.pl (-1 / +4 lines)
Lines 30-35 use C4::Overdues; Link Here
30
use Koha::Checkouts;
30
use Koha::Checkouts;
31
use Koha::Holds;
31
use Koha::Holds;
32
use Koha::News;
32
use Koha::News;
33
use Koha::Patron::Categories;
33
use Koha::Patron::Messages;
34
use Koha::Patron::Messages;
34
35
35
my $input = CGI->new;
36
my $input = CGI->new;
Lines 103-112 if ( $patron ) { Link Here
103
    }
104
    }
104
}
105
}
105
106
107
my $PatronSelfRegistrationDefaultCategory = C4::Context->preference('PatronSelfRegistrationDefaultCategory');
108
my $self_registration_enabled = $PatronSelfRegistrationDefaultCategory && Koha::Patron::Categories->find($PatronSelfRegistrationDefaultCategory);
106
$template->param(
109
$template->param(
107
    koha_news           => $all_koha_news,
110
    koha_news           => $all_koha_news,
108
    branchcode          => $homebranch,
111
    branchcode          => $homebranch,
109
    daily_quote         => Koha::Quotes->get_daily_quote(),
112
    daily_quote         => Koha::Quotes->get_daily_quote(),
113
    self_registration_enabled => $self_registration_enabled,
110
);
114
);
111
115
112
output_html_with_http_headers $input, $cookie, $template->output;
116
output_html_with_http_headers $input, $cookie, $template->output;
113
- 

Return to bug 27634