Merge remote branch 'kc/new/enh/bug_4449' into kcmaster
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / basket / basket.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; Your Cart</title>
3     <!-- TMPL_IF NAME="print_basket" -->
4
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <link rel="shortcut icon" href="<!-- TMPL_IF NAME="IntranetFavicon" --><!-- TMPL_VAR NAME="IntranetFavicon" --><!-- TMPL_ELSE --><!-- TMPL_VAR NAME="themelang" -->/includes/favicon.ico<!-- /TMPL_IF -->" type="image/x-icon" />
7 <meta http-equiv="Content-Language" content="en-us" />
8 <style type="text/css">
9     @import url(<!-- TMPL_VAR NAME="themelang" -->/css/print.css);
10 </style>
11     <!-- TMPL_ELSE --><!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
12         <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
13         <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
14         <script type="text/javascript">
15         //<![CDATA[
16
17 $(document).ready(function()
18     {
19         $("#itemst").tablesorter({
20                         headers: { 0: { sorter: false }}
21                 });
22     }
23 );
24
25
26 function placeHold () {
27     var checkedItems = $("input:checkbox:checked");
28     if ($(checkedItems).size() == 0) {
29         alert(MSG_NO_RECORD_SELECTED);
30         return false;
31     }
32     var bibs = "";
33     var badBibs = false;
34     $(checkedItems).each(function() {
35         var bib = $(this).val();
36         bibs += bib + "/";
37     });
38
39     var newloc = "/cgi-bin/koha/reserve/request.pl?biblionumbers=" + bibs;
40     if ($(checkedItems).size() > 1) { newloc += "&multi_hold=1"; }
41     window.opener.location = newloc;
42     window.close();
43 }
44
45
46
47         $(document).ready(function(){
48                 $("#CheckAll").click(function(){
49                 var checked = [];
50                 $("#bookbag_form").checkCheckboxes("*", true).each(
51                     function() {
52                                 selRecord(this.value,true);
53                         }
54                 );
55                 return false;
56             });
57             $("#CheckNone").click(function(){
58             var checked = [];
59                 $("#bookbag_form").unCheckCheckboxes("*",true).each(
60                     function() {
61                                 selRecord(this.value,false);
62                         }
63                 );
64                 return false;
65             });
66         $(".holdsep").text("| ");
67         $(".hold").text(_("Place Hold"));
68         });
69
70
71         //]]>
72         </script>
73         <!-- /TMPL_IF -->
74 </head>
75 <!-- TMPL_IF NAME="print_basket" --><body id="basket" onload="print();history.back();"><!-- TMPL_ELSE --><body id="basket"><!-- /TMPL_IF -->
76
77 <div id="doc" class="yui-t7">
78 <div class="container">
79 <!-- TMPL_UNLESS NAME="print_basket" -->
80 <h1>Your Cart</h1>
81
82 <div id="toolbar">
83 <ul class="toolbar">
84         <li>
85             <span id="addchild" class="yui-button yui-link-button"><span class="first-child">
86                 <!-- TMPL_IF NAME="verbose" --><a href="basket.pl" class="brief" onclick="showLess(); return false;">Brief Display</a><!-- TMPL_ELSE --><a href="basket.pl" class="detail" onclick="showMore(); return false;">More Details</a><!-- /TMPL_IF -->
87             </span></span>
88         </li>
89         <li>
90             <span id="receive" class="yui-button yui-link-button"><span class="first-child">
91                 <a class="send" href="basket.pl" onclick="sendBasket(); return false;">Send</a>
92             </span></span>
93         </li>
94         <li>
95             <span id="savemenuc" class="yui-button yui-link-button"><span class="first-child">
96                 <a class="download" href="basket.pl" onclick="downloadBasket(); return false;">Download</a>
97             </span></span>
98         </li>
99         <li>
100             <span id="printmenuc" class="yui-button yui-link-button"><span class="first-child">
101                 <a class="print" href="basket.pl" onclick="printBasket(); return false;">Print</a>
102             </span></span>
103         </li>
104         <li>
105             <span id="delete" class="yui-button yui-link-button"><span class="first-child">
106                 <a class="empty" href="basket.pl" onclick="delBasket(); return false;">Empty and Close</a>
107             </span></span>
108         </li>
109         <li>
110             <span id="hide" class="yui-button yui-link-button"><span class="first-child">
111                 <a class="hide" href="basket.pl" onclick="quit(); return false;">Hide Window</a>
112             </span></span>
113         </li>
114 </ul>
115 </div>
116         <!-- /TMPL_UNLESS -->
117
118 <!-- TMPL_IF NAME="verbose" -->
119         <!-- TMPL_UNLESS NAME="print_basket" --><p style="padding: 7px 0; border-top : 1px solid #E8E8E8;"><a id="CheckAll" href="#">Select All</a> <a id="CheckNone" href="#">Clear All</a> | <b>Selected items :</b>
120
121     <a href="#" onclick="delSelRecords(); return false;">Remove</a>
122
123 <!-- TMPL_IF NAME="loggedinusername" -->
124      | <a href="#" onclick="addSelToShelf(); return false;">Add to a list</a>
125 <!-- /TMPL_IF -->
126
127 <!-- TMPL_IF NAME="CAN_user_reserveforothers" -->
128      | <a href="#" onclick="placeHold(); return false;">Place Hold</a>
129 <!-- /TMPL_IF -->
130
131 </p><!-- /TMPL_UNLESS -->
132             <form action="basket.pl" method="get" name="bookbag_form" id="bookbag_form">
133     <!-- TMPL_LOOP NAME="BIBLIO_RESULTS" -->
134     <h3>
135         <!-- TMPL_IF NAME="print_basket" -->
136             <!-- TMPL_VAR NAME="title" ESCAPE="html" -->
137                 <!-- TMPL_IF name="subtitle" --> <!-- TMPL_VAR NAME="subtitle" --><!-- /TMPL_IF -->
138                 <!-- TMPL_IF name="author" --> <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF -->
139         <!-- TMPL_ELSE -->
140                 <input type="checkbox" value="<!-- TMPL_VAR NAME="biblionumber" -->" name="bib<!-- TMPL_VAR NAME="biblionumber" -->" id="bib<!-- TMPL_VAR NAME="biblionumber" -->" onclick="selRecord(value,checked)" />
141                 <!-- TMPL_VAR NAME="title" escape="html" -->
142                 <!-- TMPL_IF name="subtitle" --> <!-- TMPL_VAR NAME="subtitle" --><!-- /TMPL_IF -->
143                 <!-- TMPL_IF name="author" --> <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF -->
144         <!-- /TMPL_IF -->
145     </h3>
146             <!-- COinS / OpenURL -->
147     <span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.au=<!-- TMPL_VAR NAME="author" -->&amp;rft.btitle=<!-- TMPL_VAR NAME="title" ESCAPE="url" -->&amp;rft.date=<!-- TMPL_VAR NAME="publicationyear" -->&amp;rft.tpages=<!-- TMPL_VAR NAME="size" -->&amp;rft.isbn=<!-- TMPL_VAR NAME="isbn"  ESCAPE="url" -->&amp;rft.aucorp=&amp;rft.place=<!-- TMPL_VAR NAME="place" -->&amp;rft.pub=<!-- TMPL_VAR NAME="publisher" ESCAPE="url" -->&amp;rft.edition=<!-- TMPL_VAR NAME="edition" -->&amp;rft.series=<!-- TMPL_VAR NAME="series" -->&amp;rft.genre="></span>
148     <table>
149         <!-- TMPL_IF name="isbn" -->
150         <tr>
151             <th scope="row">ISBN</th>
152             <td><!-- TMPL_VAR NAME="isbn" --></td>
153         </tr>
154         <!-- /TMPL_IF -->
155
156         <!-- TMPL_IF "HASAUTHORS" -->
157         <tr>
158             <th scope="row">Author(s)</th>
159             <td>
160                    <!-- TMPL_IF NAME="author" -->
161                        <p><!-- TMPL_VAR NAME="author" --></p>
162                    <!-- /TMPL_IF -->
163                    <!-- TMPL_IF NAME="MARCAUTHORS" -->
164                        <!-- TMPL_LOOP NAME="MARCAUTHORS" -->
165                        <p> <!-- TMPL_LOOP NAME="MARCAUTHOR_SUBFIELDS_LOOP" -->
166                               <!-- TMPL_VAR NAME="separator" -->
167                                   <!-- TMPL_VAR NAME="value" -->
168                            <!-- /TMPL_LOOP -->
169                        </p>
170                        <!-- /TMPL_LOOP -->
171                    <!-- /TMPL_IF -->
172             </td>
173         </tr>
174         <!-- /TMPL_IF -->
175
176         <!-- TMPL_IF NAME="publishercode" -->
177             <tr>
178                 <th scope="row">Publisher</th>
179                 <td><!-- TMPL_VAR NAME="place" --> <!-- TMPL_VAR NAME="publishercode" --> <!-- TMPL_VAR NAME="publicationyear" -->
180                 </td>
181             </tr>
182         <!-- /TMPL_IF -->
183         <!-- TMPL_IF NAME="pages" -->
184             <tr>
185                 <th scope="row">Details</th>
186                 <td><!-- TMPL_VAR NAME="pages" --> <!-- TMPL_VAR NAME="illus" --> <!-- TMPL_VAR NAME="size" --></td>
187             </tr>
188         <!-- /TMPL_IF -->
189         <!-- TMPL_IF name="seriestitle" -->
190         <tr>
191             <th scope="row">Collection</th>
192             <td> <!-- TMPL_VAR NAME="seriestitle" --></td>
193         </tr>
194         <!-- /TMPL_IF -->
195
196         <!-- TMPL_IF name="MARCSUBJCTS" -->
197         <tr>
198             <th scope="row">Subject(s)</th>
199             <td><!-- TMPL_LOOP NAME="MARCSUBJCTS" -->
200                    <p> <!-- TMPL_LOOP NAME="MARCSUBJECT_SUBFIELDS_LOOP" -->
201                         <!-- TMPL_VAR NAME="separator" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_LOOP -->
202                    </p>
203                 <!-- /TMPL_LOOP --></td>
204         </tr>
205         <!-- /TMPL_IF -->
206
207         <!-- TMPL_IF name="copyrightdate" -->
208             <tr><th scope="row">Copyright</th>
209                 <td> <!-- TMPL_VAR NAME="copyrightdate" --></td>
210             </tr>
211         <!-- /TMPL_IF -->
212
213         <!-- TMPL_IF name="MARCNOTES" -->
214         <tr>
215             <th scope="row">Notes</th>
216             <td>
217             <!-- TMPL_LOOP NAME="MARCNOTES" -->
218                 <p>- <!-- TMPL_VAR NAME="marcnote" --></p>
219             <!-- /TMPL_LOOP --></td>
220         </tr>
221         <!-- /TMPL_IF -->
222
223         <!-- TMPL_IF name="unititle" -->
224         <tr>
225             <th scope="row">Unified title</th>
226             <td> <!-- TMPL_VAR NAME="unititle" --></td>
227         </tr>
228         <!-- /TMPL_IF -->
229         <!-- TMPL_IF name="serial" -->
230         <tr>
231             <th scope="row">Serial</th>
232             <td><!-- TMPL_VAR NAME="serial" --></td>
233         </tr>
234         <!-- /TMPL_IF -->
235         <!-- TMPL_IF name="dewey" -->
236         <tr>
237             <th scope="row">Dewey</th>
238             <td><!-- TMPL_VAR name="dewey" --></td>
239         </tr>
240         <!-- /TMPL_IF -->
241         <!-- TMPL_IF name="classification" -->
242         <tr>
243             <th scope="row">Classification</th>
244             <td> <!-- TMPL_VAR name="classification" --></td>
245         </tr>
246         <!-- /TMPL_IF -->
247         <!-- TMPL_IF name="lccn" -->
248         <tr>
249             <th scope="row">LCCN</th>
250             <td> <!-- TMPL_VAR name="lccn" --></td>
251         </tr>
252         <!-- /TMPL_IF -->
253
254         <!-- TMPL_IF name="MARCURLS" -->
255         <tr>
256             <th scope="row">URL(s)</th>
257             <td>
258            <!-- TMPL_LOOP name="MARCURLS" -->
259                 <p><!-- TMPL_IF NAME="part" --><!-- TMPL_VAR NAME="part" -->
260                         <br /><!-- /TMPL_IF -->
261
262                 <!-- TMPL_VAR NAME="MARCURL" -->
263                         <!-- TMPL_IF NAME="notes" --><!-- TMPL_LOOP NAME="notes" --><!-- TMPL_VAR NAME="note" --><br /><!-- /TMPL_LOOP --><!-- /TMPL_IF -->
264             <!-- /TMPL_LOOP --></p></td>
265         </tr><!-- /TMPL_IF -->
266
267         <tr>
268             <th scope="row">Location(s)</th>
269             <td><!-- TMPL_IF NAME="ITEM_RESULTS" --><!-- TMPL_LOOP NAME="ITEM_RESULTS" -->
270                 <p>
271                     <!-- TMPL_VAR NAME="branchname" --> <!-- TMPL_VAR NAME="location_description" -->
272                     <!-- TMPL_IF name="itemcallnumber" -->
273                         (<!-- TMPL_VAR NAME="itemcallnumber" -->)
274                     <!-- /TMPL_IF -->
275                 </p>
276                 <!-- /TMPL_LOOP --><!-- TMPL_ELSE -->This record has no items.<!-- /TMPL_IF --></td>
277         </tr>
278     </table>
279     <!-- /TMPL_LOOP -->
280             </form>
281
282 <!-- TMPL_ELSE -->
283 <!-- TMPL_UNLESS NAME="print_basket" -->
284 <p style="border-top : 1px solid #E8E8E8;">
285         <form action="/cgi-bin/koha/basket/basket.pl" method="get" name="bookbag_form" id="bookbag_form">
286     <a id="CheckAll" href="#">Select All</a>
287     <a id="CheckNone" href="#">Clear All</a>
288     | <b>Selected items :</b>
289 <a href="#" onclick="delSelRecords(); return false;">Remove</a>
290
291 <!-- TMPL_IF NAME="loggedinusername" -->
292      | <a href="#" onclick="addSelToShelf(); return false;">Add to a list</a>
293 <!-- /TMPL_IF -->
294
295 <!-- TMPL_IF NAME="CAN_user_reserveforothers" -->
296      | <a href="#" onclick="placeHold(); return false;">Place Hold</a>
297 <!-- /TMPL_IF -->
298
299
300 <!-- /TMPL_UNLESS -->
301 </p>
302     <table id="itemst">
303         <thead><tr>
304             <th>&nbsp;</th>
305             <th>Title</th>
306             <th>Item Type</th>
307             <th>Location</th>
308         </tr></thead>
309
310         <!-- TMPL_LOOP NAME="BIBLIO_RESULTS" -->
311             <!-- TMPL_IF NAME="even" -->
312                 <tr class="highlight">
313             <!-- TMPL_ELSE -->
314                 <tr>
315             <!-- /TMPL_IF -->
316             <!-- TMPL_UNLESS NAME="print_basket" --><td>
317                         <input type="checkbox" value="<!-- TMPL_VAR NAME="biblionumber" -->" name="bib<!-- TMPL_VAR NAME="biblionumber" -->" id="bib<!-- TMPL_VAR NAME="biblionumber" -->" onclick="selRecord(value,checked);" />
318
319                 </td> <!-- /TMPL_UNLESS -->
320             <td><a href="#" onclick="openBiblio('<!-- TMPL_VAR name="dest" -->',<!-- TMPL_VAR name="biblionumber" -->)">
321                         <!-- TMPL_VAR NAME="title" escape="html" -->
322                     </a>
323                         <!-- TMPL_VAR NAME="author" -->
324                         <p><!-- TMPL_IF name="publishercode" -->- <!-- TMPL_VAR name="publishercode" -->
325                         <!-- TMPL_IF name="place" --> <!-- TMPL_VAR name="place" --><!-- /TMPL_IF --><!-- /TMPL_IF -->
326                         <!-- TMPL_IF name="pages" --> - <!-- TMPL_VAR name="pages" --><!-- TMPL_IF name="size" --> <!-- TMPL_VAR name="size" -->
327                         <!-- /TMPL_IF -->
328                         <!-- /TMPL_IF --></p>
329                         <!-- TMPL_IF name="notes" -->
330                         <p><!-- TMPL_VAR name="notes" --></p>
331                         <!-- /TMPL_IF -->
332                                                     <!-- COinS / OpenURL -->
333     <span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.au=<!-- TMPL_VAR NAME="author" -->&amp;rft.btitle=<!-- TMPL_VAR NAME="title" ESCAPE="url" -->&amp;rft.date=<!-- TMPL_VAR NAME="publicationyear" -->&amp;rft.tpages=<!-- TMPL_VAR NAME="size" -->&amp;rft.isbn=<!-- TMPL_VAR NAME="isbn"  ESCAPE="url" -->&amp;rft.aucorp=&amp;rft.place=<!-- TMPL_VAR NAME="place" -->&amp;rft.pub=<!-- TMPL_VAR NAME="publisher" ESCAPE="url" -->&amp;rft.edition=<!-- TMPL_VAR NAME="edition" -->&amp;rft.series=<!-- TMPL_VAR NAME="series" -->&amp;rft.genre="></span>
334
335                                                 </td>
336             <td><!-- TMPL_VAR name="description" --></td>
337                 <td><!-- TMPL_IF NAME="ITEM_RESULTS" --><!-- TMPL_LOOP NAME="ITEM_RESULTS" -->
338                     <p>
339                         <!-- TMPL_VAR NAME="branchname" --> <!-- TMPL_VAR NAME="location_description" -->
340                         <!-- TMPL_IF name="itemcallnumber" -->
341                             (<!-- TMPL_VAR NAME="itemcallnumber" -->)
342                         <!-- /TMPL_IF -->
343                     </p>
344                     <!-- /TMPL_LOOP --><!-- TMPL_ELSE -->This record has no items.<!-- /TMPL_IF --></td>
345             </tr>
346         <!-- /TMPL_LOOP -->
347     </table></form>
348 <!-- /TMPL_IF -->
349
350 <!-- TMPL_IF NAME="print_basket" -->
351 <a href="#back" class="screen">&lt;&lt; Back to Cart</a>
352 <!-- TMPL_ELSE -->
353 <form name="myform" action="basket/basket.pl" method="get">
354     <input type="hidden" name="records" id="records" />
355 </form>
356 <!-- /TMPL_IF -->
357
358 </div>
359 </div>
360 </body>
361 </html>