Partial commit to add Create-Label-Batch-from-Import-Batch
[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.pack.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         <div class="yui-u first">
46     <form method="post" action="/cgi-bin/koha/tools/inventory.pl">
47         <fieldset class="rows">
48         <legend>Select items you want to check</legend>
49         <ol><li>
50         <label for="branchloop">Branch</label><select id="branchloop" name="branchcode">
51         <!-- TMPL_LOOP NAME="branchloop" -->
52             <!-- TMPL_IF name="selected" -->
53                 <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME='branchname' --></option>
54             <!-- TMPL_ELSE -->
55                 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME='branchname' --></option>
56             <!-- /TMPL_IF -->
57         <!-- /TMPL_LOOP -->
58         </select>
59         </li>
60         <li>
61         <label for="itemtype">Item type</label>
62         <select name="itemtype" id="itemtype">
63             <option value="">Any</option>
64         <!-- TMPL_LOOP name="itemtypeloop" -->
65             <option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="description" --></option>
66         <!-- /TMPL_LOOP -->
67         </select>
68         </li>
69         <li>
70             <label for="minlocation">Item location between: </label> 
71                 <input type="text" name="minlocation" id="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" /> (items.itemcallnumber)  </li>
72            <li><label for="maxlocation">...and: </label> 
73                 <input type="text" name="maxlocation" id="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
74         </li>
75         <!-- TMPL_IF NAME="authorised_values" -->
76         <li>
77             <label for="locationloop">Item Location (items.location) is</label> 
78         <select id="locationloop" name="location">
79                 <option value="">Filter location</option>
80         <!-- TMPL_LOOP NAME="authorised_values" -->
81             <!-- TMPL_IF name="selected" -->
82                 <option value="<!-- TMPL_VAR NAME='authorised_value' -->" selected="selected"><!-- TMPL_VAR NAME='lib' --></option>
83             <!-- TMPL_ELSE -->
84                 <option value="<!-- TMPL_VAR NAME='authorised_value' -->"><!-- TMPL_VAR NAME='lib' --></option>
85             <!-- /TMPL_IF -->
86         <!-- /TMPL_LOOP -->
87         </select>        </li>
88         <!-- /TMPL_IF -->
89         <li><label for="datelastseen">Not seen since:</label>
90             <input type="text" id="datelastseen" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
91             <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="datelastseen_button" alt="Show Calendar" />
92             <script type="text/javascript">
93             Calendar.setup(
94             {
95             inputField : "datelastseen",
96             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
97             button : "datelastseen_button"
98             }
99             );
100             </script>
101         </li>
102         <li><label for="pagesize">Show: </label>
103             <input type="text" id="pagesize" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" maxlength="5" size="5" /> items</li>
104           <li><label for="offset">Beginning at offset: </label>
105             <input type="text" id="offset" name="offset" value="<!-- TMPL_VAR NAME="offset" -->" size="5" maxlength="5" />
106         </li></ol>
107   </fieldset>
108             <input type="hidden" name="op" value="do_it" />
109             <fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
110     </form>
111         </div>
112         
113         <div class="yui-u">
114     <form name="barcodefile" method="post" action="/cgi-bin/koha/tools/inventory.pl" enctype="multipart/form-data">
115         <fieldset class="rows">
116             <legend>Use a barcode file</legend>
117                         <ol>
118             <li><label for="uploadbarcodes">Barcode file: </label> <input type="file" id="uploadbarcodes" name="uploadbarcodes" /></li>
119             <li><label for="setdate">Set date last seen to:</label> <input type="text" id="setdate" name="setdate" />
120              <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="setdate_button" alt="Show Calendar" />
121             <script type="text/javascript">
122             Calendar.setup(
123             {
124             inputField : "setdate",
125             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
126             button : "setdate_button"
127             }
128             );
129             </script>
130 </li></ol>
131         </fieldset>
132             <fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
133     </form>
134         </div>
135         </div>
136         <!--/TMPL_UNLESS-->
137     <!--TMPL_IF Name="Number" --><div class="dialog message"><!--TMPL_VAR Name="Number"--> items modified : datelastseen set to <!--TMPL_VAR Name="date"--></div><!-- /TMPL_IF-->
138     <!--TMPL_IF Name="errorfile" --><div class="dialog alert"><!--TMPL_VAR Name="errorfile"--> can't be opened</div><!-- /TMPL_IF-->
139     <!--TMPL_LOOP Name="errorloop"-->
140         <div class="dialog alert">
141             <!--TMPL_VAR Name="barcode"-->
142             <!--TMPL_IF Name="ERR_BARCODE"-->: barcode not found<!--/TMPL_IF-->
143             <!--TMPL_IF Name="ERR_WTHDRAWN"-->: item withdrawn<!--/TMPL_IF-->
144             <!--TMPL_IF Name="ERR_ONLOAN_RET"-->: item was on loan. It was returned before marked as seen<!--/TMPL_IF-->
145             <!--TMPL_IF Name="ERR_ONLOAN_NOT_RET"-->: item was on loan. couldn't be returned.<!--/TMPL_IF-->
146         </div>
147     <!-- /TMPL_LOOP-->
148     <!-- TMPL_IF NAME="loop" -->
149     <form method="post" action="/cgi-bin/koha/tools/inventory.pl" class="checkboxed">
150     <input type="hidden" name="markseen" value="1" />
151     <input type="hidden" name="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" />
152     <input type="hidden" name="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
153     <input type="hidden" name="location" value="<!-- TMPL_VAR NAME="location" -->" />
154     <input type="hidden" name="branchcode" value="<!-- TMPL_VAR NAME="branchcode" -->" />
155     <input type="hidden" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
156     <input type="hidden" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" />
157     <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="offset" -->" />
158         <div style="padding : .3em 0"><a href="#" class="checkall">[Select All]</a> <a href="#" class="clearall">[Clear All]</a></div>
159     <table>
160         <tr>
161             <th>Seen</th>
162             <th>Barcode</th>
163             <th>Title</th>
164             <th>Unseen since</th>
165         </tr>
166     <!-- TMPL_LOOP NAME="loop" -->
167         <tr>
168             <td>
169                 <input type="checkbox" name="SEEN-<!-- TMPL_VAR NAME="itemnumber" -->" value="1" />
170             </td>
171             <td>
172                 <!-- TMPL_VAR NAME="barcode" -->
173             </td>
174             <td>
175                 <p><b><!-- TMPL_VAR NAME="itemcallnumber" --></b> - <a href=# onclick="window.open('/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!--TMPL_VAR Name="biblionumber"-->','Catalogue -- Biblio <!--TMPL_VAR Name="biblionumber"-->','width=800,height=600,toolbar=false');"><!-- TMPL_VAR NAME="title" --></a></p>
176                 <p><!-- TMPL_VAR NAME="author" --></p>
177             </td>
178             <td>
179                 <p><!-- TMPL_VAR name="datelastseen" --></p>
180             </td>
181         </tr>
182     <!-- /TMPL_LOOP -->
183     </table>
184         <div style="padding : .3em 0"><a href="#" class="checkall">[Select All]</a> <a href="#" class="clearall">[Clear All]</a></div>
185      <input type="submit" id="markseen" value="Mark seen" />
186     </form>
187     <!-- TMPL_IF NAME="offset" -->
188     <form method="post" action="/cgi-bin/koha/tools/inventory.pl">
189         <input type="hidden" name="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" />
190         <input type="hidden" name="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
191         <input type="hidden" name="location" value="<!-- TMPL_VAR NAME="location" -->" />
192         <input type="hidden" name="branchcode" value="<!-- TMPL_VAR NAME="branchcode" -->" />
193         <input type="hidden" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
194         <input type="hidden" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" />
195         <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="prevoffset" -->" />
196         <input type="hidden" name="op" value="do_it" />
197         <input type="submit" value="&lt;&lt; Continue without Marking" class="submit" />
198     </form>
199     <!-- /TMPL_IF -->
200     <!-- TMPL_IF NAME="nextoffset" -->
201     <form method="post">
202         <input type="hidden" name="location" value="<!-- TMPL_VAR NAME="location" -->" />
203         <input type="hidden" name="branchcode" value="<!-- TMPL_VAR NAME="branchcode" -->" />
204         <input type="hidden" name="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" />
205         <input type="hidden" name="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
206         <input type="hidden" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
207         <input type="hidden" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" />
208         <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="nextoffset" -->" />
209         <input type="hidden" name="op" value="do_it" />
210         <input type="submit" value="Continue without Marking &gt;&gt;" class="submit" />
211     </form>
212     <!-- /TMPL_IF -->
213     <!-- /TMPL_IF -->
214
215 </div>
216 </div>
217 <div class="yui-b noprint">
218 <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
219 </div>
220 </div>
221 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->