Bug 35261: Update links for self registration avoiding "here"

This patch updates several OPAC templates to change the wording of the
self registration link to "Create an account."

Minor adjustments to CSS have been made to make whitespace around the
links more comfortable.

To test, apply the patch and rebuild the OPAC CSS.

- If necessary enable the PatronSelfRegistration system preference is
  enabled.
- Go to the OPAC and check the login form in the right-hand sidebar.
- Click the "Log in to your account" link in the header and check the
  form displayed in the modal window.
- Navigate directly to /cgi-bin/koha/opac-user.pl and check the link on
  the login page.
- Complete the self-registration process and check the link in the
  right-hand sidebar menu on the "Registration complete" page.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Owen Leonard 2023-11-06 14:48:59 +00:00 committed by Tomas Cohen Arazi
parent db19d3f18d
commit 1869a0e18c
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
5 changed files with 24 additions and 12 deletions

View file

@ -315,6 +315,14 @@ th {
} }
} }
#auth {
margin-bottom: 1rem;
p {
margin: .5rem 0;
}
}
#basketcount { #basketcount {
display: inline; display: inline;
margin: 0; margin: 0;
@ -2074,6 +2082,10 @@ nav {
} }
} }
p {
margin: .5rem 0;
}
.closebtn { .closebtn {
color: #C00; color: #C00;
opacity: 1; opacity: 1;
@ -2091,10 +2103,8 @@ nav {
} }
} }
.nologininstructions, #nologininstructions {
.forgotpassword, margin: .5rem 0;
.patronregistration {
padding-top: 1em;
} }
.registration-label { .registration-label {

View file

@ -439,12 +439,12 @@
[% END %] [% END %]
[% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %] [% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %]
<div id="forgotpassword-modal" class="forgotpassword"> <div id="forgotpassword-modal" class="forgotpassword">
<a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a> <p><a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a></p>
</div> </div>
[% END %] [% END %]
[% IF Koha.Preference('PatronSelfRegistration') && Categories.all( categorycode => Koha.Preference('PatronSelfRegistrationDefaultCategory') ).count %] [% IF Koha.Preference('PatronSelfRegistration') && Categories.all( categorycode => Koha.Preference('PatronSelfRegistrationDefaultCategory') ).count %]
<div id="patronregistration-modal" class="patronregistration"> <div id="patronregistration-modal" class="patronregistration">
<p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p> <p><a href="/cgi-bin/koha/opac-memberentry.pl">Create an account</a></p>
</div> </div>
[% END %] [% END %]
</fieldset> </fieldset>

View file

@ -243,14 +243,12 @@
</div> </div>
[% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %] [% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %]
<div id="forgotpassword"> <div id="forgotpassword">
<a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a> <p><a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a></p>
</div> </div>
[% END %] [% END %]
[% IF Koha.Preference('PatronSelfRegistration') && Categories.all( categorycode => Koha.Preference('PatronSelfRegistrationDefaultCategory') ).count %] [% IF Koha.Preference('PatronSelfRegistration') && Categories.all( categorycode => Koha.Preference('PatronSelfRegistrationDefaultCategory') ).count %]
<div id="registrationinstructions"> <div id="registrationinstructions">
<span> <p><a href="/cgi-bin/koha/opac-memberentry.pl">Create an account</a></p>
<a href="/cgi-bin/koha/opac-memberentry.pl">You may register here.</a>
</span>
</div> </div>
[% END %] [% END %]
</form> </form>

View file

@ -217,7 +217,7 @@
[% END %] [% END %]
[% IF Koha.Preference('PatronSelfRegistration') && Categories.all( categorycode => Koha.Preference('PatronSelfRegistrationDefaultCategory') ).count %] [% IF Koha.Preference('PatronSelfRegistration') && Categories.all( categorycode => Koha.Preference('PatronSelfRegistrationDefaultCategory') ).count %]
<div id="patronregistration-main" class="patronregistration"> <div id="patronregistration-main" class="patronregistration">
<p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p> <p><a href="/cgi-bin/koha/opac-memberentry.pl">Create an account</a></p>
</div> </div>
[% END %] [% END %]
</fieldset> </fieldset>

View file

@ -96,7 +96,11 @@
<fieldset class="action"> <fieldset class="action">
<input type="submit" value="Log in" class="btn btn-primary" /> <input type="submit" value="Log in" class="btn btn-primary" />
</fieldset> </fieldset>
[% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<div id="patronregistration"><p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p></div>[% END %] [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]
<div id="patronregistration">
<p><a href="/cgi-bin/koha/opac-memberentry.pl">Create an account</a></p>
</div>
[% END %]
</fieldset> </fieldset>
</form> <!-- /#auth --> </form> <!-- /#auth -->
</div> <!-- /#login --> </div> <!-- /#login -->