1 [% BLOCK options_for_libraries %]
2 [% FOREACH l IN libraries %]
4 <option value="[% prefix | html %][% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option>
6 <option value="[% prefix | html %][% l.branchcode | html %]">[% l.branchname | html %]</option>
11 [% BLOCK options_for_desks %]
12 <option id="nodesk" value="">---</option>
13 [% FOREACH d IN desks %]
14 [% IF d.branchcode == branch %]
15 [% IF selected == d.desk_id || ( selected == '' && loop.first ) %]
16 <option class="[% d.branchcode | html %]" value="[% d.desk_id | html %]" selected="selected">[% d.desk_name | html %]</option>
18 <option class="[% d.branchcode | html %]" value="[% d.desk_id | html %]" >[% d.desk_name | html %]</option>
21 <option class="[% d.branchcode | html %]" value="[% d.desk_id | html %]" disabled style="display: none">[% d.desk_name | html %]</option>
26 [% BLOCK options_for_registers %]
27 [% FOREACH r IN registers %]
28 [% IF r.branch == Branches.GetLoggedInBranchcode %]
30 <option class="[%- r.branch | html -%][%- IF r.branch_default -%] default[%- END -%]" value="[% r.id | html %]" selected="selected">[% r.name | html %]</option>
32 <option class="[%- r.branch | html -%][%- IF r.branch_default -%] default[%- END -%]" value="[% r.id | html %]">[% r.name | html %]</option>
35 <option class="[%- r.branch | html -%][%- IF r.branch_default -%] default[%- END -%]" value="[% r.id | html %]" disabled="disabled" style="display: none">[% r.name | html %]</option>
40 [% BLOCK options_for_authorised_value_categories %]
41 [% FOREACH avc IN authorised_value_categories %]
43 <option value="[% avc.category | html %]" selected="selected">[% avc.category | html %]</option>
45 <option value="[% avc.category | html %]">[% avc.category | html %]</option>
50 [% BLOCK options_for_authorised_values %]
51 [% FOREACH av IN authorised_values %]
52 [% IF av.authorised_value == selected_av %]
53 <option value="[% av.authorised_value | html %]" selected="selected">[% av.lib | html %]</option>
55 <option value="[% av.authorised_value | html %]">[% av.lib | html %]</option>
60 [% BLOCK options_for_item_types %]
61 [% FOREACH itemtype IN itemtypes %]
62 [% IF itemtype.itemtype == selected_itemtype %]
63 <option value="[% itemtype.itemtype | html %]" selected="selected">
65 <option value="[% itemtype.itemtype | html %]">
67 [% itemtype.translated_description | html %]
72 [% BLOCK biblio_a_href -%]
73 [%- IF Koha.Preference('IntranetBiblioDefaultView') == 'marc' && Koha.Preference('viewMARC') -%]
74 [%- SET this_biblio_href = "/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=" -%]
75 [%- ELSIF Koha.Preference('IntranetBiblioDefaultView') == 'labeled_marc' && Koha.Preference('viewLabeledMARC') -%]
76 [%- SET this_biblio_href = "/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=" -%]
77 [%- ELSIF Koha.Preference('IntranetBiblioDefaultView') == 'isbd' && Koha.Preference('viewISBD') -%]
78 [%- SET this_biblio_href = "/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=" -%]
80 [%- SET this_biblio_href = "/cgi-bin/koha/catalogue/detail.pl?biblionumber=" -%]
82 [%- this_biblio_href | url %][% biblionumber | url -%]
85 [% BLOCK subfields_for_item %]
87 [% FOREACH subfield IN subfields %]
88 [% IF subfield.kohafield == 'items.more_subfields_xml' %]
89 [% SET kohafield = 'items.more_subfields_xml_' _ subfield.subfield %]
91 [% SET kohafield = subfield.kohafield %]
95 <div class="subfield_line" style="[% subfield.visibility | html %]" id="subfield[% subfield.tag | html %][% subfield.subfield | html %][% subfield.random | html %]">
96 [% IF ( subfield.mandatory ) %]
97 <label class="required">[% subfield.subfield | html %] - [% subfield.marc_lib | $raw %]</label>
99 <label>[% subfield.subfield | html %] - [% subfield.marc_lib | $raw %]</label>
102 [% SET mv = subfield.marc_value %]
103 [% IF ( mv.type == 'hidden' ) %]
104 <input type="hidden" id="[%- mv.id | html -%]" name="[% kohafield | html %]" class="input_marceditor [% kohafield | html %]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]">
105 [% ELSIF ( mv.type == 'select' ) %]
106 [% IF ( mv.readonly || subfield.IS_RETURN_CLAIM ) %]
107 <select name="[% kohafield | html %]" id="[%- mv.id | html -%]" class="input_marceditor [% kohafield | html %]" readonly="readonly" disabled="disabled" data-width="50%">
109 <select name="[% kohafield | html %]" id="[%- mv.id | html -%]" class="input_marceditor select2 [% kohafield | html %]" data-category="[% mv.category | html %]" data-width="50%">
112 [% SET matched = 0 %]
113 [% FOREACH aval IN mv.values %]
114 [% IF aval == mv.default %]
115 [% SET matched = 1 %]
116 <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
118 [% IF subfield.IS_LOST_AV && Koha.Preference("ClaimReturnedLostValue") && aval == Koha.Preference("ClaimReturnedLostValue") %]
119 <option disabled="disabled" value="[%- aval | html -%]" title="Return claims must be processed from the patron details page">[%- mv.labels.$aval | html -%]</option>
120 [% ELSIF subfield.IS_LOST_AV && Koha.Preference("BundleLostValue") && aval == Koha.Preference("BundleLostValue") %]
121 <option disabled="disabled" value="[%- aval | html -%]" title="Bundle losses are set at checkin automatically">[%- mv.labels.$aval | html -%]</option>
123 <option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option>
127 [% UNLESS matched || ( ( kohafield == 'items.damaged' || kohafield == 'items.itemlost' || kohafield == 'items.withdrawn' || kohafield == 'items.notforloan' ) && mv.default == '0' ) %]
128 [%# If the current value is not in the authorised list and is not a field where 0 means unset #%]
129 <option value="[%- mv.default | html -%]" selected="selected">[%- mv.default | html -%] (Not an authorised value)</option>
131 <span style="float:right;" title="The current value [% mv.default | html %] is not configured for the authorised value category controlling this subfield"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i></span>
135 [% ELSIF ( mv.type == 'text_auth' ) %]
137 <input type="text" id="[%- mv.id | html -%]" name="[% kohafield | html %]" class="input_marceditor [% kohafield | html %]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" readonly="readonly" />
139 <input type="text" id="[%- mv.id | html -%]" name="[% kohafield | html %]" class="input_marceditor [% kohafield | html %]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" />
140 [% SET dopop = "Dopop('/cgi-bin/koha/authorities/auth_finder.pl?authtypecode=\"${mv.authtypecode}\"&index=${mv.id}','${mv.id}')" %]
141 <a href="#" class="buttonDot" onclick="[%- dopop | html -%]; return false;" title="Tag editor">...</a>
143 [% ELSIF ( mv.type == 'text_plugin' ) %]
145 <input type="text" id="[%- mv.id | html -%]" name="[% kohafield | html %]" class="input_marceditor [% kohafield | html %]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" readonly="readonly" />
147 <input type="text" id="[%- mv.id | html -%]" name="[% kohafield | html %]" class="input_marceditor [% kohafield | html %]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" />
148 [% IF ( mv.nopopup ) %]
149 <a href="#" id="buttonDot_[%- mv.id | html -%]" class="[%- mv.class | html -%]" title="No popup">...</a>
151 <a href="#" id="buttonDot_[%- mv.id | html -%]" class="[%- mv.class | html -%]" title="Tag editor">...</a>
153 [% UNLESS no_plugin %][%# FIXME - from batchMod-edit, jQuery is included at the end of the template and cataloguing plugins are not working in this situation %]
154 [%- mv.javascript | $raw -%]
157 [% ELSIF ( mv.type == 'text' ) %]
159 <input type="text" id="[%- mv.id | html -%]" name="[% kohafield | html %]" class="input_marceditor [% kohafield | html %]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" readonly="readonly" />
161 <input type="text" id="[%- mv.id | html -%]" name="[% kohafield | html %]" class="input_marceditor [% kohafield | html %]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" />
163 [% ELSIF ( mv.type == 'textarea' ) %]
165 <textarea id="[%- mv.id | html -%]" name="[% kohafield | html %]" class="input_marceditor [% kohafield | html %]" rows="5" cols="64" readonly="readonly" >[% mv.value | html %]</textarea>
167 <textarea id="[%- mv.id | html -%]" name="[% kohafield | html %]" class="input_marceditor [% kohafield | html %]" rows="5" cols="64" >[% mv.value | html %]</textarea>
171 [% IF subfield.kohafield == 'items.more_subfields_xml' %]
172 <input type="hidden" name="items.more_subfields_xml" value="[% subfield.subfield | html %]" />
174 <input type="hidden" name="tag" value="[% subfield.tag | html %]" />
175 <input type="hidden" name="kohafield" value="[% subfield.kohafield | html %]" /> [%# We should not need that but all item forms are not rewritten yet %]
176 <input type="hidden" name="subfield" value="[% subfield.subfield | html %]" />
177 <input type="hidden" name="mandatory" value="[% subfield.mandatory | html %]" />
178 <input type="hidden" name="important" value="[% subfield.important | html %]" />
181 <span name="regex_fields" style="display: none;">
182 s/<input type="text" name="[% kohafield | html %]_regex_search" class="regex_search" placeholder="regex pattern" />/
183 <input type="text" name="[% kohafield | html %]_regex_replace" class="regex_replace" placeholder="regex replacement" />/
184 <input type="text" name="[% kohafield | html %]_regex_modifiers" class="regex_modifiers" placeholder="ig" size="3" />
188 [% IF add_delete_checkbox %]
189 [% UNLESS ( subfield.mandatory ) %]
190 <input type="checkbox" id="row[% subfield.tag | html %][% subfield.subfield | html %][% subfield.random | html %]" title="Check to delete subfield [% subfield.subfield | html %]" name="disable_input" value="[% kohafield | html %]" />
192 <span class="required">Required</span>
195 [% IF ( subfield.mandatory ) %] <span class="required">Required</span>
196 [% ELSIF ( subfield.important ) %] <span class="important">Important</span>
201 [% IF (mv.type == 'text' || mv.type == 'text_plugin' || mv.type == 'textarea' ) %]
202 <a href="#" name="[% kohafield | html %]_field_regex" class="field_regex" id="[% subfield.id | html %]" >RegEx</a>
206 [% IF ( subfield.repeatable ) %]
207 <a href="#" class="buttonPlus" onclick="CloneItemSubfield(this.parentNode.parentNode); return false;">
208 <img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
212 <span class="hint" id="hint[% subfield.tag | html %][% subfield.subfield | html %][% subfield.random | html %]"></span>
220 [% BLOCK items_table_batchmod %]
221 <div class="page-section">
222 [% IF display_columns_selection %][%# Needs js/pages/batchMod.js %]
223 [% IF checkboxes_edit OR checkboxes_delete %]
224 <div class="btn-toolbar selections-toolbar">
225 <a id="selectallbutton" href="#"><i class="fa fa-check"></i> Select all</a> | <a id="clearallbutton" href="#"><i class="fa fa-times"></i> Clear all</a> | <a id="clearonloanbutton" href="#">Clear on loan</a>
229 <div id="cataloguing_additem_itemlist">
232 <strong>Show/hide columns:</strong>
233 <span class="selected">
234 <input type="checkbox" checked="checked" id="showall" />
235 <label for="showall">Show all columns</label>
238 <input type="checkbox" id="hideall" />
239 <label for="hideall">Hide all columns</label>
242 [% FOREACH header IN item_header_loop %]
243 <span class="selected">
244 <input id="checkheader[% loop.count | html %]" type="checkbox" checked="checked" />
245 <label for="checkheader[% loop.count | html %]">[% header.header_value | html %]</label>
248 </p> <!-- /#selections -->
251 [% SET date_fields = [ 'dateaccessioned', 'onloan', 'datelastseen', 'datelastborrowed', 'replacementpricedate' ] %]
256 [% IF checkboxes_edit OR checkboxes_delete %]
259 <th class="anti-the">Title</th>
260 <th class="holds_count" title="Item holds / Total holds">Holds</th>
261 [% FOREACH item_header IN headers %]
262 [% IF item_header.column_name %]
263 <th data-colname="[% item_header.column_name | html %]">
267 [% item_header.header_value | html %]
273 [% FOREACH item IN items %]
274 [% SET can_be_edited = !item.nomod && !( Koha.Preference('IndependentBranches') && ! logged_in_user && item.homebranch != Branches.GetLoggedInBranchname() ) %]
277 <td>[% item.index + 1 | html %]</td>
278 [% IF checkboxes_edit %]
279 [% UNLESS can_be_edited%]
281 <i class="fa fa-times fa-lg" title="Cannot edit"></i>
285 <input type="checkbox" name="itemnumber" value="[% item.itemnumber | html %]" id="row[% item.itemnumber | html %]" checked="checked" data-is-onloan="[% item.is_checked_out | html %]" />
288 [% ELSIF checkboxes_delete %]
289 [% UNLESS can_be_edited %]
291 <i class="fa fa-times fa-lg" title="Cannot delete"></i>
294 [% IF item.safe_to_delete %]
295 <td><input type="checkbox" name="itemnumber" value="[% item.itemnumber | html %]" id="row[% item.itemnumber | html %]" checked="checked" /></td>
297 [% SET messages = item.safe_to_delete.messages %]
298 [% FOR m IN messages %]
299 [% SWITCH m.message %]
300 [% CASE "book_on_loan" %][% SET cannot_delete_reason = t("Item is checked out") %]
301 [% CASE "not_same_branch" %][% SET cannot_delete_reason = t("Item does not belong to your library") %]
302 [% CASE "book_reserved" %][% SET cannot_delete_reason = t("Item has a waiting hold") %]
303 [% CASE "linked_analytics" %][% SET cannot_delete_reason = t("Item has linked analytics") %]
304 [% CASE "last_item_for_hold" %][% SET cannot_delete_reason = t("Last item for bibliographic record with biblio-level hold on it") %]
305 [% CASE %][% SET cannot_delete_reason = t("Unknown reason") _ '(' _ m.message _ ')' %]
310 <i class="fa fa-times fa-lg" title="[% cannot_delete_reason | html %]"></i>
317 <label for="row[% item.itemnumber | html %]">
318 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber | uri %]">
319 [% item.biblio.title | html %]
321 [% IF ( item.biblio.author ) %], by [% item.biblio.author | html %][% END %]
324 <td class="holds_count">
326 [% IF item.item_holds %]
327 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% item.biblionumber | uri %]" title="Holds on this item: [% item.item_holds | html %] / Total holds on this record: [% item.holds | html -%]" >
329 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% item.biblionumber | uri %]" title="No holds on this item / Total holds on this record: [% item.holds | html -%]" >
333 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% item.biblionumber | uri %]" title="Holds on this record: [% item.holds | html -%]" >
335 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% item.biblionumber | uri %]" title="No holds on this record" >
337 [% END # /IF item.holds %]
339 [% item.item_holds | html %]/[% item.holds | html %]
341 [% item.holds | html %]
345 [% FOREACH header IN headers %]
346 [% SET attribute = header.attribute %]
347 [% IF header.attribute AND date_fields.grep('^' _ attribute _ '$').size %]
348 <td data-order="[% item.$attribute | html %]">[% item.$attribute | $KohaDates %]</td>
350 <td>[% item.$attribute | html %]</td>
354 [% END # /FOREACH items %]
356 </table> <!-- /#itemst -->
360 [% # BOOTSTRAP TAB WRAPPER USAGE %]
361 [% # [ WRAPPER tabs id= "tabs_container_id" ] %]
362 [% # [ WRAPPER tabs_nav ] %]
363 [% # [ WRAPPER tab_item tabname= "tab_name_1" bt_active= 1 ] <span>Tab text 1</span> [ END ] %]
364 [% # [ WRAPPER tab_item tabname= "tab_name_2" ] <span>Tab text 2</span> [ END ] %]
367 [% # [ WRAPPER tab_panels ] %]
368 [% # [ WRAPPER tab_panel tabname="tab_name_1" bt_active= 1 ] Panel contents 1 [ END ] %]
369 [% # [ WRAPPER tab_panel tabname="tab_name_2" ] Panel contents 2 [ END ] %]
376 <div id="[% id | html %]" class="toptabs">
378 <div class="toptabs">
385 <ul class="nav nav-tabs" role="tablist">
391 [% IF ( bt_active ) %]
392 <li role="presentation" class="active">
394 <li role="presentation">
397 <a href="?tab=[% tabname | url %]" id="[% tabname | uri %]-tab">
399 <a href="#[% tabname | uri %]_panel" id="[% tabname | uri %]-tab" data-tabname="[% tabname | uri %]" aria-controls="[% tabname | uri %]_panel" role="tab" data-toggle="tab">
406 [% BLOCK tab_panels %]
407 <div class="tab-content">
412 [% BLOCK tab_panel %]
413 [% IF ( bt_active ) %]
414 <div role="tabpanel" class="tab-pane active" id="[% tabname | html %]_panel">
416 <div role="tabpanel" class="tab-pane" id="[% tabname | html %]_panel">
422 [% # BOOTSTRAP BREADCRUMBS WRAPPER USAGE %]
423 [% # [ WRAPPER breadcrumbs ] %]
424 [% # [ Home breadcrumb automatically included ] %]
425 [% # [ WRAPPER breadcrumb_item ] %]
426 [% # <a href="/cgi-bin/koha/module/module-home.pl"> Module </a> %]
429 [% # [ IF op == 'add_form' ] %]
430 [% # [ WRAPPER breadcrumb_item ] %]
431 [% # <a href="/cgi-bin/koha/module/page.pl"> Module page </a> %]
433 [% # [ WRAPPER breadcrumb_item bc_active = 1 ] %]
434 [% # <span>Add form</span> %]
437 [% # [ ELSIF op == 'delete_confirm' ] %]
438 [% # [ WRAPPER breadcrumb_item ] %]
439 [% # <a href="/cgi-bin/koha/module/page.pl"> Module page </a> %]
441 [% # [ WRAPPER breadcrumb_item bc_active = 1 ] %]
442 [% # <span>Confirm deletion</span> %]
446 [% # [ WRAPPER breadcrumb_item bc_active = 1 ] %]
447 [% # <span>Module page</span> %]
449 [% # [ END #/IF op = add_form ] %]
451 [% # [ END #/ WRAPPER breadcrumbs ] %]
453 [% # Used to build breadcrumb navigation nav %]
454 [% BLOCK breadcrumbs %]
455 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
457 [%# Include the Home link every time %]
458 [% WRAPPER breadcrumb_item %]
459 <a href="/cgi-bin/koha/mainpage.pl" title="Home">Home</a>
466 [%# Used to build individual breadcrumb items in the breadcrumb nav %]
467 [% BLOCK breadcrumb_item %]
468 [% IF ( bc_active ) %]
470 <a href="#" aria-current="page">
481 [% # [ WRAPPER accordion panelgroup_id="accordion container id" ] %]
482 [% # [ WRAPPER accordion_item ] %]
483 [% # [ WRAPPER accordion_heading panel_id = "panel id" ] %]
484 [% # [Clickable panel heading ] %]
486 [% # [ WRAPPER accordion_panel panel_id = "panel id" ] %]
487 [% # [Expanding content panel] %]
492 [% BLOCK accordion %]
493 <div class="panel-group" id="[% panelgroup_id | $raw %]_group" role="tablist" aria-multiselectable="true">
498 [% BLOCK accordion_item %]
499 <div class="panel panel-default">
504 [% BLOCK accordion_heading %]
505 <div class="panel-heading" role="tab" id="[% panel_id | $raw %]_heading">
506 <h2 class="panel-title">
507 <a id="[% panel_id | $raw %]Toggle" href="#[% panel_id | $raw %]_panel" class="collapsed" role="button" data-toggle="collapse" data-parent="#[% panelgroup_id | $raw %]_group" aria-expanded="false" aria-controls="[% panel_id | $raw %]_panel">
511 </div> <!-- /.panel-heading -->
514 [% BLOCK accordion_panel %]
515 <div id="[% panel_id | $raw %]_panel" class="panel-collapse collapse" role="tabpanel" aria-labelledby="[% panel_id | $raw %]_heading">
516 <div class="panel-body">
518 </div> <!-- /.panel-body -->
519 </div> <!-- /.panel-collapse -->