MT2116 : Addons to the CSV Export
[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_UNLESS name="loop" -->
44         <div class="yui-g">
45     <form method="post" action="/cgi-bin/koha/tools/inventory.pl">
46         <fieldset class="rows">
47             <legend>Use a barcode file</legend>
48          <ol>
49             <li><label for="uploadbarcodes">Barcode file: </label> <input type="file" id="uploadbarcodes" name="uploadbarcodes" /></li>
50             <li><label for="setdate">Set inventory date to:</label> <input type="text" id="setdate" name="setdate" value="<!-- TMPL_VAR name="today" -->" />
51              <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="setdate_button" alt="Show Calendar" />
52             <script type="text/javascript">
53             Calendar.setup(
54             {
55             inputField : "setdate",
56             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
57             button : "setdate_button"
58             }
59             );
60             </script>
61             </li>
62           </ol>
63         </fieldset>
64         <fieldset class="rows">
65         <legend>Select items you want to check</legend>
66         <ol><li>
67         <label for="branchloop">Library</label><select id="branchloop" name="branchcode" style="width:12em;">
68         <!-- TMPL_LOOP NAME="branchloop" -->
69             <!-- TMPL_IF name="selected" -->
70                 <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
71             <!-- TMPL_ELSE -->
72                 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
73             <!-- /TMPL_IF -->
74         <!-- /TMPL_LOOP -->
75         </select>
76         </li>
77         <!-- TMPL_IF NAME="authorised_values" -->
78         <li>
79             <label for="locationloop">Item Location (items.location) is</label> 
80         <select id="locationloop" name="location">
81                 <option value="">Filter location</option>
82         <!-- TMPL_LOOP NAME="authorised_values" -->
83             <!-- TMPL_IF name="selected" -->
84                 <option value="<!-- TMPL_VAR NAME="authorised_value" -->" selected="selected"><!-- TMPL_VAR NAME="lib" --></option>
85             <!-- TMPL_ELSE -->
86                 <option value="<!-- TMPL_VAR NAME="authorised_value" -->"><!-- TMPL_VAR NAME="lib" --></option>
87             <!-- /TMPL_IF -->
88         <!-- /TMPL_LOOP -->
89         </select>        </li>
90         <!-- /TMPL_IF -->
91         <li>
92             <label for="minlocation">Item callnumber between: </label>
93                 <input type="text" name="minlocation" id="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" /> (items.itemcallnumber)  </li>
94            <li><label for="maxlocation">...and: </label>
95                 <input type="text" name="maxlocation" id="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
96         </li>
97         <!-- TMPL_IF name="statuses" -->
98         </ol>
99         </fieldset>
100             <fieldset class="rows">
101             <legend>Item statuses:</legend>
102             <div name="statuses" style="display: block;">
103                   <!-- TMPL_LOOP name="statuses" -->
104                       <!-- TMPL_IF name="values" -->
105                           <fieldset style="float: left; padding: 5px; margin: 5px;text-align:right">
106                               <legend><!-- TMPL_VAR name="fieldname" --></legend>
107                               <ul id="statuses-<!-- TMPL_VAR name="fieldname" -->" style="display: inline;">
108                               <!-- TMPL_LOOP name="values" -->
109                                   <!-- TMPL_IF NAME="lib" --><li>
110                                     <label for="<!-- TMPL_VAR name="id" -->">
111                                       <!-- TMPL_VAR name="lib" -->
112                                     </label>
113                                     <input type="checkbox" name="status-<!-- TMPL_VAR name="fieldname" -->-<!-- TMPL_VAR name="id" -->" id="<!-- TMPL_VAR name="id" -->" />
114                                   </li><!-- /TMPL_IF -->
115                               <!-- /TMPL_LOOP -->
116                               </ul>
117                           </fieldset>
118                       <!-- /TMPL_IF -->
119                   <!-- /TMPL_LOOP -->
120                 </div>
121             </fieldset>
122                 <fieldset class="rows">
123           <ol>
124         <!-- /TMPL_IF -->
125
126         <li><label for="datelastseen">Inventory date:</label>
127             <input type="text" id="datelastseen" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
128             <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="datelastseen_button" alt="Show Calendar" />
129             <script type="text/javascript">
130             Calendar.setup(
131             {
132             inputField : "datelastseen",
133             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
134             button : "datelastseen_button"
135             }
136             );
137             </script>
138         </li>
139         <li><label for="ignoreissued">Skip copies on loan: </label>
140             <!-- TMPL_IF NAME="ignoreissued" -->
141             <input type="checkbox" id="ignoreissued" name="ignoreissued" checked="checked" /></li>
142             <!-- TMPL_ELSE -->
143             <input type="checkbox" id="ignoreissued" name="ignoreissued" /></li>
144             <!-- /TMPL_IF -->
145         <li><label for="pagesize">Show: </label>
146             <input type="text" id="pagesize" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" maxlength="5" size="5" /> items</li>
147           <li><label for="offset">Beginning at offset: </label>
148             <input type="text" id="offset" name="offset" value="<!-- TMPL_VAR NAME="offset" -->" size="5" maxlength="5" />
149         </li>
150         <li>
151            <label for="CSVexport">Export to csv file</label>
152            <input type="checkbox" name="CSVexport" id="CSVexport" />
153         </li>
154         <li>
155             <label for="compareinv2barcd">Compare barcodes list to results</label>
156             <input type="checkbox" name="compareinv2barcd" id="compareinv2barcd" />
157         </li>
158         </ol>
159   </fieldset>
160             <input type="hidden" name="op" value="do_it" />
161             <fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
162     </form>
163         </div>
164         </div>
165         <!--/TMPL_UNLESS-->
166     <!--TMPL_IF Name="Number" --><div class="dialog message"><!--TMPL_VAR Name="Number"--> items modified : datelastseen set to <!--TMPL_VAR Name="date"--></div><!-- /TMPL_IF-->
167     <!--TMPL_IF Name="errorfile" --><div class="dialog alert"><!--TMPL_VAR Name="errorfile"--> can't be opened</div><!-- /TMPL_IF-->
168     <!--TMPL_LOOP Name="errorloop"-->
169         <div class="dialog alert">
170             <!--TMPL_VAR Name="barcode"-->
171             <!--TMPL_IF Name="ERR_BARCODE"-->: barcode not found<!--/TMPL_IF-->
172             <!--TMPL_IF Name="ERR_WTHDRAWN"-->: item withdrawn<!--/TMPL_IF-->
173             <!--TMPL_IF Name="ERR_ONLOAN_RET"-->: item was on loan. It was returned before marked as seen<!--/TMPL_IF-->
174             <!--TMPL_IF Name="ERR_ONLOAN_NOT_RET"-->: item was on loan. couldn't be returned.<!--/TMPL_IF-->
175         </div>
176     <!-- /TMPL_LOOP-->
177     <!-- TMPL_IF NAME="loop" -->
178     <form method="post" action="/cgi-bin/koha/tools/inventory.pl" class="checkboxed">
179     <input type="hidden" name="markseen" value="1" />
180     <input type="hidden" name="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" />
181     <input type="hidden" name="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
182     <input type="hidden" name="location" value="<!-- TMPL_VAR NAME="location" -->" />
183     <input type="hidden" name="branchcode" value="<!-- TMPL_VAR NAME="branchcode" -->" />
184     <input type="hidden" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
185     <input type="hidden" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" />
186     <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="offset" -->" />
187         <div style="padding : .3em 0"><a href="#" class="checkall">[Select All]</a> <a href="#" class="clearall">[Clear All]</a></div>
188     <table>
189         <tr>
190             <th>Seen</th>
191             <th>Barcode</th>
192             <th>Title</th>
193             <th>Unseen since</th>
194             <th>Problems</th>
195         </tr>
196     <!-- TMPL_LOOP NAME="loop" -->
197         <tr>
198             <td>
199                 <input type="checkbox" name="SEEN-<!-- TMPL_VAR NAME="itemnumber" -->" value="1" />
200             </td>
201             <td>
202                 <!-- TMPL_VAR NAME="barcode" -->
203             </td>
204             <td>
205                 <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>
206                 <p><!-- TMPL_VAR NAME="author" --></p>
207             </td>
208             <td>
209                 <p><!-- TMPL_VAR name="datelastseen" --></p>
210             </td>
211             <td>
212                  <!-- TMPL_IF name="notfoundbarcode" -->
213                      <p style="background: red;">Not found among barcodes in barcodes file.</p>
214                  <!-- TMPL_ELSIF name="notfoundkoha" -->
215                      <p style="background: red;">Not found in koha.</p>
216                  <!-- TMPL_ELSE -->
217                      <p style="background: green;">None</p>
218                  <!-- /TMPL_IF -->
219             </td>
220         </tr>
221     <!-- /TMPL_LOOP -->
222     </table>
223         <div style="padding : .3em 0"><a href="#" class="checkall">[Select All]</a> <a href="#" class="clearall">[Clear All]</a></div>
224      <input type="submit" id="markseen" value="Mark seen" />
225     </form>
226     <!-- TMPL_IF NAME="offset" -->
227     <form method="post" action="/cgi-bin/koha/tools/inventory.pl">
228         <input type="hidden" name="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" />
229         <input type="hidden" name="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
230         <input type="hidden" name="location" value="<!-- TMPL_VAR NAME="location" -->" />
231         <input type="hidden" name="branchcode" value="<!-- TMPL_VAR NAME="branchcode" -->" />
232         <input type="hidden" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
233         <input type="hidden" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" />
234         <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="prevoffset" -->" />
235         <input type="hidden" name="op" value="do_it" />
236         <input type="submit" value="&lt;&lt; Continue without Marking" class="submit" />
237     </form>
238     <!-- /TMPL_IF -->
239     <!-- TMPL_IF NAME="nextoffset" -->
240     <form method="post">
241         <input type="hidden" name="location" value="<!-- TMPL_VAR NAME="location" -->" />
242         <input type="hidden" name="branchcode" value="<!-- TMPL_VAR NAME="branchcode" -->" />
243         <input type="hidden" name="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" />
244         <input type="hidden" name="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
245         <input type="hidden" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
246         <input type="hidden" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" />
247         <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="nextoffset" -->" />
248         <input type="hidden" name="op" value="do_it" />
249         <input type="submit" value="Continue without Marking &gt;&gt;" class="submit" />
250     </form>
251     </div>
252     <!-- /TMPL_IF -->
253     <!-- /TMPL_IF -->
254 </div>
255 <div class="yui-b">
256 <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
257 </div>
258 </div>
259 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->