8 [% INCLUDE 'doc-head-open.inc' %]
9 [% IF Koha.Preference('UseCirculationDesks') %]
10 <title>Set library and desk › Circulation › Koha</title>
12 <title>Set library › Circulation › Koha</title>
14 [% INCLUDE 'doc-head-close.inc' %]
16 .noshow {display: none;}
19 <body id="circ_set-library" class="circ">
20 [% WRAPPER 'header.inc' %]
21 [% INCLUDE 'circ-search.inc' %]
24 [% WRAPPER 'sub-header.inc' %]
25 [% WRAPPER breadcrumbs %]
26 [% WRAPPER breadcrumb_item %]
27 <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a>
29 [% WRAPPER breadcrumb_item bc_active= 1 %]
30 <span>Set library</span>
32 [% END #/ WRAPPER breadcrumbs %]
33 [% END #/ WRAPPER sub-header.inc %]
35 <div class="main container-fluid">
37 <div class="col-sm-12">
41 [% IF Koha.Preference('CircSidebar') %]
42 <div class="col-sm-10 col-sm-push-2">
45 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
52 <h2>Update succeeded</h2>
54 [% FOREACH update IN updated %]
55 [% IF ( update.updated_branch || update.updated_desk || update.updated_register ) %]
56 [% IF ( updated.updated_branch ) %]
57 <li>Library: [% update.old_branch or "?" | html %] ⇒ [% update.new_branch or "?" | html %]</li>
59 [% IF ( update.updated_desk ) %]
60 <li>Desk: [% update.old_desk or "?" | html %] ⇒ [% LoginDeskname or "?" | html %]</li>
62 [% IF ( updated.updated_register ) %]
63 <li>Register: [% updated.old_register or "?" | html %] ⇒ [% Registers.session_register_name or "?" | html %]</li>
66 <li>ERROR - unknown</li>
70 <form method="post" action="[% referer or "/cgi-bin/koha/circ/circulation.pl" %]">
72 [% FOREACH recycle_loo IN recycle_loop %]
73 <input type="text" name="[% recycle_loo.param | html %]" value="[% recycle_loo.value | html %]" />
76 <button type="submit">Continue</button>
81 <form method="post" action="set-library.pl">
82 [% IF ( CAN_user_superlibrarian || CAN_user_loggedinlibrary ) %]
83 <fieldset class="rows">
84 <legend>Set library</legend>
86 <li><label for="branch">Choose library:</label>
87 <select name="branch" id="branch">
88 [% PROCESS options_for_libraries libraries => Branches.all( selected => branch, unfiltered => 1 ) %]
93 <select name="branch" id="branch" style="visibility:hidden;">
94 [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
98 [% IF Koha.Preference('UseCirculationDesks') && Desks.all %]
99 <fieldset class="rows">
100 <legend>Set desk</legend>
102 <li><label for="desk">Choose desk:</label>
103 <select name="desk_id" id="desk_id">
104 [% PROCESS options_for_desks desks => Desks.all(), selected => desk_id %]
110 [% IF Koha.Preference('UseCashRegisters') %]
111 <fieldset class="rows">
112 <legend>Set cash register</legend>
115 <label for="register_id">Choose cash register:</label>
116 <select name="register_id" id="register_id">
117 <option id="noregister" selected="selected" value="">-- None --</option>
118 [% PROCESS options_for_registers registers => Registers.all() %]
125 <fieldset class="action">
126 <input type="submit" class="btn btn-primary" value="Submit" />
127 <a class="cancel" id="cancel_set_library" href="[% referer or '/cgi-bin/koha/circ/circulation.pl' %]">Cancel</a>
130 [% FOREACH recycle_loo IN recycle_loop %]
131 <input type="text" name="[% recycle_loo.param | html %]" value="[% recycle_loo.value | html %]" />
133 <input type="hidden" name="oldreferer" value="[% referer or "/cgi-bin/koha/circ/circulation.pl" %]" />
139 [% IF Koha.Preference('CircSidebar') %]
140 </div> <!-- /.col-sm-10.col-sm-push-2 -->
141 <div class="col-sm-2 col-sm-pull-10">
143 [% INCLUDE 'circ-nav.inc' %]
145 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
146 </div> <!-- /.row -->
150 </div> <!-- /.col-sm-12 -->
151 </div> <!-- /.row -->
153 [% MACRO jsinclude BLOCK %]
154 [% Asset.js("js/desk_selection.js") | $raw %]
155 [% Asset.js("js/register_selection.js") | $raw %]
158 [% INCLUDE 'intranet-bottom.inc' %]