Bug 27634: Hide "Register here" links
Make sure the pref is filled with a valid patron's category to display the "register" link Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
6c176f323b
commit
44e2eef451
3 changed files with 3 additions and 3 deletions
|
@ -442,7 +442,7 @@
|
|||
<a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
|
||||
</div>
|
||||
[% END %]
|
||||
[% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]
|
||||
[% IF Koha.Preference('PatronSelfRegistration') && Categories.all( categorycode => Koha.Preference('PatronSelfRegistrationDefaultCategory') ).count %]
|
||||
<div id="patronregistration-modal" class="patronregistration">
|
||||
<p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p>
|
||||
</div>
|
||||
|
|
|
@ -251,7 +251,7 @@
|
|||
<a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a>
|
||||
</div>
|
||||
[% END %]
|
||||
[% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]
|
||||
[% IF Koha.Preference('PatronSelfRegistration') && Categories.all( categorycode => Koha.Preference('PatronSelfRegistrationDefaultCategory') ).count %]
|
||||
<div id="registrationinstructions">
|
||||
<span>
|
||||
<a href="/cgi-bin/koha/opac-memberentry.pl">You may register here.</a>
|
||||
|
|
|
@ -223,7 +223,7 @@
|
|||
<p><a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a></p>
|
||||
</div>
|
||||
[% END %]
|
||||
[% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]
|
||||
[% IF Koha.Preference('PatronSelfRegistration') && Categories.all( categorycode => Koha.Preference('PatronSelfRegistrationDefaultCategory') ).count %]
|
||||
<div id="patronregistration-main" class="patronregistration">
|
||||
<p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue