Koha/koha-tmpl/intranet-tmpl/prog/en/includes/circ-nav.inc
Fridolin Somers 80be039d6c Bug 10300: (follow-up) add controls on transfers page
This patch moves the check of IndependentBranchesTransfers pref to templates and adds permission test inside branchtransfers.pl.
It also corrects the libraries combobox in branchtransfers.tt, this list can contain all libraries, it is the access to the page that may be protected.

Additions to test plan :
1)
1.1) Enable CircSidebar
1.2) In circulation home page check the effect of IndependentBranchesTransfers on "Transfer" link
1.3) Go to return page and check then effect of IndependentBranchesTransfers on "Transfer" link

2)
2.1) In circ/branchtransfers.pl, with and without IndependentBranches you see all libraries are in combobox

3)
3.1) Set IndependentBranchesTransfers to no and go to circ/branchtransfers.pl
3.2) You are redirected to page 403 unless you are superlibarian

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-04-26 11:49:08 +00:00

45 lines
2.4 KiB
HTML

[% USE Branches %]
<div id="navmenu">
<div id="navmenulist">
<ul>
<li><a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation home</a></li>
</ul>
<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 !Koha.Preference('IndependentBranchesTransfers') || CAN_user_superlibrarian %]
<li><a href="/cgi-bin/koha/circ/branchtransfers.pl">Transfer</a></li>
[% END %]
[% IF ( AutoLocation ) %][% ELSE %][% IF ( IndependentBranches ) %][% ELSE %]
<li><a href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set library</a></li>
[% END %][% END %]
[% IF ( fast_cataloging ) %][% IF ( CAN_user_editcatalogue_fast_cataloging ) %]
<li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=FA">Fast cataloging</a></li>
[% END %][% END %]
[% IF Koha.Preference('AllowCheckoutNotes') && CAN_user_circulate_manage_checkout_notes %]
<li><a href="/cgi-bin/koha/circ/checkout-notes.pl">Checkout notes</a> [% IF pending_checkout_notes.count %]<span class="number_box"><a href="/cgi-bin/koha/circ/checkout-notes.pl">[% pending_checkout_notes.count | html %]</a></span>[% END %]</li>
[% END %]
</ul>
<h5>Circulation reports</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>
<li><a href="/cgi-bin/koha/circ/reserveratios.pl">Hold ratios</a></li>
<li><a href="/cgi-bin/koha/circ/transferstoreceive.pl">Transfers to receive</a></li>
[% IF ( CAN_user_circulate_overdues_report ) %]
<li><a href="/cgi-bin/koha/circ/overdue.pl">Overdues</a></li>
[% END %]
<li><a href="/cgi-bin/koha/circ/branchoverdues.pl">Overdues with fines</a></li>
[% IF Koha.Preference('OnSiteCheckouts') %]
<li><a href="/cgi-bin/koha/circ/on-site_checkouts.pl">Pending on-site checkouts</a></li>
[% END %]
</ul>
</div>
</div>