bug 4442 rename batch edit tools
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / inventory.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 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
5 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
6 <script type="text/javascript">
7 //<![CDATA[
8 $(document).ready(function(){
9         $(".checkall").click(function(){
10                 $(".checkboxed").checkCheckboxes();
11                 return false;
12                 });
13         $(".clearall").click(function(){
14                 $(".checkboxed").unCheckCheckboxes();
15                 return false;
16             });
17 <!-- TMPL_IF NAME="offset" -->$("#markseen").before("<input type=\"submit\" value=\"&lt;&lt; Mark Seen and Continue\" id=\"markback\" />");<!-- /TMPL_IF -->
18 <!-- TMPL_IF NAME="nextoffset" -->$("#markseen").after("<input type=\"submit\" id=\"marknext\" value=\"Mark Seen and Continue &gt;&gt;\" />");<!-- /TMPL_IF -->
19         $("#markback").click(function(){
20                 $(".checkboxed").find("input").filter("[name=offset]").attr("value","<!-- TMPL_VAR NAME="prevoffset" -->");
21                 return true;
22         });
23         $("#marknext").click(function(){
24                 $(".checkboxed").find("input").filter("[name=offset]").attr("value","<!-- TMPL_VAR NAME="nextoffset" -->");
25                 return true;
26         });
27         });
28 //]]>
29 </script>
30 </head>
31 <body>
32 <!-- TMPL_INCLUDE NAME="header.inc" -->
33 <!-- TMPL_INCLUDE NAME="cat-search.inc"-->
34
35 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <!-- TMPL_IF NAME="loop" --><a href="/cgi-bin/koha/tools/inventory.pl">Inventory</a> &rsaquo; Results<!-- TMPL_ELSE -->Inventory<!-- /TMPL_IF --></div>
36
37 <div id="doc3" class="yui-t2">
38    
39    <div id="bd">
40         <div id="yui-main">
41         <div class="yui-b">
42     <h1>Inventory/Stocktaking</h1>
43     <!--TMPL_IF Name="Number" --><div class="dialog message"><!--TMPL_VAR Name="Number"--> items modified : datelastseen set to <!--TMPL_VAR Name="date"--></div><!-- /TMPL_IF-->
44     <!--TMPL_IF Name="errorfile" --><div class="dialog alert"><!--TMPL_VAR Name="errorfile"--> can't be opened</div><!-- /TMPL_IF-->
45     <!--TMPL_LOOP Name="errorloop"-->
46         <div class="dialog alert">
47             <!--TMPL_VAR Name="barcode"-->
48             <!--TMPL_IF Name="ERR_BARCODE"-->: barcode not found<!--/TMPL_IF-->
49             <!--TMPL_IF Name="ERR_WTHDRAWN"-->: item withdrawn<!--/TMPL_IF-->
50             <!--TMPL_IF Name="ERR_ONLOAN_RET"-->: item was on loan. It was returned before marked as seen<!--/TMPL_IF-->
51             <!--TMPL_IF Name="ERR_ONLOAN_NOT_RET"-->: item was on loan. couldn't be returned.<!--/TMPL_IF-->
52         </div>
53     <!-- /TMPL_LOOP-->
54         <!-- TMPL_UNLESS name="loop" -->
55         <div class="yui-g">
56     <form method="post" action="/cgi-bin/koha/tools/inventory.pl" enctype="multipart/form-data">
57         <fieldset class="rows">
58             <legend>Use a barcode file</legend>
59          <ol>
60             <li><label for="uploadbarcodes">Barcode file: </label> <input type="file" id="uploadbarcodes" name="uploadbarcodes" /></li>
61             <li><label for="setdate">Set inventory date to:</label> <input type="text" id="setdate" name="setdate" value="<!-- TMPL_VAR name="today" -->" />
62              <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="setdate_button" alt="Show Calendar" />
63             <script type="text/javascript">
64             Calendar.setup(
65             {
66             inputField : "setdate",
67             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
68             button : "setdate_button"
69             }
70             );
71             </script>
72                         <div class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></div>
73             </li>
74           </ol>
75         </fieldset>
76         <fieldset class="rows">
77         <legend>Select items you want to check</legend>
78         <ol><li>
79         <label for="branchloop">Library</label><select id="branchloop" name="branchcode" style="width:12em;">
80             <option value="">All Locations</option>
81         <!-- TMPL_LOOP NAME="branchloop" -->
82             <!-- TMPL_IF name="selected" -->
83                 <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
84             <!-- TMPL_ELSE -->
85                 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
86             <!-- /TMPL_IF -->
87         <!-- /TMPL_LOOP -->
88         </select>
89         </li>
90         <!-- TMPL_IF NAME="authorised_values" -->
91         <li>
92             <label for="locationloop">Item Location (items.location) is</label> 
93         <select id="locationloop" name="location">
94                 <option value="">Filter location</option>
95         <!-- TMPL_LOOP NAME="authorised_values" -->
96             <!-- TMPL_IF name="selected" -->
97                 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" selected="selected"><!-- TMPL_VAR NAME="lib" --></option>
98             <!-- TMPL_ELSE -->
99                 <option value="<!-- TMPL_VAR NAME="authorised_value" -->"><!-- TMPL_VAR NAME="lib" --></option>
100             <!-- /TMPL_IF -->
101         <!-- /TMPL_LOOP -->
102         </select>        </li>
103         <!-- /TMPL_IF -->
104         <li>
105             <label for="minlocation">Item callnumber between: </label>
106                 <input type="text" name="minlocation" id="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" /> (items.itemcallnumber)  </li>
107            <li><label for="maxlocation">...and: </label>
108                 <input type="text" name="maxlocation" id="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
109         </li>
110         <!-- TMPL_IF name="statuses" -->
111         </ol>
112         </fieldset>
113             <fieldset class="rows">
114             <legend>Item statuses:</legend>
115             <div name="statuses" style="display: block;">
116                   <!-- TMPL_LOOP name="statuses" -->
117                       <!-- TMPL_IF name="values" -->
118                           <fieldset style="float: left; padding: 5px; margin: 5px;text-align:right">
119                               <legend><!-- TMPL_VAR name="fieldname" --></legend>
120                               <ul id="statuses-<!-- TMPL_VAR name="fieldname" -->" style="display: inline;">
121                               <!-- TMPL_LOOP name="values" -->
122                                   <!-- TMPL_IF NAME="lib" --><li>
123                                     <label for="<!-- TMPL_VAR name="id" -->">
124                                       <!-- TMPL_VAR name="lib" -->
125                                     </label>
126                                     <input type="checkbox" name="status-<!-- TMPL_VAR name="fieldname" -->-<!-- TMPL_VAR name="id" -->" id="<!-- TMPL_VAR name="id" -->" />
127                                   </li><!-- /TMPL_IF -->
128                               <!-- /TMPL_LOOP -->
129                               </ul>
130                           </fieldset>
131                       <!-- /TMPL_IF -->
132                   <!-- /TMPL_LOOP -->
133                 </div>
134             </fieldset>
135                 <fieldset class="rows">
136           <ol>
137         <!-- /TMPL_IF -->
138
139         <li><label for="datelastseen">Inventory date:</label>
140             <input type="text" id="datelastseen" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
141             <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="datelastseen_button" alt="Show Calendar" />
142             <script type="text/javascript">
143             Calendar.setup(
144             {
145             inputField : "datelastseen",
146             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
147             button : "datelastseen_button"
148             }
149             );
150             </script>
151                         <div class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></div>
152         </li>
153         <li><label for="ignoreissued">Skip copies on loan: </label>
154             <!-- TMPL_IF NAME="ignoreissued" -->
155             <input type="checkbox" id="ignoreissued" name="ignoreissued" checked="checked" /></li>
156             <!-- TMPL_ELSE -->
157             <input type="checkbox" id="ignoreissued" name="ignoreissued" /></li>
158             <!-- /TMPL_IF -->
159         <li><label for="pagesize">Show: </label>
160             <input type="text" id="pagesize" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" maxlength="5" size="5" /> items</li>
161           <li><label for="offset">Beginning at offset: </label>
162             <input type="text" id="offset" name="offset" value="<!-- TMPL_VAR NAME="offset" -->" size="5" maxlength="5" />
163         </li>
164         <li>
165            <label for="CSVexport">Export to csv file</label>
166            <input type="checkbox" name="CSVexport" id="CSVexport" />
167         </li>
168         <li>
169             <label for="compareinv2barcd">Compare barcodes list to results</label>
170             <input type="checkbox" name="compareinv2barcd" id="compareinv2barcd" />
171         </li>
172         </ol>
173   </fieldset>
174             <input type="hidden" name="op" value="do_it" />
175             <fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
176     </form>
177         </div>
178         </div>
179         <!--/TMPL_UNLESS-->
180     <!-- TMPL_IF NAME="loop" -->
181     <form method="post" action="/cgi-bin/koha/tools/inventory.pl" class="checkboxed">
182     <input type="hidden" name="markseen" value="1" />
183     <input type="hidden" name="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" />
184     <input type="hidden" name="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
185     <input type="hidden" name="location" value="<!-- TMPL_VAR NAME="location" -->" />
186     <input type="hidden" name="branchcode" value="<!-- TMPL_VAR NAME="branchcode" -->" />
187     <input type="hidden" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
188     <input type="hidden" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" />
189     <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="offset" -->" />
190         <div style="padding : .3em 0"><a href="#" class="checkall">[Select All]</a> <a href="#" class="clearall">[Clear All]</a></div>
191     <table>
192         <tr>
193             <th>Seen</th>
194             <th>Barcode</th>
195             <th>Title</th>
196             <th>Unseen since</th>
197             <th>Problems</th>
198         </tr>
199     <!-- TMPL_LOOP NAME="loop" -->
200         <tr>
201             <td>
202                 <input type="checkbox" name="SEEN-<!-- TMPL_VAR NAME="itemnumber" -->" value="1" />
203             </td>
204             <td>
205                 <!-- TMPL_VAR NAME="barcode" -->
206             </td>
207             <td>
208                 <p><b><!-- TMPL_VAR NAME="itemcallnumber" --></b> - <a href="#" onclick="window.open('/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!--TMPL_VAR Name="biblionumber"-->','marcview','width=800,height=600,toolbar=0,scrollbars=1');"><!-- TMPL_VAR NAME="title" escape="html" --></a></p>
209                 <p><!-- TMPL_VAR NAME="author" --></p>
210             </td>
211             <td>
212                 <p><!-- TMPL_VAR name="datelastseen" --></p>
213             </td>
214             <td>
215                  <!-- TMPL_IF name="notfoundbarcode" -->
216                      <p style="background: red;">Not found among barcodes in barcodes file.</p>
217                  <!-- TMPL_ELSIF name="notfoundkoha" -->
218                      <p style="background: red;">Not found in koha.</p>
219                  <!-- TMPL_ELSE -->
220                      <p style="background: green;">None</p>
221                  <!-- /TMPL_IF -->
222             </td>
223         </tr>
224     <!-- /TMPL_LOOP -->
225     </table>
226         <div style="padding : .3em 0"><a href="#" class="checkall">[Select All]</a> <a href="#" class="clearall">[Clear All]</a></div>
227      <input type="submit" id="markseen" value="Mark seen" />
228     </form>
229     <!-- TMPL_IF NAME="offset" -->
230     <form method="post" action="/cgi-bin/koha/tools/inventory.pl">
231         <input type="hidden" name="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" />
232         <input type="hidden" name="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
233         <input type="hidden" name="location" value="<!-- TMPL_VAR NAME="location" -->" />
234         <input type="hidden" name="branchcode" value="<!-- TMPL_VAR NAME="branchcode" -->" />
235         <input type="hidden" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
236         <input type="hidden" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" />
237         <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="prevoffset" -->" />
238         <input type="hidden" name="op" value="do_it" />
239         <input type="submit" value="&lt;&lt; Continue without Marking" class="submit" />
240     </form>
241     <!-- /TMPL_IF -->
242     <!-- TMPL_IF NAME="nextoffset" -->
243     <form method="post">
244         <input type="hidden" name="location" value="<!-- TMPL_VAR NAME="location" -->" />
245         <input type="hidden" name="branchcode" value="<!-- TMPL_VAR NAME="branchcode" -->" />
246         <input type="hidden" name="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" />
247         <input type="hidden" name="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
248         <input type="hidden" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
249         <input type="hidden" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" />
250         <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="nextoffset" -->" />
251         <input type="hidden" name="op" value="do_it" />
252         <input type="submit" value="Continue without Marking &gt;&gt;" class="submit" />
253     </form>
254     </div>
255     <!-- /TMPL_IF -->
256     <!-- /TMPL_IF -->
257 </div>
258 <div class="yui-b">
259 <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
260 </div>
261 </div>
262 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->