Merge remote branch 'kc/new/for-3.4/spelling' into kcmaster
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / batchMod-edit.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Tools &rsaquo; 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; }
9 </style>
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">
12 //<![CDATA[
13          $(document).ready(function() {
14       $("#itemst").tablesorter({
15             widgets : ['zebra'],
16         headers: {0:{sorter: false}}
17     });
18       $("#selectallbutton").click(function() {
19     $("#itemst").find("input:checkbox").each(function() {
20         $(this).attr("checked", true);
21     });
22       });
23       $("#clearallbutton").click(function() {
24     $("#itemst").find("input:checkbox").each(function() {
25         $(this).attr("checked", false);
26     });
27       });
28    });
29 //]]>
30 </script>
31 </head>
32 <body>
33 <!-- TMPL_INCLUDE NAME="header.inc" -->
34 <!-- TMPL_INCLUDE NAME="cat-search.inc"-->
35
36 <div id="breadcrumbs">
37   <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
38   <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
39   <a href="/cgi-bin/koha/tools/batchMod.pl">Batch item modification</a>
40 </div>
41
42 <div id="doc3" class="yui-t7">
43     <div id="bd">
44         <div id="yui-main">
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 -->
50
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;">
54     <thead>
55         <tr><th>Barcodes not found</th></tr>
56     </thead>
57     <tbody>
58         <!-- TMPL_LOOP name="notfoundbarcodes" -->
59       <tr><td><!-- TMPL_VAR name="barcode" --></td></td>
60         <!-- /TMPL_LOOP -->
61     </tbody>
62       </table>
63       <!-- TMPL_UNLESS name="too_many_items" -->
64       <h4>The following barcodes were found: </h4>
65       <!-- /TMPL_UNLESS -->
66   <!-- /TMPL_IF --> <!-- /notfoundbarcodes -->
67
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="" />
73
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">
78         <table id="itemst">
79       <thead>
80     <tr>
81         <!-- TMPL_IF NAME="show" --><th>&nbsp;</th><!-- /TMPL_IF -->
82         <th>Title</th>
83         <!-- TMPL_LOOP NAME="item_header_loop" --> 
84         <th> <!-- TMPL_VAR NAME="header_value" --> </th>
85         <!-- /TMPL_LOOP --> 
86     </tr>
87       </thead>
88       <tbody>
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>
93             <!-- /TMPL_LOOP -->
94       </tbody>
95         </table>
96         </div>
97 </div>
98 <!-- /TMPL_IF --><!-- /item_loop -->
99
100 <!-- TMPL_IF NAME="simple_items_display" -->
101     <p>The following items were modified:</p>
102     <ul>
103     <!-- TMPL_LOOP NAME="simple_items_display" -->
104   <li>
105       <a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->"><!-- TMPL_VAR NAME="barcode" --></a>
106   </li>
107     <!-- /TMPL_LOOP -->
108     </ul>
109 <!-- /TMPL_IF --><!-- /simple_items_display -->
110
111 <!-- TMPL_IF name="show" -->
112
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" -->" />
117     <!-- /TMPL_LOOP -->
118 <!-- /TMPL_IF --><!-- /too_many_items -->
119
120 <div id="cataloguing_additem_newitem">
121         <h2>Edit Items</h2>
122   <fieldset class="rows">
123   <ol>
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 -->
130          </label>
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>
137                 <!-- /TMPL_IF -->
138    
139             </div></li>
140         <!-- /TMPL_LOOP -->
141     </ol>
142     </fieldset>
143     <fieldset class="action">    
144    <div id="jobpanel">
145        <div id="jobstatus">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div>
146        <div id="jobfailed"></div>
147    </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>
150     </fieldset>
151 </div>
152 <!-- TMPL_ELSE --> <!-- // show -->
153 <fieldset class="action">
154   <input type="button" value="&lt;&lt; Back" onclick="window.history.back();return false;">
155   &nbsp; <a href="/cgi-bin/koha/tools/batchMod.pl">Done</a>
156 </fieldset>
157          
158 <!-- /TMPL_IF -->
159 </div>
160     </div>
161 </div>
162 </body>
163 </html>