Tomas Cohen Arazi
e155e6d5bb
This patch makes the OPAC pages that rely on OpacPasswordChange use the current patron's category to make the decision to allow password change or not. It does so by making sure all the places in which OpacPasswordChange was used, use $logged_in_user->category->effective_change_password instead. Special attention is required on the case of opac-registration-verify.pl in which the use of an unblessed Koha::Patron object is changed in favour of the blessed object, so we can actually use the new method to make a decision on the text to display. To test: - Go through the OPAC pages, check that the password change strings and links are displayed only whne appropriate. - Sign off :-D Signed-off-by: Liz Rea <wizzyrea@gmail.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
136 lines
5 KiB
HTML
136 lines
5 KiB
HTML
[% USE Koha %]
|
|
[% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername ) %]
|
|
<div id="menu">
|
|
<h4><a href="#" class="menu-collapse-toggle">Your account menu</a></h4>
|
|
<ul class="menu-collapse">
|
|
[% IF ( userview ) %]
|
|
<li class="active">
|
|
[% ELSE %]
|
|
<li>
|
|
[% END %]
|
|
<a href="/cgi-bin/koha/opac-user.pl">your summary</a></li>
|
|
[% IF ( OPACFinesTab ) %]
|
|
[% IF ( accountview ) %]
|
|
<li class="active">
|
|
[% ELSE %]
|
|
<li>
|
|
[% END %]
|
|
<a href="/cgi-bin/koha/opac-account.pl">your fines</a></li>
|
|
[% END %]
|
|
|
|
[% IF ( userupdateview ) %]
|
|
<li class="active">
|
|
[% ELSE %]
|
|
<li>
|
|
[% END %]
|
|
<a href="/cgi-bin/koha/opac-memberentry.pl">your personal details</a></li>
|
|
|
|
[% IF Koha.Preference('GDPR_Policy') # remove when extending %]
|
|
[% IF consentview %]<li class="active">[% ELSE %]<li>[% END %]
|
|
<a href="/cgi-bin/koha/opac-patron-consent.pl">your consents</a>
|
|
</li>
|
|
[% END %]
|
|
|
|
[% IF Koha.Preference( 'TagsEnabled' ) == 1 %]
|
|
[% IF ( tagsview ) %]
|
|
<li class="active">
|
|
[% ELSE %]
|
|
<li>
|
|
[% END %]
|
|
<a href="/cgi-bin/koha/opac-tags.pl?mine=1">your tags</a></li>
|
|
[% END %]
|
|
|
|
[% IF logged_in_user.category.effective_change_password %]
|
|
[% IF ( passwdview ) %]
|
|
<li class="active">
|
|
[% ELSE %]
|
|
<li>
|
|
[% END %]
|
|
<a href="/cgi-bin/koha/opac-passwd.pl">change your password</a></li>
|
|
[% END %]
|
|
|
|
[% IF EnableOpacSearchHistory %]
|
|
[% IF ( searchhistoryview ) %]
|
|
<li class="active">
|
|
[% ELSE %]
|
|
<li>
|
|
[% END %]
|
|
<a href="/cgi-bin/koha/opac-search-history.pl">your search history</a></li>
|
|
[% END %]
|
|
|
|
[% IF ( opacreadinghistory ) %]
|
|
[% IF ( readingrecview ) %]
|
|
<li class="active">
|
|
[% ELSE %]
|
|
<li>
|
|
[% END %]
|
|
<a href="/cgi-bin/koha/opac-readingrecord.pl">your reading history</a></li>
|
|
[% IF ( OPACPrivacy ) %]
|
|
[% IF ( privacyview ) %]
|
|
<li class="active">
|
|
[% ELSE %]
|
|
<li>
|
|
[% END %]
|
|
<a href="/cgi-bin/koha/opac-privacy.pl">your privacy</a></li>
|
|
[% END %]
|
|
[% END # / opacreadinghistory %]
|
|
|
|
[% IF Koha.Preference( 'suggestion' ) == 1 %]
|
|
[% IF ( suggestionsview ) %]
|
|
<li class="active">
|
|
[% ELSE %]
|
|
<li>
|
|
[% END %]
|
|
<a href="/cgi-bin/koha/opac-suggestions.pl">your purchase suggestions</a></li>
|
|
[% END %]
|
|
|
|
[% IF ( EnhancedMessagingPreferences ) %]
|
|
[% IF Koha.Preference( 'EnhancedMessagingPreferencesOPAC' ) %]
|
|
[% IF ( messagingview ) %]
|
|
<li class="active">
|
|
[% ELSE %]
|
|
<li>
|
|
[% END %]
|
|
<a href="/cgi-bin/koha/opac-messaging.pl">your messaging</a></li>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% IF Koha.Preference( 'virtualshelves' ) == 1 %]
|
|
[% IF ( listsview ) %]
|
|
<li class="active">
|
|
[% ELSE %]
|
|
<li>
|
|
[% END %]
|
|
<a href="/cgi-bin/koha/opac-shelves.pl?op=list&category=1">your lists</a></li>
|
|
[% END %]
|
|
|
|
[% IF Koha.Preference( 'RoutingSerials' ) && logged_in_user && logged_in_user.get_routing_lists.count %]
|
|
[% IF ( routinglistsview ) %]
|
|
<li class="active">
|
|
[% ELSE %]
|
|
<li>
|
|
[% END %]
|
|
<a href="/cgi-bin/koha/opac-routing-lists.pl">your routing lists</a></li>
|
|
[% END %]
|
|
|
|
[% IF Koha.Preference( 'useDischarge' ) == 1 %]
|
|
[% IF ( dischargeview ) %]
|
|
<li class="active">
|
|
[% ELSE %]
|
|
<li>
|
|
[% END %]
|
|
<a href="/cgi-bin/koha/opac-discharge.pl">ask for a discharge</a></li>
|
|
[% END %]
|
|
|
|
[% IF Koha.Preference( 'ILLModule' ) == 1 %]
|
|
[% IF ( illrequestsview ) %]
|
|
<li class="active">
|
|
[% ELSE %]
|
|
<li>
|
|
[% END %]
|
|
<a href="/cgi-bin/koha/opac-illrequests.pl">your interlibrary loan requests</a></li>
|
|
[% END %]
|
|
|
|
</ul>
|
|
</div>
|
|
[% END %]
|