Tidying. Properly commenting javascript in some search includes. Standardizing markup...
[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="minlocation">Item location between: </label> 
36                 <input type="text" name="minlocation" id="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" /> (items.itemcallnumber)  </li>
37            <li><label for="maxlocation">...and: </label> 
38                 <input type="text" name="maxlocation" id="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
39         </li>
40         <!-- TMPL_IF NAME="authorised_values" -->
41         <li>
42             <label for="locationloop">Item Location (items.location) is</label> 
43         <select id="locationloop" name="location">
44                 <option value="">Filter location</option>
45         <!-- TMPL_LOOP NAME="authorised_values" -->
46             <!-- TMPL_IF name="selected" -->
47                 <option value="<!-- TMPL_VAR NAME='authorised_value' -->" selected="selected"><!-- TMPL_VAR NAME='lib' --></option>
48             <!-- TMPL_ELSE -->
49                 <option value="<!-- TMPL_VAR NAME='authorised_value' -->"><!-- TMPL_VAR NAME='lib' --></option>
50             <!-- /TMPL_IF -->
51         <!-- /TMPL_LOOP -->
52         </select>        </li>
53         <!-- /TMPL_IF -->
54         <li><label for="datelastseen">Not seen since:</label>
55             <input type="text" id="datelastseen" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
56             <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="datelastseen_button" alt="Show Calendar" />
57             <script type="text/javascript">
58             Calendar.setup(
59             {
60             inputField : "datelastseen",
61             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
62             button : "datelastseen_button"
63             }
64             );
65             </script>
66         </li>
67         <li><label for="pagesize">Show: </label>
68             <input type="text" id="pagesize" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" maxlength="5" size="5" /> items</li>
69           <li><label for="offset">Beginning at offset: </label>
70             <input type="text" id="offset" name="offset" value="<!-- TMPL_VAR NAME="offset" -->" size="5" maxlength="5" />
71         </li></ol>
72   </fieldset>
73             <input type="hidden" name="op" value="do_it" />
74             <fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
75     </form>
76         </div>
77         
78         <div class="yui-u">
79     <form name="barcodefile" method="post" action="/cgi-bin/koha/tools/inventory.pl">
80         <fieldset class="rows">
81             <legend>Use a barcode file</legend>
82                         <ol>
83             <li><label for="uploadbarcodes">Barcode file: </label> <input type="file" id="uploadbarcodes" name="uploadbarcodes" /></li>
84             <li><label for="setdate">Set date last seen to:</label> <input type="text" id="setdate" name="setdate" />
85              <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="setdate_button" alt="Show Calendar" />
86             <script type="text/javascript">
87             Calendar.setup(
88             {
89             inputField : "setdate",
90             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
91             button : "setdate_button"
92             }
93             );
94             </script>
95 </li></ol>
96         </fieldset>
97             <fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
98     </form>
99         </div>
100         </div>
101     <!--TMPL_IF Name="Number" --><p><!--TMPL_VAR Name="Number"--> items modified : datelastseen set to <!--TMPL_VAR Name="date"--></p><!-- /TMPL_IF-->
102     <!--TMPL_IF Name="errorfile" --><p class="error"><!--TMPL_VAR Name="errorfile"--> can't be opened</p><!-- /TMPL_IF-->
103     <!--TMPL_LOOP Name="errorloop"-->
104         <p class="error">
105             <!--TMPL_VAR Name="barcode"-->
106             <!--TMPL_IF Name="ERR_BARCODE"-->: barcode not found<!--/TMPL_IF-->
107             <!--TMPL_IF Name="ERR_WTHDRAWN"-->: item withdrawn<!--/TMPL_IF-->
108             <!--TMPL_IF Name="ERR_ONLOAN_RET"-->: item was on loan. It was returned before marked as seen<!--/TMPL_IF-->
109             <!--TMPL_IF Name="ERR_ONLOAN_NOT_RET"-->: item was on loan. couldn't be returned.<!--/TMPL_IF-->
110         </p>
111     <!-- /TMPL_LOOP-->
112     <!-- TMPL_IF NAME="loop" -->
113     <form method="post" action="/cgi-bin/koha/tools/inventory.pl">
114     <input type="hidden" name="markseen" value="1" />
115     <input type="hidden" name="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" />
116     <input type="hidden" name="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
117     <input type="hidden" name="location" value="<!-- TMPL_VAR NAME="location" -->" />
118     <input type="hidden" name="branchcode" value="<!-- TMPL_VAR NAME="branchcode" -->" />
119     <input type="hidden" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
120     <input type="hidden" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" />
121     <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="offset" -->" />
122     <table>
123         <tr>
124             <th>Seen</th>
125             <th>Barcode</th>
126             <th>Title</th>
127             <th>Unseen since</th>
128         </tr>
129     <!-- TMPL_LOOP NAME="loop" -->
130         <tr>
131             <td>
132                 <input type="checkbox" name="SEEN-<!-- TMPL_VAR NAME="itemnumber" -->" value="1" />
133             </td>
134             <td>
135                 <!-- TMPL_VAR NAME="barcode" -->
136             </td>
137             <td>
138                 <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>
139                 <p><!-- TMPL_VAR NAME="author" --></p>
140             </td>
141             <td>
142                 <p><!-- TMPL_VAR name="datelastseen" --></p>
143             </td>
144         </tr>
145     <!-- /TMPL_LOOP -->
146     </table>
147     <input type="submit" value="Mark seen" />
148     </form>
149     <!-- TMPL_IF NAME="offset" -->
150     <form method="post" action="/cgi-bin/koha/tools/inventory.pl">
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="prevoffset" -->" />
158         <input type="submit" value="&lt;&lt;&lt;" class="button" />
159     </form>
160     <!-- /TMPL_IF -->
161     <!-- TMPL_IF NAME="nextoffset" -->
162     <form method="post">
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="minlocation" value="<!-- TMPL_VAR NAME="minlocation" -->" />
166         <input type="hidden" name="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
167         <input type="hidden" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
168         <input type="hidden" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" />
169         <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="nextoffset" -->" />
170         <input type="submit" value="&gt;&gt;&gt;" class="button" />
171     </form>
172     <!-- /TMPL_IF -->
173     <!-- /TMPL_IF -->
174
175 </div>
176 </div>
177 <div class="yui-b">
178 <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
179 </div>
180 </div>
181 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->