1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Tools › Batch item modification</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="background-job.inc" -->
5 <style type="text/css">
6 #jobpanel,#jobstatus,#jobfailed { display : none; }
7 #jobstatus { margin:.4em; }
8 #jobprogress{ width:200px;height:10px;border:1px solid #666;background:url('/intranet-tmpl/prog/img/progress.png') -300px 0px no-repeat; }
10 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
11 <script type="text/JavaScript" language="JavaScript">
13 $(document).ready(function() {
14 $("#itemst").tablesorter({
16 headers: {0:{sorter: false}}
18 $("#selectallbutton").click(function() {
19 $("#itemst").find("input:checkbox").each(function() {
20 $(this).attr("checked", true);
23 $("#clearallbutton").click(function() {
24 $("#itemst").find("input:checkbox").each(function() {
25 $(this).attr("checked", false);
33 <!-- TMPL_INCLUDE NAME="header.inc" -->
34 <!-- TMPL_INCLUDE NAME="cat-search.inc"-->
36 <div id="breadcrumbs">
37 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
38 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> ›
39 <a href="/cgi-bin/koha/tools/batchMod.pl">Batch item modification</a>
42 <div id="doc3" class="yui-t7">
45 <!-- TMPL_IF NAME="show" --><h1>Batch item modification</h1><!-- TMPL_ELSE --><h1>Batch item modification results</h1><!-- /TMPL_IF -->
46 <!-- TMPL_IF NAME="barcode_not_unique" --><div class="dialog alert"><strong>Error saving item</strong>: Barcode must be unique.</div><!-- /TMPL_IF -->
47 <!-- TMPL_IF NAME="no_next_barcode" --><div class="dialog alert"><strong>Error saving items</strong>: Unable to automatically determine values for barcodes. No item has been inserted.</div><!-- /TMPL_IF -->
48 <!-- TMPL_IF NAME="book_on_loan" --><div class="dialog alert"><strong>Cannot Delete</strong>: item is checked out.</div><!-- /TMPL_IF -->
49 <!-- TMPL_IF NAME="book_reserved" --><div class="dialogalert"><strong>Cannot Delete</strong>: item has a waiting hold.</div><!-- /TMPL_IF -->
51 <!-- TMPL_IF name="notfoundbarcodes" -->
52 <div class="dialog alert"><p>Warning, the following barcodes were not found:</p></div>
53 <table style="margin:auto;">
55 <tr><th>Barcodes not found</th></tr>
58 <!-- TMPL_LOOP name="notfoundbarcodes" -->
59 <tr><td><!-- TMPL_VAR name="barcode" --></td></td>
63 <!-- TMPL_UNLESS name="too_many_items" -->
64 <h4>The following barcodes were found: </h4>
66 <!-- /TMPL_IF --> <!-- /notfoundbarcodes -->
68 <form name="f" action="batchMod.pl" method="post">
69 <input type="hidden" name="op" value="<!-- TMPL_VAR NAME="op" -->" />
70 <input type="hidden" name="uploadedfileid" id="uploadedfileid" value="" />
71 <input type="hidden" name="runinbackground" id="runinbackground" value="" />
72 <input type="hidden" name="completedJobID" id="completedJobID" value="" />
74 <!-- TMPL_IF name="item_loop" -->
75 <!-- TMPL_IF NAME="show" --><div id="toolbar"><a id="selectallbutton" href="#">Select All</a> | <a id="clearallbutton" href="#">Clear All</a></div><!-- TMPL_ELSE --><!-- /TMPL_IF -->
76 <div id="cataloguing_additem_itemlist">
77 <div style="overflow:auto">
81 <!-- TMPL_IF NAME="show" --><th> </th><!-- /TMPL_IF -->
83 <!-- TMPL_LOOP NAME="item_header_loop" -->
84 <th> <!-- TMPL_VAR NAME="header_value" --> </th>
89 <!-- TMPL_LOOP NAME="item_loop" --> <tr> <!-- TMPL_IF NAME="show" --><!-- TMPL_IF Name="nomod"--> <td class="error">Cannot Edit</td><!--TMPL_ELSE--><td><input type="checkbox" name="itemnumber" value="<!--TMPL_VAR Name="itemnumber"-->" id="row<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" /></td><!--/TMPL_IF--><!-- /TMPL_IF -->
90 <td><!-- TMPL_VAR ESCAPE="HTML" NAME="bibinfo" --></td>
91 <!-- TMPL_LOOP NAME="item_value" --> <td><!-- TMPL_VAR ESCAPE="HTML" NAME="field" --></td>
92 <!-- /TMPL_LOOP --> </tr>
98 <!-- /TMPL_IF --><!-- /item_loop -->
100 <!-- TMPL_IF NAME="simple_items_display" -->
101 <p>The following items were modified:</p>
103 <!-- TMPL_LOOP NAME="simple_items_display" -->
105 <a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->"><!-- TMPL_VAR NAME="barcode" --></a>
109 <!-- /TMPL_IF --><!-- /simple_items_display -->
111 <!-- TMPL_IF name="show" -->
113 <!-- TMPL_IF name="too_many_items" -->
114 <p>Too many items (<!-- TMPL_VAR NAME="too_many_items" -->): not displaying each one individually.</p>
115 <!-- TMPL_LOOP name="itemnumbers_hashref" -->
116 <input type="hidden" name="itemnumber" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
118 <!-- /TMPL_IF --><!-- /too_many_items -->
120 <div id="cataloguing_additem_newitem">
122 <fieldset class="rows">
124 <!-- TMPL_LOOP NAME="item" -->
125 <li><div class="subfield_line" style="<!-- TMPL_VAR NAME='visibility' -->" id="subfield<!-- TMPL_VAR NAME='tag' --><!-- TMPL_VAR NAME='subfield' --><!-- TMPL_VAR name="random" -->">
126 <label><!-- TMPL_VAR NAME="subfield" --> -
127 <!-- TMPL_IF name="mandatory" --><b><!-- /TMPL_IF -->
128 <!-- TMPL_VAR NAME="marc_lib" -->
129 <!-- TMPL_IF name="mandatory" --> *</b><!-- /TMPL_IF -->
131 <!-- TMPL_VAR NAME="marc_value" -->
132 <input type="hidden" name="tag" value="<!-- TMPL_VAR NAME="tag" -->" />
133 <input type="hidden" name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->" />
134 <input type="hidden" name="mandatory" value="<!-- TMPL_VAR NAME="mandatory" -->" />
135 <!-- TMPL_IF NAME="repeatable" -->
136 <span class="buttonPlus" onclick="CloneSubfield('subfield<!-- TMPL_VAR NAME='tag' --><!-- TMPL_VAR NAME='subfield' --><!-- TMPL_VAR name="random" -->')">+</span>
143 <fieldset class="action">
145 <div id="jobstatus">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div>
146 <div id="jobfailed"></div>
148 <input type="submit" name="mainformsubmit" value="Save" onclick="return submitBackgroundJob(this.form);" />
149 <a href="/cgi-bin/koha/tools/batchMod.pl" class="cancel" onclick="history.back();return false;">Cancel</a>
152 <!-- TMPL_ELSE --> <!-- // show -->
153 <fieldset class="action">
154 <input type="button" value="<< Back" onclick="window.history.back();return false;">
155 <a href="/cgi-bin/koha/tools/batchMod.pl">Done</a>