Bug fixing batchmod.pl
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / batchMod.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">
11         <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
12         <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
13         <!-- TMPL_IF name="del" -->
14         <a href="/cgi-bin/koha/tools/batchMod.pl?del=1">Delete batches of notices</a>
15         <!-- TMPL_ELSE -->
16         <a href="/cgi-bin/koha/tools/batchMod.pl">Modify batches of notices</a>
17         <!-- /TMPL_IF -->
18 </div>
19
20 <div id="doc3" class="yui-t2">
21     <div id="bd">
22         <div id="yui-main">
23             <div class="yui-b">
24                 <h1>Batch <!-- TMPL_IF name="del" -->deletion<!-- TMPL_ELSE -->modification<!-- /TMPL_IF --></h1>
25                 <!-- TMPL_UNLESS name="op" -->
26                     <div class="yui-g">
27                         <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/batchMod.pl">
28                             <fieldset class="rows">
29                                 <legend>Use a barcode file</legend>
30                                       <ol>
31                                     <li><label for="uploadbarcodes">Barcode file: </label> <input type="file" id="uploadbarcodes" name="uploadbarcodes"></input></li>
32                                 </ol>
33                             </fieldset>
34                             <fieldset class="rows">
35                                 <legend>Or scan items one-by-one</legend>
36                                 <ol>
37                                     <li>
38                                       <label for="barcodelist">Barcodes list (one barcode per line): </label>
39                                       <textarea rows="10" cols="30" name="barcodelist"></textarea>
40                                     </li>
41                                 </ol>
42                             </fieldset>
43                             <input type="hidden" name="op" value="barcodes" />
44                             <!-- TMPL_IF name="del" --><input type="hidden" name="del" value="1" /><!-- /TMPL_IF -->
45                             <fieldset class="action">
46                                 <input type="submit" value="Continue" class="button" />
47                             </fieldset>
48                         </form>
49                     </div>
50                 <!-- /TMPL_UNLESS -->
51                 <!-- TMPL_IF name="actions" -->
52                     <!-- TMPL_IF name="itemsloop" -->
53                         <table>
54                             <tr>
55                                 <th>title</th>
56                                 <th>homebranch</th>
57                                 <th>holdingbranch</th>
58                                 <!-- TMPL_LOOP name="authloop" -->
59                                     <th><!-- TMPL_VAR name="description" --></th>
60                                 <!-- /TMPL_LOOP -->
61                                 <!-- TMPL_IF name="itemtypes" -->
62                                     <th>item type</th>
63                                 <!-- /TMPL_UNLESS -->
64                             </tr>
65                             <!-- TMPL_LOOP name="itemsloop" -->
66                                 <tr>
67                                     <td><!-- TMPL_VAR name="title" --></td>
68                                     <td><!-- TMPL_VAR name="homebranch" --></td>
69                                     <td><!-- TMPL_VAR name="holdingbranch" --></td>
70                                     <!-- TMPL_LOOP name="authloop" -->
71                                         <td><!-- TMPL_VAR name="authvalue" --></td>
72                                     <!-- /TMPL_LOOP -->
73                                     <!-- TMPL_IF name="itemtypes" -->
74                                         <td><!-- TMPL_VAR name="itemtypedesc" --></td>
75                                     <!-- /TMPL_UNLESS -->
76                                 </tr>
77                             <!-- /TMPL_LOOP -->
78                         </table>
79                         <form method="post" action="/cgi-bin/koha/tools/batchMod.pl">
80                             <!-- TMPL_IF name="del" -->
81                             <p>This will delete the selected items.</p>
82                             <input type="hidden" name="del" value="1" />
83                             <!-- TMPL_ELSE -->
84                             <fieldset class="rows">
85                                 <legend>Change items' properties</legend>
86                                 <ol>
87                                     <!-- TMPL_LOOP name="authloop" -->
88                                         <li>
89                                             <label for="<!-- TMPL_VAR name="authcode" -->">Change <!-- TMPL_VAR name="description" --></label>
90                                             <select name="<!-- TMPL_VAR name="authcode" -->" id="<!-- TMPL_VAR name="authcode" -->">
91                                                 <option selected="selected" value="0">No change</option>
92                                                 <!-- TMPL_LOOP name="values" -->
93                                                     <option value="<!-- TMPL_VAR name="authorised_value" -->"><!-- TMPL_VAR NAME="lib" --></option>
94                                                 <!-- /TMPL_LOOP -->
95                                             </select>
96                                         </li>
97                                     <!-- /TMPL_LOOP -->
98                                     <li>
99                                         <label for="homebranch">Change the homebranch</label>
100                                         <select name="homebranch" id="homebranch">
101                                             <option selected="selected" value="0">No change</option>
102                                             <!-- TMPL_LOOP name="branches" -->
103                                                 <option value="<!-- TMPL_VAR name="code" -->"><!-- TMPL_VAR NAME="name" --></option>
104                                             <!-- /TMPL_LOOP -->
105                                         </select>
106                                     </li>
107                                     <li>
108                                         <label for="holdingbranch">Change the holdingbranch</label>
109                                         <select name="holdingbranch" id="holdingbranch">
110                                             <option selected="selected" value="0">No change</option>
111                                             <!-- TMPL_LOOP name="branches" -->
112                                                 <option value="<!-- TMPL_VAR name="code" -->"><!-- TMPL_VAR NAME="name" --></option>
113                                             <!-- /TMPL_LOOP -->
114                                         </select>
115                                     </li>
116                                     <!-- TMPL_IF name="itemtypes" -->
117                                         <li>
118                                             <label for="itemtypes">Change the itemtypes</label>
119                                                 <select name="itemtypes" id="itemtypes">
120                                                     <option selected="selected" value="0">No change</option>
121                                                     <!-- TMPL_LOOP name="itemtypes" -->
122                                                         <option value="<!-- TMPL_VAR name="itemtype" -->"><!-- TMPL_VAR name="description" --></option>
123                                                     <!-- /TMPL_LOOP -->
124                                         </li>
125                                     <!-- /TMPL_IF -->
126                                     <li>
127                                         <label for="itemnotes">Change item note</label>
128                                         <textarea name="itemnotes" id="itemnotes" rows="10" cols="40" ></textarea>
129                                     </li>
130                                 </ol>
131                             </fieldset>
132                             <!-- /TMPL_IF -->
133                             <input type="hidden" name="itemslst" value="<!-- TMPL_VAR name="itemslst" -->"/>
134                             <fieldset class="action">
135                                 <input type="submit" value="Go" class="button" />
136                             </fieldset>
137                         </form>
138                     <!-- TMPL_ELSE -->
139                         <h3>No results!</h3>
140                         <a href="javascript:window.history.back()">Go back</a>
141                     <!-- /TMPL_IF -->
142                 <!-- /TMPL_IF -->
143             </div>
144         </div>
145         <div class="yui-b">
146             <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
147         </div>
148     </div>
149 </div>
150 </body>
151 </html>