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