Alex Buckley
146a897731
Introduce a suggestionPatronCategoryExceptions system preference. If the suggestion syspref is enabled then libraries can stop specific borrower types from making suggestions by ticking the type in the suggestionPatronCategoryExceptions syspref. Test plan: 1. Apply patches, update database, re-start services 2. Set 'suggestion' syspref = 'Allow' 3. Confirm you can view the purchase suggestion links on OPAC biblio detail page & 'your summary' page. As well as successfully submit a suggestion. 4. Select the patron category you're logged in as in suggestionPatronCategoryExceptions syspref 5. Confirm the purchase suggestion links are hidden in the OPAC biblio detail page & 'your summary' page 6. In your browser enter the link: <OPAC base URL>/cgi-bin/koha/opac-suggestions.pl e.g. http://localhost:8080/cgi-bin/koha/opac-suggestions.pl 7. Confirm a 404 page loads 8. Confirm you can view/moderate suggestions in the staff client - even though your patron is selected in the suggestionPatronCategoryExceptions syspref 9. Untick your patron category in the suggestionPatronCategoryExceptions syspref 10. Confirm you can view the purchase suggestion links on the OPAC, as well as successfully submit a suggestion. 11. Set 'suggestion' syspref = "Don't allow" 12. Confirm the purchase suggestion links are hidden in the OPAC 13. Select all patron categories in suggestPatronCategoryExceptions syspref. View the OPAC without logging in and confirm you can perform searches and view OPAC biblio detail pages. Sponsored-by: Catalyst IT, New Zealand Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
162 lines
5.8 KiB
HTML
162 lines
5.8 KiB
HTML
[% USE Koha %]
|
|
[% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername ) %]
|
|
<div id="menu">
|
|
<ul>
|
|
[% 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 charges</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 checkout 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('OPACHoldsHistory') == 1 %]
|
|
[% IF ( holdshistoryview ) %]
|
|
<li class="active">
|
|
[% ELSE %]
|
|
<li>
|
|
[% END %]
|
|
<a href="/cgi-bin/koha/opac-holdshistory.pl">your holds history</a></li>
|
|
[% END %]
|
|
|
|
[% IF ( suggestion ) %]
|
|
[% 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">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 %]
|
|
|
|
[% IF Koha.Preference( 'CurbsidePickup' ) %]
|
|
[% IF ( ermview ) %]
|
|
<li class="active">
|
|
[% ELSE %]
|
|
<li>
|
|
[% END %]
|
|
<a href="/cgi-bin/koha/opac-curbside-pickups.pl">your curbside pickups</a></li>
|
|
[% END %]
|
|
|
|
[% IF Koha.Preference('UseRecalls') %]
|
|
[% IF ( recallsview ) %]
|
|
<li class="active">
|
|
[% ELSE %]
|
|
<li>
|
|
[% END %]
|
|
<a href="/cgi-bin/koha/opac-recalls.pl">your recalls history</a>
|
|
[% END %]
|
|
|
|
</ul>
|
|
</div>
|
|
[% END %]
|