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

(-)a/C4/Auth.pm (+2 lines)
Lines 458-463 sub get_template_and_user { Link Here
458
            SyndeticsCoverImageSize      => C4::Context->preference("SyndeticsCoverImageSize"),
458
            SyndeticsCoverImageSize      => C4::Context->preference("SyndeticsCoverImageSize"),
459
            OPACLocalCoverImages         => C4::Context->preference("OPACLocalCoverImages"),
459
            OPACLocalCoverImages         => C4::Context->preference("OPACLocalCoverImages"),
460
            PatronSelfRegistration       => C4::Context->preference("PatronSelfRegistration"),
460
            PatronSelfRegistration       => C4::Context->preference("PatronSelfRegistration"),
461
            PatronSelfRegistrationDefaultCategory => C4::Context->preference("PatronSelfRegistrationDefaultCategory"),
461
        );
462
        );
462
463
463
        $template->param(OpacPublic => '1') if ($user || C4::Context->preference("OpacPublic"));
464
        $template->param(OpacPublic => '1') if ($user || C4::Context->preference("OpacPublic"));
Lines 969-974 sub checkauth { Link Here
969
        AutoLocation       => C4::Context->preference("AutoLocation"),
970
        AutoLocation       => C4::Context->preference("AutoLocation"),
970
        wrongip            => $info{'wrongip'},
971
        wrongip            => $info{'wrongip'},
971
	PatronSelfRegistration => C4::Context->preference("PatronSelfRegistration"),
972
	PatronSelfRegistration => C4::Context->preference("PatronSelfRegistration"),
973
	PatronSelfRegistrationDefaultCategory => C4::Context->preference("PatronSelfRegistrationDefaultCategory"),
972
    );
974
    );
973
975
974
    $template->param( OpacPublic => C4::Context->preference("OpacPublic"));
976
    $template->param( OpacPublic => C4::Context->preference("OpacPublic"));
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tt (-1 / +1 lines)
Lines 86-92 please choose against which one you would like to authenticate: </p> Link Here
86
<input type="submit" value="Log In" class="submit" />
86
<input type="submit" value="Log In" class="submit" />
87
<div id="nologininstructions">
87
<div id="nologininstructions">
88
    <h5>Don't have a password yet?</h5><p> If you don't have a password yet, stop by the circulation desk the next time you're in the library. We'll happily set one up for you.</p>
88
    <h5>Don't have a password yet?</h5><p> If you don't have a password yet, stop by the circulation desk the next time you're in the library. We'll happily set one up for you.</p>
89
    <h5>Don't have a library card?</h5><p> If you don't have a library card, stop by your local library to sign up[% IF PatronSelfRegistration %] or  <a href="/cgi-bin/koha/opac-memberentry.pl">register here</a>[% END %].  </p>
89
    <h5>Don't have a library card?</h5><p> If you don't have a library card, stop by your local library to sign up[% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %] or  <a href="/cgi-bin/koha/opac-memberentry.pl">register here</a>[% END %].</p>
90
</div>
90
</div>
91
</form>
91
</form>
92
92
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-main.tt (-2 / +1 lines)
Lines 55-61 Link Here
55
		<li><label for="password">Password:</label><input type="password" id="password" size="10" name="password" /></li>
55
		<li><label for="password">Password:</label><input type="password" id="password" size="10" name="password" /></li>
56
		</ol>	 <fieldset class="action">
56
		</ol>	 <fieldset class="action">
57
	 <input type="submit" value="Log In" class="submit" />
57
	 <input type="submit" value="Log In" class="submit" />
58
        [% IF PatronSelfRegistration %]<div>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></div>[% END %]
58
        [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<div>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></div>[% END %]
59
59
60
	 </fieldset></fieldset>
60
	 </fieldset></fieldset>
61
	</form>
61
	</form>
62
- 

Return to bug 7067