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 %]
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 hidden>[% 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 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 [% FOREACH aval IN mv.values %]
113 [% IF aval == mv.default %]
114 <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
116 [% IF subfield.IS_LOST_AV && Koha.Preference("ClaimReturnedLostValue") && aval == Koha.Preference("ClaimReturnedLostValue") %]
117 <option disabled="disabled" value="[%- aval | html -%]" title="Return claims must be processed from the patron details page">[%- mv.labels.$aval | html -%]</option>
118 [% ELSIF subfield.IS_LOST_AV && Koha.Preference("BundleLostValue") && aval == Koha.Preference("BundleLostValue") %]
119 <option disabled="disabled" value="[%- aval | html -%]" title="Bundle losses are set at checkin automatically">[%- mv.labels.$aval | html -%]</option>
121 <option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option>
126 [% ELSIF ( mv.type == 'text_auth' ) %]
128 <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" />
130 <input type="text" id="[%- mv.id | html -%]" name="[% kohafield | html %]" class="input_marceditor [% kohafield | html %]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" />
131 [% SET dopop = "Dopop('/cgi-bin/koha/authorities/auth_finder.pl?authtypecode=\"${mv.authtypecode}\"&index=${mv.id}','${mv.id}')" %]
132 <a href="#" class="buttonDot" onclick="[%- dopop | html -%]; return false;" title="Tag editor">...</a>
134 [% ELSIF ( mv.type == 'text_plugin' ) %]
136 <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" />
138 <input type="text" id="[%- mv.id | html -%]" name="[% kohafield | html %]" class="input_marceditor [% kohafield | html %]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" />
139 [% IF ( mv.nopopup ) %]
140 <a href="#" id="buttonDot_[%- mv.id | html -%]" class="[%- mv.class | html -%]" title="No popup">...</a>
142 <a href="#" id="buttonDot_[%- mv.id | html -%]" class="[%- mv.class | html -%]" title="Tag editor">...</a>
144 [% 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 %]
145 [%- mv.javascript | $raw -%]
148 [% ELSIF ( mv.type == 'text' ) %]
150 <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" />
152 <input type="text" id="[%- mv.id | html -%]" name="[% kohafield | html %]" class="input_marceditor [% kohafield | html %]" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" />
154 [% ELSIF ( mv.type == 'textarea' ) %]
156 <textarea id="[%- mv.id | html -%]" name="[% kohafield | html %]" class="input_marceditor [% kohafield | html %]" rows="5" cols="64" readonly="readonly" >[% mv.value | html %]</textarea>
158 <textarea id="[%- mv.id | html -%]" name="[% kohafield | html %]" class="input_marceditor [% kohafield | html %]" rows="5" cols="64" >[% mv.value | html %]</textarea>
162 [% IF subfield.kohafield == 'items.more_subfields_xml' %]
163 <input type="hidden" name="items.more_subfields_xml" value="[% subfield.subfield | html %]" />
165 <input type="hidden" name="tag" value="[% subfield.tag | html %]" />
166 <input type="hidden" name="kohafield" value="[% subfield.kohafield | html %]" /> [%# We should not need that but all item forms are not rewritten yet %]
167 <input type="hidden" name="subfield" value="[% subfield.subfield | html %]" />
168 <input type="hidden" name="mandatory" value="[% subfield.mandatory | html %]" />
169 <input type="hidden" name="important" value="[% subfield.important | html %]" />
172 <span name="regex_fields" style="display: none;">
173 s/<input type="text" name="[% kohafield | html %]_regex_search" class="regex_search" placeholder="regex pattern" />/
174 <input type="text" name="[% kohafield | html %]_regex_replace" class="regex_replace" placeholder="regex replacement" />/
175 <input type="text" name="[% kohafield | html %]_regex_modifiers" class="regex_modifiers" placeholder="ig" size="3" />
179 [% IF add_delete_checkbox %]
180 [% UNLESS ( subfield.mandatory ) %]
181 <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 %]" />
183 <span class="required">Required</span>
186 [% IF ( subfield.mandatory ) %] <span class="required">Required</span>
187 [% ELSIF ( subfield.important ) %] <span class="important">Important</span>
192 [% IF (mv.type == 'text' || mv.type == 'text_plugin' || mv.type == 'textarea' ) %]
193 <a href="#" name="[% kohafield | html %]_field_regex" class="field_regex" id="[% subfield.id | html %]" >RegEx</a>
197 [% IF ( subfield.repeatable ) %]
198 <a href="#" class="buttonPlus" onclick="CloneItemSubfield(this.parentNode.parentNode); return false;">
199 <img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
203 <span class="hint" id="hint[% subfield.tag | html %][% subfield.subfield | html %][% subfield.random | html %]"></span>
211 [% BLOCK items_table_batchmod %]
212 <div class="page-section">
213 [% IF display_columns_selection %][%# Needs js/pages/batchMod.js %]
214 [% IF checkboxes_edit OR checkboxes_delete %]
215 <div class="btn-toolbar selections-toolbar">
216 <a id="selectallbutton" href="#"><i class="fa fa-check"></i> Select all</a> | <a id="clearallbutton" href="#"><i class="fa fa-remove"></i> Clear all</a> | <a id="clearonloanbutton" href="#">Clear on loan</a>
220 <div id="cataloguing_additem_itemlist">
223 <strong>Show/hide columns:</strong>
224 <span class="selected">
225 <input type="checkbox" checked="checked" id="showall" />
226 <label for="showall">Show all columns</label>
229 <input type="checkbox" id="hideall" />
230 <label for="hideall">Hide all columns</label>
233 [% FOREACH header IN item_header_loop %]
234 <span class="selected">
235 <input id="checkheader[% loop.count | html %]" type="checkbox" checked="checked" />
236 <label for="checkheader[% loop.count | html %]">[% header.header_value | html %]</label>
239 </p> <!-- /#selections -->
242 [% SET date_fields = [ 'dateaccessioned', 'onloan', 'datelastseen', 'datelastborrowed', 'replacementpricedate' ] %]
247 [% IF checkboxes_edit OR checkboxes_delete %]
250 <th class="anti-the">Title</th>
251 <th class="holds_count" title="Item holds / Total holds">Holds</th>
252 [% FOREACH item_header IN headers %]
253 [% IF item_header.column_name %]
254 <th data-colname="[% item_header.column_name | html %]">
258 [% item_header.header_value | html %]
264 [% FOREACH item IN items %]
265 [% SET can_be_edited = !item.nomod && !( Koha.Preference('IndependentBranches') && ! logged_in_user && item.homebranch != Branches.GetLoggedInBranchname() ) %]
268 <td>[% item.index + 1 | html %]</td>
269 [% IF checkboxes_edit %]
270 [% UNLESS can_be_edited%]
271 <td class="error">Cannot edit</td>
274 <input type="checkbox" name="itemnumber" value="[% item.itemnumber | html %]" id="row[% item.itemnumber | html %]" checked="checked" data-is-onloan="[% item.is_checked_out | html %]" />
277 [% ELSIF checkboxes_delete %]
278 [% UNLESS can_be_edited %]
279 <td class="error">Cannot delete</td>
281 [% IF item.safe_to_delete %]
282 <td><input type="checkbox" name="itemnumber" value="[% item.itemnumber | html %]" id="row[% item.itemnumber | html %]" checked="checked" /></td>
284 [% SET messages = item.safe_to_delete.messages %]
285 [% FOR m IN messages %]
286 [% SWITCH m.message %]
287 [% CASE "book_on_loan" %][% SET cannot_delete_reason = t("Item is checked out") %]
288 [% CASE "not_same_branch" %][% SET cannot_delete_reason = t("Item does not belong to your library") %]
289 [% CASE "book_reserved" %][% SET cannot_delete_reason = t("Item has a waiting hold") %]
290 [% CASE "linked_analytics" %][% SET cannot_delete_reason = t("Item has linked analytics") %]
291 [% CASE "last_item_for_hold" %][% SET cannot_delete_reason = t("Last item for bibliographic record with biblio-level hold on it") %]
292 [% CASE %][% SET cannot_delete_reason = t("Unknown reason") _ '(' _ m.message _ ')' %]
296 <td><input type="checkbox" name="itemnumber" value="[% item.itemnumber | html %]" id="row[% item.itemnumber | html %]" disabled="disabled" title="[% cannot_delete_reason | html %]"/></td>
302 <label for="row[% item.itemnumber | html %]">
303 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.biblionumber | uri %]">
304 [% item.biblio.title | html %]
306 [% IF ( item.biblio.author ) %], by [% item.biblio.author | html %][% END %]
309 <td class="holds_count">
311 [% IF item.item_holds %]
312 <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 -%]" >
314 <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 -%]" >
318 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% item.biblionumber | uri %]" title="Holds on this record: [% item.holds | html -%]" >
320 <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% item.biblionumber | uri %]" title="No holds on this record" >
322 [% END # /IF item.holds %]
324 [% item.item_holds | html %]/[% item.holds | html %]
326 [% item.holds | html %]
330 [% FOREACH header IN headers %]
331 [% SET attribute = header.attribute %]
332 [% IF header.attribute AND date_fields.grep('^' _ attribute _ '$').size %]
333 <td data-order="[% item.$attribute | html %]">[% item.$attribute | $KohaDates %]</td>
335 <td>[% item.$attribute | html %]</td>
339 [% END # /FOREACH items %]
341 </table> <!-- /#itemst -->