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