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