adding some missing _() for translator
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / virtualshelves / shelves.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; <!-- TMPL_IF NAME="viewshelf" -->Lists &rsaquo; Contents of <!-- TMPL_VAR NAME="shelfname" --><!-- TMPL_ELSE -->Lists<!-- /TMPL_IF --><!-- TMPL_IF NAME="shelves" --> &rsaquo; Create New List<!-- /TMPL_IF --><!-- TMPL_IF NAME="edit" --> &rsaquo; Edit List <!-- TMPL_VAR name="shelfname"--><!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.pack.js"></script>
5 <script type="text/javascript">
6 //<![CDATA[ 
7
8 $(document).ready(function(){
9     $("th.checkall").html("<a href=\"/cgi-bin/koha/shelves.pl\" id=\"CheckAll\"><img src=\"<!-- TMPL_VAR NAME="themelang" -->/../img/checkall.gif\" height=\"18\" width=\"18\" alt=\"Check All\" title=\"Check All\" border=\"0\" /></a>");
10     $("#CheckAll").click(function(){
11         $(".checkboxed").checkCheckboxes();
12         $("#CheckAll img").attr("src","<!-- TMPL_VAR NAME="themelang" -->/../img/checknone.gif").attr("title","Check None").attr("alt","Check None");
13         $("#CheckAll").attr("id","CheckNone");
14         return false;
15     });
16     $("#CheckNone").click(function(){
17         $(".checkboxed").unCheckCheckboxes();
18         $("#CheckNone img").attr("src","<!-- TMPL_VAR NAME="themelang" -->/../img/checkall.gif").attr("title","Check All").attr("alt","Check All");
19         $("#CheckNone").attr("id","CheckAll");
20         return false;
21     });
22 });
23
24 function confirmDelete(s,n){
25         if (window.confirm(s)) {
26             location.href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1&amp;DEL-<!-- TMPL_VAR NAME="shelfnumber" -->=1"; } else { 
27         return false;
28         }
29     }
30     /**
31      * this function checks all checkbox 
32      * or uncheck all if there are already checked.
33      */
34     function CheckAll(){
35         var checkboxes = document.getElementsByTagName('input');
36         var nbCheckbox = checkboxes.length;
37         var check = areAllChecked();
38         check = !check;
39         for(var i=0;i<nbCheckbox;i++){
40             if(checkboxes[i].getAttribute('type') == "checkbox" ){
41                 checkboxes[i].checked = check;
42             }
43         }
44     }
45     /**
46      * this function return true if all checkbox are checked
47      */
48     function areAllChecked(){
49         var checkboxes = document.getElementsByTagName('input');
50         var nbCheckbox = checkboxes.length;
51         for(var i=0;i<nbCheckbox;i++){
52             if(checkboxes[i].getAttribute('type') == "checkbox" ){
53                 if(checkboxes[i].checked == 0){
54                     return false;
55                 }
56             }
57         }
58         return true;
59     }
60     //]]>
61 </script>
62 </head>
63 <body>
64 <!-- TMPL_INCLUDE NAME="header.inc" -->
65 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
66
67 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <!-- TMPL_IF NAME="viewshelf" --><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a> &rsaquo; Contents of <i><!-- TMPL_VAR NAME="shelfname" --></i><!-- TMPL_ELSE --><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a><!-- /TMPL_IF --><!-- TMPL_IF NAME="shelves" --> &rsaquo; Create New List<!-- /TMPL_IF --><!-- TMPL_IF NAME="edit" --> &rsaquo; Edit List<i><!-- TMPL_VAR name="shelfname"--></i><!-- /TMPL_IF --></div>
68
69 <div id="doc" class="yui-t7">
70    
71    <div id="bd">
72     <div id="yui-main">
73     <div class="yui-g">
74         <!-- TMPL_INCLUDE NAME="virtualshelves-toolbar.inc" -->
75     </div>
76     
77 <!-- TMPL_IF NAME="viewshelf" -->
78 <div class="yui-g">
79     <!-- TMPL_IF NAME="itemsloop" -->
80
81 <form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post" class="checkboxed">
82         <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
83         <input type="hidden" name="modifyshelfcontents" value="1" />
84 <fieldset>
85 <legend>Contents of <i><!-- TMPL_VAR NAME="shelfname" --></i></legend>
86     <table>
87             <tr>
88                 <th class="checkall">
89                    &nbsp;
90                 </th>
91                 <th>&nbsp;</th>
92                 <th>Title</th>
93                 <th>Call No.</th>
94                 <th>&nbsp;</th>
95             </tr>
96         <!-- TMPL_LOOP NAME="itemsloop" -->
97             <!-- TMPL_IF name="color" -->
98             <tr class="highlight">
99             <!-- TMPL_ELSE -->
100             <tr>
101             <!-- /TMPL_IF -->
102                     <td>
103                         <input type="checkbox" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->" />
104                     </td>
105                     <td>
106                         <img src="<!-- TMPL_VAR NAME="themelang" -->/../img/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="itemtype" -->" title="<!-- TMPL_VAR NAME="itemtype" -->" />
107                     </td>
108                     <td> <p>
109                 <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
110                             <a class="title" href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
111                                 <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
112                             </a>
113                         <!-- TMPL_ELSE -->
114                             <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
115                                 <a class="title" href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
116                                     <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
117                                 </a>
118                             <!-- TMPL_ELSE -->
119                                 <a class="title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
120                                     <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
121                                 </a>
122                             <!-- /TMPL_IF -->
123                         <!-- /TMPL_IF -->
124                     </p>
125                     <p><!-- TMPL_VAR NAME="author" --></p></td>
126                     <td><!-- TMPL_VAR NAME="classification" --></td>
127                     <td><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Holds</a></td>
128         </tr>
129         <!-- /TMPL_LOOP --><!-- /itemsloop -->
130     </table>
131             </fieldset>
132         <fieldset class="action">
133         <!-- TMPL_IF name="manageshelf" -->
134         <!-- TMPL_IF NAME="itemsloop" -->
135             <input type="submit" value="Remove selected Items" onclick="return confirm(_('Are you sure you want to remove these items from the shelf?'))" />
136         <!-- /TMPL_IF --><!-- /itemsloop -->
137         <!-- /TMPL_IF --><!-- /manageshelf -->
138         </fieldset>
139 </form>
140         <!-- /TMPL_IF --><!-- /viewshelf -->
141   </div>
142   <div class="yui-g">
143     <!-- TMPL_IF name="manageshelf" -->
144     
145 <form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post">
146 <fieldset class="brief">
147     <legend>Add an item to <i><!-- TMPL_VAR NAME="shelfname" --></i></legend>
148         <ol>
149             <li>
150                 <label for="addbarcode">Barcode:</label>
151             
152                 <input name="addbarcode" type="text" id="addbarcode" size="14" maxlength="14" />
153                 <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
154                 <input type="hidden" name="modifyshelfcontents" value="1" />
155                 <input type="submit" value="Add" />
156             </li>
157         </ol>
158     </fieldset>
159 </form>
160 </div>
161 <!-- /TMPL_IF -->
162 <!-- /TMPL_IF -->
163
164     <!-- TMPL_IF NAME="shelves" -->
165 <div class="yui-ge">
166     <div class="yui-u first">
167         <!-- TMPL_IF NAME="already" --><div class="dialog alert">A List with that name already exists!</div><!-- /TMPL_IF -->
168         <!-- TMPL_IF NAME="status1" -->
169             <div class="dialog alert"><!-- TMPL_VAR NAME="string1" --></div>
170         <!-- /TMPL_IF -->
171         <!-- TMPL_LOOP NAME="paramsloop" -->
172             <!-- TMPL_IF NAME="status" -->
173                 <div class="dialog alert"><!-- TMPL_VAR NAME="string" --></div>
174             <!-- /TMPL_IF -->
175         <!-- /TMPL_LOOP -->
176     <form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl">
177         <input type="hidden" name="shelves" value="1" />
178         <fieldset class="rows">
179         <legend>Create a new List</legend>
180         <ol>
181         <li><label for="addshelf">Name: </label> <input id="addshelf" type="text" name="addshelf" size="25" /></li>
182         <li><span class="label">Owner: </span><input type="hidden" name="owner" id="owner" value="<!-- TMPL_VAR name="loggedinuser" -->" /><!-- TMPL_VAR name="loggedinusername" --></li>
183         <li><label for="category">Category: </label><select name="category" id="category">
184                                     <option value="1">Private</option>
185                                     <option value="2">Public</option>
186                                     <option value="3">Free</option></select></li></ol></fieldset>
187  
188      <fieldset class="action"><input type="submit" value="Save" /><a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="cancel">Cancel</a></fieldset>
189         </form>
190                      
191
192     </div>
193     <div class="yui-u">
194         <div class="help"><ul>
195             <li>A <b>Private</b> List is managed by you and can be seen only by you.</li>
196             <li> A <b>Public</b> List can be seen by everybody, but managed only by you.</li>
197             <li> An <b>Open</b> List can be seen and managed by everybody.</li>
198         </ul></div>
199     </div>
200 </div>
201     <!-- /TMPL_IF -->
202    
203     <!-- TMPL_IF name="edit" -->
204     <div class="yui-ge">
205     <div class="yui-u first">
206     <!-- TMPL_IF NAME="already" --><div class="dialog alert">A List with that name already exists!</div><!-- /TMPL_IF -->
207         <form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl">
208             <input type="hidden" name="op" value="modifsave" />
209             <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR name="shelfnumber" -->" />
210 <fieldset class="rows"><legend>Edit List <i><!-- TMPL_VAR name="shelfname"--></i></legend>
211             <ol>
212             <li><label for="shelfname">Name: </label><input type="text" id="shelfname" name="shelfname" size="25" value="<!-- TMPL_VAR name="shelfname"-->" /></li>
213             <li><label for="owner">Owner: </label><input type="hidden" id="owner" name="owner" value="<!-- TMPL_VAR NAME="loggedinuser" -->" /><!-- TMPL_VAR NAME="loggedinusername" --></li>
214             <li><label for="category">Category: </label><select id="category" name="category">
215                     <!-- TMPL_IF name="category1" -->
216                         <option value="1" selected="selected">Private</option>
217                     <!-- TMPL_ELSE -->
218                         <option value="1">Private</option>
219                     <!-- /TMPL_IF -->
220                     <!-- TMPL_IF name="category2" -->
221                         <option value="2" selected="selected">Public</option>
222                     <!-- TMPL_ELSE -->
223                         <option value="2">Public</option>
224                     <!-- /TMPL_IF -->
225                     <!-- TMPL_IF NAME="category3" -->
226                         <option value="3" selected="selected">Open</option>
227                     <!-- TMPL_ELSE -->
228                         <option value="3">Open</option>
229                     <!-- /TMPL_IF -->
230                 </select></li>
231             </ol></fieldset>
232             <fieldset class="action"><input type="submit" value="Save changes" /><a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="cancel">Cancel</a></fieldset>
233             
234         </form>
235         </div>
236         <div class="yui-u">
237             <ul><li>A <strong>Private</strong> List is managed by you and can be seen <strong>only</strong> by you.</li>
238                 <li> A <strong>Public</strong> List can be seen by <strong>everybody</strong>, but managed only by you.</li>
239         <li> An <b>Open</b> List can be seen and managed by everybody.</li>
240             </ul></div>
241     </div>
242
243 <!-- /TMPL_IF -->
244
245 <!-- TMPL_IF NAME="viewshelf" --><!-- TMPL_ELSE -->
246 <!-- TMPL_IF NAME="shelves" --><!-- TMPL_ELSE -->
247 <!-- TMPL_IF name="edit" --><!-- TMPL_ELSE -->
248 <!-- TMPL_IF NAME="shelvesloop" -->
249 <h3>Lists</h3>
250
251 <table>
252 <tr><th>Name</th><th>Category</th><th>Items</th><th>&nbsp;</th></tr>
253
254 <!-- TMPL_LOOP NAME="shelvesloop" -->
255 <tr<!-- TMPL_IF name="color" --> class="highlight"<!-- /TMPL_IF -->>
256 <td><a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" --></a></td>
257 <td>
258 <!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
259 <!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
260 <!-- TMPL_IF NAME="viewcategory3" -->Open<!-- /TMPL_IF -->
261 </td>
262 <td><!-- TMPL_VAR NAME="shelfvirtualcount" --> </td>
263 <td><!-- TMPL_IF name="mine" --><a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=modif&amp;shelf=<!-- TMPL_VAR NAME="shelf" -->">Edit</a> <a href="/cgi-bin/koha/virtualshelves/shelves.pl?shelves=1&amp;DEL-<!-- TMPL_VAR NAME="shelf" -->=1" onclick="return confirmDelete(_('Are you sure you want to remove this List?'))">Delete</a><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td></tr>
264 <!-- /TMPL_LOOP -->
265 </table>
266 <!-- /TMPL_IF -->
267 <!-- /TMPL_IF -->
268 <!-- /TMPL_IF -->
269 <!-- /TMPL_IF -->
270
271 </div>
272 </div>
273
274 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->