Bug 24201: (QA follow-up) IndependentBranches
This patch updates the IndependentBranches template display logic such that the 'Select desk' and 'Select library and desk' options appear correctly when IndependentBranches is enabled. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
6a525c1cf7
commit
9d2b53c1b8
3 changed files with 11 additions and 16 deletions
|
@ -15,13 +15,15 @@
|
|||
[% 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 %]
|
||||
[% IF !( Koha.Preference('IndependentBranches') && !CAN_user_superlibrarian && !CAN_user_editcatalogue_edit_catalogue ) %]
|
||||
[% IF Koha.Preference('UseCirculationDesks') %]
|
||||
<li><a href="/cgi-bin/koha/circ/set-library.pl">Set library and desk</a></li>
|
||||
[% ELSE %]
|
||||
<li><a href="/cgi-bin/koha/circ/set-library.pl">Set library</a></li>
|
||||
[% END %]
|
||||
[% END %][% END %]
|
||||
[% ELSIF Koha.Preference('UseCirculationDesks') %]
|
||||
<li><a href="/cgi-bin/koha/circ/set-library.pl">Set desk</a></li>
|
||||
[% 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 %]
|
||||
|
|
|
@ -130,9 +130,8 @@
|
|||
</li>
|
||||
[% END %]
|
||||
|
||||
[% IF !( Koha.Preference('IndependentBranches') && !CAN_user_superlibrarian && !CAN_user_editcatalogue_edit_catalogue ) %]
|
||||
<li role="separator" class="loggedin-menu-label divider"></li>
|
||||
[% IF ( IndependentBranches ) %]
|
||||
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
|
||||
<li>
|
||||
[% IF Koha.Preference('UseCirculationDesks') %]
|
||||
<a class="toplinks" href="/cgi-bin/koha/circ/set-library.pl">Set library and desk</a>
|
||||
|
@ -140,14 +139,10 @@
|
|||
<a class="toplinks" href="/cgi-bin/koha/circ/set-library.pl">Set library</a>
|
||||
[% END %]
|
||||
</li>
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
[% ELSIF Koha.Preference('UseCirculationDesks') %]
|
||||
<li role="separator" class="loggedin-menu-label divider"></li>
|
||||
<li>
|
||||
[% IF Koha.Preference('UseCirculationDesks') %]
|
||||
<a class="toplinks" href="/cgi-bin/koha/circ/set-library.pl">Set library and desk</a>
|
||||
[% ELSE %]
|
||||
<a class="toplinks" href="/cgi-bin/koha/circ/set-library.pl">Set library</a>
|
||||
[% END %]
|
||||
<a class="toplinks" href="/cgi-bin/koha/circ/set-library.pl">Set desk</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% IF EnableSearchHistory %]
|
||||
|
|
|
@ -64,20 +64,18 @@ Updated:<ul>
|
|||
[% ELSE %]
|
||||
|
||||
<form method="post" action="set-library.pl">
|
||||
[% IF !( Koha.Preference('IndependentBranches') && !CAN_user_superlibrarian && !CAN_user_editcatalogue_edit_catalogue ) %]
|
||||
<fieldset class="rows">
|
||||
<legend>Set library</legend>
|
||||
<ol>
|
||||
[% IF ( singleBranchMode && !CAN_user_superlibrarian ) %]
|
||||
<li>SingleBranchMode is ON.</li>
|
||||
[% ELSE %]
|
||||
<li><label for="branch">Choose library:</label>
|
||||
<select name="branch" id="branch">
|
||||
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
|
||||
</select></li>
|
||||
[% END %]
|
||||
</ol>
|
||||
</fieldset>
|
||||
[% IF Desks.all %]
|
||||
[% END %]
|
||||
[% IF Koha.Preference('UseCirculationDesks') && Desks.all %]
|
||||
<fieldset class="rows">
|
||||
<legend>Set desk</legend>
|
||||
<ol>
|
||||
|
|
Loading…
Reference in a new issue