Main Koha release repository https://koha-community.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

127 lines
4.1 KiB

[% USE raw %]
[% USE Asset %]
[% USE Branches %]
[% USE Desks %]
[% USE Koha %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
[% IF Koha.Preference('UseCirculationDesks') %]
<title>Koha &rsaquo; Circulation &rsaquo; Set library and desk</title>
[% ELSE %]
<title>Koha &rsaquo; Circulation &rsaquo; Set library</title>
[% END %]
[% INCLUDE 'doc-head-close.inc' %]
<style>
.noshow {display: none;}
</style>
</head>
<body id="circ_set-library" class="circ">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'circ-search.inc' %]
<div id="breadcrumbs">
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
&rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
&rsaquo; <a href="/cgi-bin/koha/circ/set-library.pl">Set library</a>
</div>
<div class="main container-fluid">
<div class="row">
<div class="col-sm-12">
<main>
<div class="row">
[% IF Koha.Preference('CircSidebar') %]
<div class="col-sm-10 col-sm-push-2">
[% ELSE %]
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
[% END %]
[% IF ( updated ) %]
<h2>Update succeeded</h2>
Updated:<ul>
[% FOREACH update IN updated %]
[% IF ( update.updated_branch ) %]
<li>Library: [% update.old_branch or "?" | html %] &rArr; [% update.new_branch or "?" | html %]</li>
[% ELSIF (update.updated_desk) %]
<li>Desk: [% update.old_desk or "?" | html %] &rArr; [% LoginDeskname or "?" | html %]</li>
[% ELSE %]
<li>ERROR - unknown</li>
[% END %]
[% END %]
</ul>
<form method="post" action="[% referer or "/cgi-bin/koha/circ/circulation.pl" %]">
<div class="noshow">
[% FOREACH recycle_loo IN recycle_loop %]
<input type="text" name="[% recycle_loo.param | html %]" value="[% recycle_loo.value | html %]" />
[% END %]
</div>
<button type="submit">Continue</button>
</form>
[% 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>
<li><label for="branch">Choose library:</label>
<select name="branch" id="branch">
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
</select></li>
</ol>
</fieldset>
[% ELSE %]
<select name="branch" id="branch" style="visibility:hidden;">
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
</select>
[% END %]
[% IF Koha.Preference('UseCirculationDesks') && Desks.all %]
<fieldset class="rows">
<legend>Set desk</legend>
<ol>
<li><label for="desk">Choose desk:</label>
<select name="desk_id" id="desk_id">
[% PROCESS options_for_desks desks => Desks.all(), selected => desk_id %]
</select></li>
</ol>
</fieldset>
[% END %]
<fieldset class="action">
<input type="submit" value="Submit" />
<a class="cancel" id="cancel_set_library" href="[% referer or '/cgi-bin/koha/circ/circulation.pl' %]">Cancel</a>
</fieldset>
<div class="noshow">
[% FOREACH recycle_loo IN recycle_loop %]
<input type="text" name="[% recycle_loo.param | html %]" value="[% recycle_loo.value | html %]" />
[% END %]
<input type="hidden" name="oldreferer" value="[% referer or "/cgi-bin/koha/circ/circulation.pl" %]" />
</div>
</form>
<!-- /updated -->
[% END %]
[% IF Koha.Preference('CircSidebar') %]
</div> <!-- /.col-sm-10.col-sm-push-2 -->
<div class="col-sm-2 col-sm-pull-10">
<aside>
[% INCLUDE 'circ-nav.inc' %]
</aside>
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
</div> <!-- /.row -->
[% END %]
</main>
</div> <!-- /.col-sm-12 -->
</div> <!-- /.row -->
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/desk_selection.js") | $raw %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]