MT 1587 : Fixed creation bug
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / batchMod.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Tools &rsaquo; Inventory</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5 <script type="text/JavaScript" language="JavaScript">
6 //<![CDATA[
7          $(document).ready(function() {
8             $("#itemst").tablesorter();
9          });
10 //]]>
11 </script>
12 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
13 </head>
14 <body>
15 <!-- TMPL_INCLUDE NAME="header.inc" -->
16 <!-- TMPL_INCLUDE NAME="cat-search.inc"-->
17
18 <div id="breadcrumbs">
19         <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
20         <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
21         <!-- TMPL_IF name="del" -->
22         <a href="/cgi-bin/koha/tools/batchMod.pl?del=1">Delete batches of notices</a>
23         <!-- TMPL_ELSE -->
24         <a href="/cgi-bin/koha/tools/batchMod.pl">Modify batches of notices</a>
25         <!-- /TMPL_IF -->
26 </div>
27
28 <div id="doc3" class="yui-t2">
29     <div id="bd">
30         <div id="yui-main">
31             <div class="yui-b">
32                 <h1>Batch <!-- TMPL_IF name="del" -->deletion<!-- TMPL_ELSE -->modification<!-- /TMPL_IF --></h1>
33                 <!-- TMPL_UNLESS name="op" -->
34                         <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/batchMod.pl">
35                             <fieldset class="rows">
36                                 <legend>Use a file</legend>
37                                       <ol>
38                                       <li>
39                                         <label for="barcode_file">Barcodes file</label><input type="radio" name="filecontent" value="barcode_file" id="barcode_file" checked="checked" /><br />
40                                         <label for="itemid_file">Item Id's file</label><input type="radio" name="filecontent" value="itemid_file" id="itemid_file" />
41                                       </li>
42                                     <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile"></input></li>
43                                 </ol>
44                             </fieldset>
45                             <fieldset class="rows">
46                                 <legend>Or scan items one-by-one</legend>
47                                 <ol>
48                                     <li>
49                                       <label for="barcodelist">Barcodes list (one barcode per line): </label>
50                                       <textarea rows="10" cols="30" id="barcodelist" name="barcodelist"></textarea>
51                                     </li>
52                                 </ol>
53                             </fieldset>
54                             <input type="hidden" name="op" value="show" />
55                             <!-- TMPL_IF name="del" --><input type="hidden" name="del" value="1" /><!-- /TMPL_IF -->
56                             <fieldset class="action">
57                                 <input type="submit" value="Continue" class="button" />
58                             </fieldset>
59                         </form>
60                     </div>
61                 <!-- /TMPL_UNLESS -->
62 <!-- TMPL_IF NAME="barcode_not_unique" --><div class="dialog alert"><strong>Error saving item</strong>: Barcode must be unique.</div><!-- /TMPL_IF -->
63 <!-- 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 -->
64 <!-- TMPL_IF NAME="book_on_loan" --><div class="dialog alert"><strong>Cannot Delete</strong>: item is checked out.</div><!-- /TMPL_IF -->
65 <!-- TMPL_IF NAME="book_reserved" --><div class="dialogalert"><strong>Cannot Delete</strong>: item has a waiting hold.</div><!-- /TMPL_IF -->
66
67 <!-- TMPL_IF name="item_loop" -->
68 <form name="f" action="batchMod.pl" method="post">
69 <div id="cataloguing_additem_itemlist">
70         <div style="overflow:auto">
71         <table id="itemst">
72             <thead>
73                 <tr>
74                     <th>&nbsp;</th>
75                     <!-- TMPL_LOOP NAME="item_header_loop" --> 
76                     <th> <!-- TMPL_VAR NAME="header_value" --> </th>
77                     <!-- /TMPL_LOOP --> 
78                 </tr>
79             </thead>
80             <tbody>
81             <!-- TMPL_LOOP NAME="item_loop" --> <tr> <!-- 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-->
82                 <!-- TMPL_LOOP NAME="item_value" --> <td><!-- TMPL_VAR ESCAPE="HTML" NAME="field" --></td> 
83                                 <!-- /TMPL_LOOP --> </tr>
84             <!-- /TMPL_LOOP -->
85             </tbody>
86         </table>
87         </div>
88 </div>
89 <!-- TMPL_IF name="show" -->
90 <div id="cataloguing_additem_newitem">
91      <input type="hidden" name="op" value="<!-- TMPL_VAR NAME="op" -->" />
92     <!-- TMPL_IF name="del" -->
93                             <p>This will delete the selected items.</p>
94                             <input type="hidden" name="del" value="1" />
95     <!-- TMPL_ELSE -->
96         <h2>Edit Items</h2>
97         <fieldset class="rows">
98         <ol>
99         <!-- TMPL_LOOP NAME="item" -->
100                <li><div class="subfield_line" style="<!-- TMPL_VAR NAME='visibility' -->" id="subfield<!-- TMPL_VAR NAME='tag' --><!-- TMPL_VAR NAME='subfield' --><!-- TMPL_VAR name="random" -->">
101                <label><!-- TMPL_VAR NAME="subfield" --> - <!-- TMPL_IF name="mandatory" --><b><!-- /TMPL_IF --><!-- TMPL_VAR NAME="marc_lib" --><!-- TMPL_IF name="mandatory" --> *</b><!-- /TMPL_IF --></label>
102                 <!-- TMPL_VAR NAME="marc_value" -->
103                 <input type="hidden" name="tag"       value="<!-- TMPL_VAR NAME="tag" -->" />
104                 <input type="hidden" name="subfield"  value="<!-- TMPL_VAR NAME="subfield" -->" />
105                 <input type="hidden" name="mandatory" value="<!-- TMPL_VAR NAME="mandatory" -->" />
106                 <!-- TMPL_IF NAME="repeatable" -->
107                     <span class="buttonPlus" onclick="CloneSubfield('subfield<!-- TMPL_VAR NAME='tag' --><!-- TMPL_VAR NAME='subfield' --><!-- TMPL_VAR name="random" -->')">+</span>
108                 <!-- /TMPL_IF -->
109    
110             </div></li>
111         <!-- /TMPL_LOOP -->
112     </ol>
113     </fieldset>
114 <fieldset class="action">    
115     <input type="submit" name="submit" value="Go" />
116 </fieldset>
117 </div>
118     <!-- /TMPL_IF -->   
119            <!-- TMPL_ELSE -->
120                         <h3>No results!</h3>
121                         <a href="javascript:window.history.back()">Go back</a>
122            <!-- /TMPL_IF -->
123
124 </div>
125 </div>
126         <div class="yui-b">
127             <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
128         </div>
129     </div>
130 </div>
131 </body>
132 </html>