Koha/koha-tmpl/intranet-tmpl/prog/en/includes/circ-nav.inc
Lucas Gass e6c49d642f
Bug 30624: Add loggedinlibrary permission and DB update
To test:
1. Apply patch, updatedatabase, restart_all
2. Have a user with superlibrarian privileges ( User1 )
3. Have a user who has staff access and circulate privileges but is not a super librarian. ( User2 ) Make note of this users home library
4. Turn on the system preference 'CircSidebar'.

-MAIN log in ( auth.tt )
5. As User1, go to the main login screen and try logging in. You should be able to log in AND you should be able to properly chnage your branch BEFORE logging in.
6. As User2, to to the main login screnn amd try logging in. You should be able to but if you try and switch your libraray to anything beside the user's home branch it will not work. You will be logged in at your home branch.
7. For User2, set the new top level permission 'Allow staff to change logged in library (loggedinlibrary).
8. Now you should be able to successfully switch libraries before log in.
9. Turn the 'loggedinlibrary' permission back off for User2.

-AFTER log in-
10. With User1, click on your name/branch in the top right, you should see the the link 'Set library' at the top. If you turn on 'UseCirculationDesks' the link will be 'Set library and desk'.
11. With User2, click on your name/branch in the top right. If you have 'UseCirculationDesks' on, you should see 'Set desk', otherwise you should see nothing.
12. Repeat step 7.
13. NOw if you click on your name/branch in the top right, you should see the the link 'Set library' at the top. If you turn on 'UseCirculationDesks' the link will be 'Set library and desk'.
14. Repeat Step 9.

-CircSideBar-
15. With 'CircSideBar' turned on, go to any ciculation page (Holds queue, Holds to pull, Holds awaiting pickup) with User1. You will see the 'Set library' link. If 'UseCirculationDesks' is on you will see a 'Set library and desk'.
16. Try with User2 and you will not see a 'Set library' link. If 'UseCirculationDesks' is on you will see a 'Set desk' link.
17. Repeat step 7.
18. For with User2 you go to any ciculation page (Holds queue, Holds to pull, Holds awaiting pickup). You will see the 'Set library' link. If 'UseCirculationDesks' is on you will see a 'Set library and desk'.
19. Repeat step 9.

-Set library page-
20. Go to the set library page (http://localhost:8081/cgi-bin/koha/circ/set-library.pl) with User1. You will see a dropdown for 'Set library'. Make sure you can change your library successfully.
21. Go to the set library page (http://localhost:8081/cgi-bin/koha/circ/set-library.pl) with User2. You should NOT see see a dropdown for 'Set library'.
22. Repeat step 7.
23. Go to the set library page (http://localhost:8081/cgi-bin/koha/circ/set-library.pl) with User2. Now you should see a dropdown for 'Set library'.

Signed-off by: Bob Bennhoff/AspenCat Team

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-03-13 15:22:59 -03:00

124 lines
4.7 KiB
HTML

[% USE Koha %]
[% USE Branches %]
<div id="navmenu">
<div id="navmenulist">
<h5>Circulation</h5>
<ul>
<li>
<a href="/cgi-bin/koha/circ/circulation.pl">Check out</a>
</li>
<li>
<a href="/cgi-bin/koha/circ/returns.pl">Check in</a>
</li>
<li>
<a href="/cgi-bin/koha/circ/renew.pl">Renew</a>
</li>
[% IF ( CAN_user_superlibrarian || CAN_user_loggedinlibrary ) %]
<li>
[% IF Koha.Preference('UseCirculationDesks') %]
<a href="/cgi-bin/koha/circ/set-library.pl">Set library and desk</a>
[% ELSE %]
<a href="/cgi-bin/koha/circ/set-library.pl">Set library</a>
[% END %]
</li>
[% ELSIF Koha.Preference('UseCirculationDesks') %]
<li>
<a href="/cgi-bin/koha/circ/set-library.pl">Set desk</a>
</li>
[% END %]
[% IF ( fast_cataloging && CAN_user_editcatalogue_fast_cataloging ) %]
<li>
<a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA"> Fast cataloging</a>
</li>
[% END %]
[% IF ( Koha.Preference('AllowCheckoutNotes') && CAN_user_circulate_manage_checkout_notes ) %]
<li>
<a href="/cgi-bin/koha/circ/checkout-notes.pl">Checkout notes</a>
</li>
[% END %]
[% IF Koha.Preference('OnSiteCheckouts') %]
<li>
<a href="/cgi-bin/koha/circ/on-site_checkouts.pl">Pending on-site checkouts</a>
</li>
[% END %]
</ul>
<h5>Holds</h5>
<ul>
<li>
<a href="/cgi-bin/koha/circ/view_holdsqueue.pl">Holds queue</a>
</li>
<li>
<a href="/cgi-bin/koha/circ/pendingreserves.pl">Holds to pull</a>
</li>
<li>
<a href="/cgi-bin/koha/circ/waitingreserves.pl">Holds awaiting pickup</a>
</li>
[% IF ( Koha.Preference('CurbsidePickup') && CAN_user_circulate_manage_curbside_pickups ) %]
<li>
<a href="/cgi-bin/koha/circ/curbside_pickups.pl">Curbside pickups</a>
</li>
[% END %]
<li>
<a href="/cgi-bin/koha/circ/reserveratios.pl">Hold ratios</a>
</li>
</ul>
[% IF Koha.Preference('UseRecalls') and CAN_user_recalls %]
<h5>Recalls</h5>
<ul>
<li>
<a href="/cgi-bin/koha/recalls/recalls_queue.pl" title="All active recalls">Recalls queue</a>
</li>
<li>
<a href="/cgi-bin/koha/recalls/recalls_to_pull.pl" title="Recalls that could be filled but have not been set waiting">Recalls to pull</a>
</li>
<li>
<a href="/cgi-bin/koha/recalls/recalls_overdue.pl" title="Recalled items that are overdue to be returned">Overdue recalls</a>
</li>
<li>
<a href="/cgi-bin/koha/recalls/recalls_waiting.pl" title="Recalled items awaiting pickup">Recalls awaiting pickup</a>
</li>
<li>
<a href="/cgi-bin/koha/recalls/recalls_old_queue.pl" title="Inactive recalls">Old recalls</a>
</li>
</ul>
[% END %]
[% IF Koha.Preference('ArticleRequests') %]
<h5>Patron request</h5>
<ul>
<li>
<a href="/cgi-bin/koha/circ/article-requests.pl">Article requests</a>
</li>
</ul>
[% END %]
<h5>Transfers</h5>
<ul>
[% IF !Koha.Preference('IndependentBranchesTransfers') || CAN_user_superlibrarian %]
<li>
<a href="/cgi-bin/koha/circ/branchtransfers.pl">Transfer</a>
</li>
[% END %]
<li>
<a href="/cgi-bin/koha/circ/transfers_to_send.pl">Transfers to send</a>
</li>
<li>
<a href="/cgi-bin/koha/circ/transferstoreceive.pl">Transfers to receive</a>
</li>
</ul>
<h5>Overdues</h5>
<ul>
[% IF ( CAN_user_circulate_overdues_report ) %]
<li>
<a href="/cgi-bin/koha/circ/overdue.pl" title="Warning: This report is very resource intensive on systems with large numbers of overdue items.">Overdues</a>
</li>
[% END %]
<li>
<a href="/cgi-bin/koha/circ/branchoverdues.pl" title="Limited to your library. See report help for other details.">Overdues with fines</a>
</li>
</ul>
</div>
</div>