MT 2269 : Do not display all the items if there is a large amount of items
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / batchMod-del.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Tools &rsaquo; Batch Deletion of Items</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5 <script type="text/JavaScript" language="JavaScript">
6 //<![CDATA[
7          $(document).ready(function() {
8             $("#itemst").tablesorter();
9          });
10 //]]>
11 </script>
12 </head>
13 <body>
14 <!-- TMPL_INCLUDE NAME="header.inc" -->
15 <!-- TMPL_INCLUDE NAME="cat-search.inc"-->
16
17 <div id="breadcrumbs">
18         <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
19         <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
20         <a href="/cgi-bin/koha/tools/batchMod.pl?del=1">Delete batches of items</a>
21 </div>
22
23 <div id="doc3" class="yui-t2">
24     <div id="bd">
25         <div id="yui-main">
26             <div class="yui-b">
27                 <h1>Batch deletion</h1>
28             <!-- TMPL_IF NAME="barcode_not_unique" --><div class="dialog alert"><strong>Error saving item</strong>: Barcode must be unique.</div><!-- /TMPL_IF -->
29             <!-- TMPL_IF NAME="no_next_barcode" --><div class="dialog alert"><strong>Error saving items</strong>: Unable to automatically determine values for barcodes. No item has been inserted.</div><!-- /TMPL_IF -->
30             <!-- TMPL_IF NAME="book_on_loan" --><div class="dialog alert"><strong>Cannot Delete</strong>: item is checked out.</div><!-- /TMPL_IF -->
31             <!-- TMPL_IF NAME="book_reserved" --><div class="dialogalert"><strong>Cannot Delete</strong>: item has a waiting hold.</div><!-- /TMPL_IF -->
32
33     <!-- TMPL_UNLESS name="action" -->
34
35     <!-- TMPL_IF name="notfoundbarcodes" -->
36             <div class="error"><p>Warning, the following barcodes were not found :</p>
37             <table>
38                 <thead>
39                     <tr>
40                         <th>Barcode</th>
41                     </tr>
42                 </thead>
43                 <tbody>
44                     <!-- TMPL_LOOP name="notfoundbarcodes" -->
45                         <tr><td><!-- TMPL_VAR name="barcode" --></td></tr>
46                     <!-- /TMPL_LOOP -->
47                 </tbody>
48             </table></div>
49             <!-- TMPL_UNLESS name="too_many_items" -->
50             <p>The following barcodes were found : </p>
51             <!-- /TMPL_UNLESS -->
52         <!-- /TMPL_IF -->
53
54
55 <form name="f" action="batchMod.pl" method="post">
56 <!-- TMPL_IF name="item_loop" -->
57         <div id="cataloguing_additem_itemlist">
58                 <div style="overflow:auto">
59                 <table id="itemst">
60                     <thead>
61                         <tr>
62                             <th>&nbsp;</th>
63                             <!-- TMPL_LOOP NAME="item_header_loop" --> 
64                             <th> <!-- TMPL_VAR NAME="header_value" --> </th>
65                             <!-- /TMPL_LOOP --> 
66                         </tr>
67                     </thead>
68                     <tbody>
69                     <!-- TMPL_LOOP NAME="item_loop" --> <tr> <!-- TMPL_IF Name="nomod"--> <td class="error">Cannot Edit</td><!--TMPL_ELSE--><td><input type="checkbox" name="itemnumber" value="<!--TMPL_VAR Name="itemnumber"-->" id="row<!-- TMPL_VAR NAME="itemnumber" -->" checked="checked" /></td><!--/TMPL_IF-->
70                         <!-- TMPL_LOOP NAME="item_value" --> <td><!-- TMPL_VAR ESCAPE="HTML" NAME="field" --></td> 
71                                         <!-- /TMPL_LOOP --> </tr>
72                     <!-- /TMPL_LOOP -->
73                     </tbody>
74                 </table>
75                 </div>
76         </div>
77 <!-- /TMPL_IF -->
78
79 <!-- TMPL_IF NAME="simple_items_display" -->
80     <ul>
81     <!-- TMPL_LOOP NAME="simple_items_display" -->
82         <li>
83             <a href="<!-- TMPL_VAR NAME="itemnumber" -->"><!-- TMPL_VAR NAME="barcode" --></a>
84         </li>
85     <!-- /TMPL_LOOP -->
86     </ul>
87 <!-- /TMPL_IF -->
88
89
90
91         <!-- TMPL_IF name="show" -->
92
93 <!-- TMPL_IF name="too_many_items" -->
94     <p>Too many items (<!-- TMPL_VAR NAME="too_many_items" -->): not displaying each one individually.</p>
95     <!-- TMPL_LOOP name="itemnumbers_hashref" -->
96         <input type="hidden" name="itemnumber" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
97     <!-- /TMPL_LOOP -->
98 <!-- /TMPL_IF -->   
99
100
101                 <div id="cataloguing_additem_newitem">
102              <input type="hidden" name="op" value="<!-- TMPL_VAR NAME="op" -->" />
103              <p>This will delete <!-- TMPL_IF NAME="too_many_items" -->all the<!-- TMPL_ELSE -->the selected<!-- /TMPL_IF --> items.</p>
104              <input type="hidden" name="del" value="1" />
105              <fieldset class="action">    
106                 <input type="submit" name="submit" value="Go" />
107             </fieldset>
108         </div>
109         <!-- /TMPL_IF -->
110     <!-- /TMPL_UNLESS -->
111
112 <!-- TMPL_IF name="action" -->
113         <p><!-- TMPL_VAR NAME="deleted_items" --> item(s) deleted.</p>
114         <!-- TMPL_IF NAME="not_deleted_items" -->
115             <p><!-- TMPL_VAR NAME="not_deleted_items" --> item(s) could not be deleted : <!-- TMPL_LOOP NAME="not_deleted_itemnumbers" --><!-- TMPL_VAR NAME="itemnumber" --><!-- /TMPL_LOOP --></p>
116         <!-- /TMPL_IF -->
117         <!-- TMPL_IF NAME="not_deleted_loop" -->
118         <table id="itemst">
119                 <thead>
120                     <tr>
121                         <th>Itemnumber</th>
122                         <th>Barcode</th>
123                         <th>Reason</th>
124                     </tr>
125                 </thead>
126                 <tbody>
127                     <!-- TMPL_LOOP name="not_deleted_loop" -->
128                         <tr>
129                             <td><!-- TMPL_VAR name="itemnumber" --></td>
130                             <td><!-- TMPL_VAR name="barcode" --></td>
131                             <td><!-- TMPL_IF name="book_on_loan" -->Item is checked out<!-- TMPL_ELSIF name="book_reserved" -->Item has a waiting hold<!-- /TMPL_IF --></td>
132                         </tr>
133                     <!-- /TMPL_LOOP -->
134                 </tbody>
135             </table>
136
137         <!-- /TMPL_IF -->
138
139         <p><a href="/cgi-bin/koha/tools/batchMod.pl?del=1">Back</a></p>
140 <!-- /TMPL_IF -->
141
142 </div>
143 </div>
144         <div class="yui-b">
145             <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
146         </div>
147     </div>
148 </div>
149 </body>
150 </html>