Owen Leonard
04dd98fa84
Several system preference variables are unavailable to the OPAC login template because they are not explicitly enabled for that page. Instead of adding them to Auth.pm using the old method this patch uses the new system preference check syntax using the Koha TT plugin. The following preferences are now checked using this syntax in masthead.inc: OpacAddMastheadLibraryPulldown UseCourseReserves reviewson OpacShowRecentComments In order for the call in masthead.inc to the new plugin to work on all OPAC pages "[% USE Koha %]" must be added to any template which includes it (most of them). Also in this patch: A change to Auth.pm to enable correct display of the LibraryName in the title of the OPAC login page. To test, turn on the above system preferences and confirm that the relevant links appear under the OPAC's main search bar on all pages including the login page. Confirm that the text specified in the LibraryName system preference is shown as the title of the login page. Confirm that course reserves and comments are displayed correctly on the biblio detail page. Signed-off-by: Liz Rea <liz@catalyst.net.nz> I checked both prog and ccsr - all seems well and the links are appearing and disappearing in accordance with the appropriate sysprefs. Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Works as described. Signed-off-by: Galen Charlton <gmc@esilibrary.com>
62 lines
2.7 KiB
Text
62 lines
2.7 KiB
Text
[% USE Koha %]
|
|
[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Change your password
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
<body id="opac-passwd">
|
|
<div id="doc3" class="yui-t1">
|
|
<div id="bd">
|
|
[% INCLUDE 'masthead.inc' %]
|
|
|
|
<div id="yui-main">
|
|
<div class="yui-b"><div class="yui-g">
|
|
<div id="userpasswd" class="container">
|
|
<h3><a href="/cgi-bin/koha/opac-user.pl">[% firstname %] [% surname %]'s account</a> ⇢ Change your password </h3>
|
|
|
|
[% IF ( Error_messages ) %]
|
|
<div class="dialog error"> <h3>There was a problem with your submission</h3>
|
|
<p>
|
|
[% IF ( PassMismatch ) %]
|
|
Passwords do not match. Please re-type your new password.
|
|
[% END %]
|
|
[% IF ( ShortPass ) %]
|
|
Your new password must be at least [% minpasslen %] characters long
|
|
[% END %]
|
|
[% IF ( WrongPass ) %]
|
|
Your current password was entered incorrectly. If this problem persists, please ask a librarian to re-set your password for you.
|
|
[% END %]
|
|
</p></div>
|
|
[% END %]
|
|
|
|
[% IF ( OpacPasswordChange ) %]
|
|
[% IF ( Ask_data ) %]
|
|
<form action="/cgi-bin/koha/opac-passwd.pl" name="mainform" id="mainform" method="post"><fieldset class="brief">
|
|
[% UNLESS ( ShortPass ) %]<div class="hint">Your password must be at least [% minpasslen %] characters long.</div>[% END %]
|
|
<ol> <li><label for="Oldkey">Current password:</label> <input type="password" id="Oldkey" size="25" name="Oldkey" /></li>
|
|
<li><label for="Newkey">New password:</label> <input type="password" id="Newkey" size="25" name="Newkey" /></li>
|
|
<li><label for="Confirm">Re-type new password:</label> <input type="password" id="Confirm" size="25" name="Confirm" /></li></ol></fieldset>
|
|
<fieldset class="action"><input type="submit" value="Submit changes" class="submit" /> <a href="/cgi-bin/koha/opac-user.pl" class="cancel">Cancel</a></fieldset>
|
|
</form>
|
|
[% END %]
|
|
[% ELSE %]
|
|
<div class="dialog alert">You can't change your password.</div>
|
|
[% END %]
|
|
|
|
[% IF ( password_updated ) %]
|
|
<div class="dialog message"><h1>Password updated</h1>
|
|
Your password has been changed</div>
|
|
<form action="/cgi-bin/koha/opac-user.pl" method="post">
|
|
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
|
|
<p><input type="submit" class="icon back" value="Return to your record" /></p>
|
|
</form>
|
|
[% END %]
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
<div id="leftmenus" class="container">
|
|
[% INCLUDE 'navigation.inc' IsPatronPage=1 %]
|
|
</div>
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'opac-bottom.inc' %]
|