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