Bug 25402: Put OPAC cart download options into dropdown menu
[koha-ffzg.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-basket.tt
1 [% USE raw %]
2 [% USE Koha %]
3 [% USE KohaDates %]
4 [% USE Asset %]
5 [% SET is_popup = 1 %]
6 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && TagsEnabled && TagsInputOnList ) %]
7
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Your cart</title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 [% BLOCK cssinclude %]<style>.item-status, .dt-buttons { display: inline; } @media print { body { height: 99%; } }</style>[% END %]
12 </head>
13 [% INCLUDE 'bodytag.inc' bodyid='basket' %]
14     <div class="main">
15         <div class="container-fluid">
16             <div class="row-fluid">
17                 <div class="span12">
18                     <div id="userbasket">
19                         <h2>Your cart</h2>
20                         <div id="floating">
21                             <div id="toolbar" class="toolbar noprint">
22                                 [% IF ( verbose ) %]
23                                     <a href="opac-basket.pl" class="btn btn-link brief"><i class="fa fa-fw fa-search-minus" aria-hidden="true"></i> Brief display</a>
24                                 [% ELSE %]
25                                     <a href="opac-basket.pl" class="btn btn-link detail"><i class="fa fa-fw fa-search-plus" aria-hidden="true"></i> More details</a>
26                                 [% END %]
27                                 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
28                                     <a class="btn btn-link send" href="opac-basket.pl"><i class="fa fa-fw fa-envelope" aria-hidden="true"></i> Send</a>
29                                 [% END %]
30
31                                 <div id="download-cart" class="btn-group dropdown">
32                                     <a id="format" class="btn btn-link dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-fw fa-download" aria-hidden="true"></i> Download <b class="caret"></b></a>
33                                     <ul class="dropdown-menu pull-left" role="menu" aria-labelledby="format">
34                                         <li><a role="menuitem" class="download-cart" data-format="bibtex" href="#">BibTeX</a></li>
35                                         <li><a role="menuitem" class="download-cart" data-format="isbd" href="#">ISBD</a></li>
36                                         <li><a role="menuitem" class="download-cart" data-format="iso2709" href="#">MARC</a></li>
37                                         <li><a role="menuitem" class="download-cart" data-format="ris" href="#">RIS (Zotero, EndNote, others)</a></li>
38                                         [% FOREACH csv_profile IN csv_profiles %]
39                                             <li>
40                                                 <a role="menuitem" class="download-cart" data-format="[% csv_profile.export_format_id | html %]" href="#">CSV - [% csv_profile.profile | html %]</a>
41                                             </li>
42                                         [% END %]
43                                     </ul>
44                                 </div>
45
46                                 <a class="btn btn-link remove empty" href="opac-basket.pl"><i class="fa fa-fw fa-trash" aria-hidden="true"></i> Empty and close</a>
47                                 <a class="btn btn-link close" href="opac-basket.pl"><i class="fa fa-fw fa-times-circle" aria-hidden="true"></i> Hide window</a>
48                                 [% IF ( verbose ) %]
49                                     <a class="btn btn-link print-large" href="#"><i class="fa fa-fw fa-print" aria-hidden="true"></i> Print</a>
50                                 [% END %]
51                             </div>
52
53                             <div id="selections-toolbar" class="toolbar noprint">
54                                 <a id="CheckAll" href="#">Select all</a>
55                                 <a id="CheckNone" href="#">Clear all</a>
56                                 <span class="sep">|</span>
57                                 <span class="links" id="tag_hides">
58                                     <span id="selections">Select titles to: </span>
59                                     <a href="#" class="btn btn-link remove deleteshelf disabled"><i class="fa fa-remove" aria-hidden="true"></i> Remove</a>
60                                     [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
61                                         [% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %]
62                                             <a href="#" class="btn btn-link newshelf disabled"><i class="fa fa-fw fa-list" aria-hidden="true"></i> Add to a list</a>
63                                         [% END %]
64                                         [% IF ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
65                                             <a href="#" class="btn btn-link hold disabled"><i class="fa fa-fw fa-bookmark" aria-hidden="true"></i> Place hold</a>
66                                         [% END %]
67                                         [% IF ( TagsInputEnabled && loggedinusername ) %]
68                                             <a href="#" id="tagsel_tag" class="btn btn-link disabled"><i class="fa fa-fw fa-tag" aria-hidden="true"></i> Tag</a>
69                                         [% END %]
70                                     [% END # / IF opacuserlogin %]
71                                 </span>
72                                 [% IF ( TagsInputEnabled && loggedinusername ) %]
73                                 <span id="tagsel_form" style="display:none">
74                                     <label for="tagsel_new">New tag:</label>
75                                     <input type="text" name="tagsel_new" id="tagsel_new" maxlength="100" />
76                                     <input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="Add" type="submit" value="Add">
77                                     <a href="#" id="tagsel_cancel">Cancel</a>
78                                 </span>
79                                 [% END %]
80                             </div>
81                         </div> <!-- /#floating -->
82
83                         [% IF ( verbose ) %]
84                             <form action="opac-basket.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
85                                 [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
86                                     <h3>
87                                                 <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber | html %]" name="bib[% BIBLIO_RESULT.biblionumber | html %]" id="bib[% BIBLIO_RESULT.biblionumber | html %]">
88                                                 [% INCLUDE 'biblio-title.inc' biblio=BIBLIO_RESULT %]
89                                                 [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author | html %][% END %]
90                                     </h3>
91                                     <!-- COinS / Openurl -->
92                                     <span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.au=[% BIBLIO_RESULT.author | html %]&amp;rft.btitle=[% BIBLIO_RESULT.title |url %]&amp;rft.date=[% BIBLIO_RESULT.publicationyear | html %]&amp;rft.tpages=[% BIBLIO_RESULT.item('size') | html %]&amp;rft.isbn=[% BIBLIO_RESULT.isbn |url %]&amp;rft.aucorp=&amp;rft.place=[% BIBLIO_RESULT.place | html %]&amp;rft.pub=[% BIBLIO_RESULT.publisher |url %]&amp;rft.edition=[% BIBLIO_RESULT.edition | html %]&amp;rft.series=[% BIBLIO_RESULT.series | html %]&amp;rft.genre="></span>
93
94                                     <table class="table">
95                                         [% IF ( BIBLIO_RESULT.isbn ) %]
96                                             <tr>
97                                                 <th scope="row">ISBN</th>
98                                                 <td>[% BIBLIO_RESULT.isbn | html %]</td>
99                                             </tr>
100                                         [% END %]
101
102                                         [% IF ( BIBLIO_RESULT.HASAUTHORS ) %]
103                                         <tr>
104                                             <th scope="row">Author(s)</th>
105                                             <td>
106                                                [% IF ( BIBLIO_RESULT.author ) %]
107                                                    <p>[% BIBLIO_RESULT.author | html %]</p>
108                                                [% END %]
109                                                [% IF ( BIBLIO_RESULT.MARCAUTHORS ) %]
110                                                    [% FOREACH MARCAUTHOR IN BIBLIO_RESULT.MARCAUTHORS %]
111                                                    <p> [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
112                                                           [% MARCAUTHOR_SUBFIELDS_LOO.separator | html %]
113                                                               [% MARCAUTHOR_SUBFIELDS_LOO.value | html %]
114                                                        [% END %]
115                                                    </p>
116                                                    [% END %]
117                                                [% END %]
118                                             </td>
119                                         </tr>
120                                         [% END %]
121
122                                         [% IF ( BIBLIO_RESULT.publishercode ) %]
123                                             <tr>
124                                                 <th scope="row">Publisher</th>
125                                                 <td>[% BIBLIO_RESULT.place | html %] [% BIBLIO_RESULT.publishercode | html %] [% BIBLIO_RESULT.publicationyear | html %]
126                                                 </td>
127                                             </tr>
128                                         [% END %]
129
130                                         [% IF ( BIBLIO_RESULT.pages ) %]
131                                             <tr>
132                                                 <th scope="row">Details</th>
133                                                 <td>[% BIBLIO_RESULT.pages | html %] [% BIBLIO_RESULT.illus | html %] [% BIBLIO_RESULT.item('size') | html %]</td>
134                                             </tr>
135                                         [% END %]
136
137                                         [% IF ( BIBLIO_RESULT.seriestitle ) %]
138                                         <tr>
139                                             <th scope="row">Collection</th>
140                                             <td> [% BIBLIO_RESULT.seriestitle | html %]</td>
141                                         </tr>
142                                         [% END %]
143
144                                         [% IF ( BIBLIO_RESULT.MARCSUBJCTS ) %]
145                                         <tr>
146                                             <th scope="row">Subject(s)</th>
147                                             <td>[% FOREACH MARCSUBJCT IN BIBLIO_RESULT.MARCSUBJCTS %]
148                                                    <p> [% FOREACH MARCSUBJECT_SUBFIELDS_LOO IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
149                                                         [% MARCSUBJECT_SUBFIELDS_LOO.separator | html %][% MARCSUBJECT_SUBFIELDS_LOO.value | html %][% END %]
150                                                    </p>
151                                                 [% END %]</td>
152                                         </tr>
153                                         [% END %]
154
155                                         [% IF ( BIBLIO_RESULT.copyrightdate ) %]
156                                             <tr><th scope="row">Copyright</th>
157                                                 <td> [% BIBLIO_RESULT.copyrightdate | html %]</td>
158                                             </tr>
159                                         [% END %]
160
161                                         [% IF ( BIBLIO_RESULT.MARCNOTES ) %]
162                                             <tr>
163                                                 <th scope="row">Notes</th>
164                                                 <td>
165                                                 [% FOREACH MARCNOTE IN BIBLIO_RESULT.MARCNOTES %]
166                                                     <p>
167                                                     [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
168                                                         - <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
169                                                     [% ELSE %]
170                                                         - [% MARCNOTE.marcnote | html %]
171                                                     [% END %]
172                                                     </p>
173                                                 [% END %]
174                                                 </td>
175                                             </tr>
176                                         [% END %]
177
178                                         [% IF ( BIBLIO_RESULT.unititle ) %]
179                                             <tr>
180                                                 <th scope="row">Unified title</th>
181                                                 <td> [% BIBLIO_RESULT.unititle | html %]</td>
182                                             </tr>
183                                         [% END %]
184
185                                         [% IF ( BIBLIO_RESULT.serial ) %]
186                                             <tr>
187                                                 <th scope="row">Serial</th>
188                                                 <td>[% BIBLIO_RESULT.serial | html %]</td>
189                                             </tr>
190                                         [% END %]
191
192                                         [% IF ( BIBLIO_RESULT.dewey ) %]
193                                             <tr>
194                                                 <th scope="row">Dewey</th>
195                                                 <td>[% BIBLIO_RESULT.dewey | html %]</td>
196                                             </tr>
197                                         [% END %]
198
199                                         [% IF ( BIBLIO_RESULT.classification ) %]
200                                             <tr>
201                                                 <th scope="row">Classification</th>
202                                                 <td> [% BIBLIO_RESULT.classification | html %]</td>
203                                             </tr>
204                                         [% END %]
205
206                                         [% IF ( BIBLIO_RESULT.lccn ) %]
207                                             <tr>
208                                                 <th scope="row">LCCN</th>
209                                                 <td> [% BIBLIO_RESULT.lccn | html %]</td>
210                                             </tr>
211                                         [% END %]
212
213                                         [% IF BIBLIO_RESULT.MARCURLS.size %]
214                                             <tr>
215                                                 <th scope="row">URL(s)</th>
216                                                 <td>
217                                                    [% FOREACH MARCurl IN BIBLIO_RESULT.MARCURLS %]
218                                                         [% IF MARCurl.part %]<p>[% MARCurl.part | html %]</p>[% END %]
219
220                                                         [% IF OPACURLOpenInNewWindow %]
221                                                             <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer">[% MARCurl.linktext | html %]</a>
222                                                         [% ELSE %]
223                                                             <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]">[% MARCurl.linktext | html %]</a>
224                                                         [% END %]
225
226                                                         [% IF MARCurl.notes %][% FOREACH note IN MARCurl.notes %]<p>[% note.note | html %]</p>[% END %][% END %]
227                                                     [% END %]
228                                                 </td>
229                                             </tr>
230                                         [% END %]
231
232                                         <tr>
233                                             <th scope="row">Location(s) (Status)</th>
234                                             <td>
235                                                 [% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]
236                                                     <ul>
237                                                         [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
238                                                             <li>
239                                                                 <strong>[% ITEM_RESULT.branchname | html %]</strong>
240                                                                 [% IF ( ITEM_RESULT.location_opac ) %]<span class="shelvingloc">[% ITEM_RESULT.location_opac | html %]</span>[% END %]
241                                                                 [% IF ( ITEM_RESULT.itemcallnumber ) %]
242                                                                     ([% ITEM_RESULT.itemcallnumber | html %])
243                                                                 [% END %]
244                                                                 ([% INCLUDE 'item-status.inc' item = ITEM_RESULT %])
245                                                             </li>
246                                                         [% END %]
247                                                     </ul>
248                                                 [% ELSE %]
249                                                     This record has no items.
250                                                 [% END %]
251                                             </td>
252                                         </tr>
253                                     </table>
254                                 [% END # / FOREACH BIBLIO_RESULT %]
255                             </form>
256
257                         [% ELSE %]
258
259                             <form action="/cgi-bin/koha/opac-basket.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
260                                 <table id="itemst" class="table table-bordered table-striped">
261                                     <thead>
262                                         <tr>
263                                             <th class="noprint">&nbsp;</th>
264                                             <th>Title</th>
265                                             <th>Author</th>
266                                             <th>Year</th>
267                                             <th>Location (Status)</th>
268                                         </tr>
269                                     </thead>
270                                     <tbody>
271                                     [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
272                                         <tr>
273                                                 <td class="noprint">
274                                                 <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber | html %]" name="bib[% BIBLIO_RESULT.biblionumber | html %]" id="bib[% BIBLIO_RESULT.biblionumber | html %]">
275                                                 </td>
276                                             <td>
277                                                 <a href="#" onclick="openBiblio('[% BIBLIO_RESULT.dest | html %]',[% BIBLIO_RESULT.biblionumber | html %])">[% INCLUDE 'biblio-title.inc' biblio=BIBLIO_RESULT %]</a>
278                                                 <!-- COinS / Openurl -->
279                                                 <span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.au=[% BIBLIO_RESULT.author | html %]&amp;rft.btitle=[% BIBLIO_RESULT.title |url %]&amp;rft.date=[% BIBLIO_RESULT.publicationyear | html %]&amp;rft.tpages=[% BIBLIO_RESULT.item('size') | html %]&amp;rft.isbn=[% BIBLIO_RESULT.isbn |url %]&amp;rft.aucorp=&amp;rft.place=[% BIBLIO_RESULT.place | html %]&amp;rft.pub=[% BIBLIO_RESULT.publisher |url %]&amp;rft.edition=[% BIBLIO_RESULT.edition | html %]&amp;rft.series=[% BIBLIO_RESULT.series | html %]&amp;rft.genre="></span>
280                                                 [% IF ( TagsInputEnabled && loggedinusername ) %]
281                                                 <span id="newtag[% BIBLIO_RESULT.biblionumber | html %]_status" class="tagstatus results_summary" style="display:none">Tag status here.</span>
282                                                 [% END %]
283                                             </td>
284                                             <td>[% BIBLIO_RESULT.author | html %]</td>
285                                             <td>
286                                                 [% IF ( BIBLIO_RESULT.publicationyear ) %]
287                                                     [% BIBLIO_RESULT.publicationyear | html %]
288                                                 [% ELSE %]
289                                                     [% BIBLIO_RESULT.copyrightdate | html %]
290                                                 [% END %]
291                                             </td>
292                                             <td>[% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]<ul>[% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
293                                                 <li>
294                                                     [% ITEM_RESULT.branchname | html %]
295                                                     [% IF ( ITEM_RESULT.location_opac ) %]<span class="shelvingloc">[% ITEM_RESULT.location_opac | html %]</span>[% END %]
296                                                     [% IF ( ITEM_RESULT.itemcallnumber ) %]
297                                                         ([% ITEM_RESULT.itemcallnumber | html %])
298                                                     [% END %]
299                                                     ([% INCLUDE 'item-status.inc' item = ITEM_RESULT %])
300                                                 </li>
301                                                 [% END %]</ul>[% ELSE %]This record has no items.[% END %]
302                                             </td>
303                                         </tr>
304                                     [% END # / FOREACH BIBLIO_RESULT %]
305                                     </tbody>
306                                 </table>
307                             </form>
308                         [% END # / verbose %]
309
310                             <form name="myform" action="opac-basket.pl" method="get">
311                                 <input type="hidden" name="records" id="records" />
312                             </form>
313                             <form method="post" id="download_cart" action="/cgi-bin/koha/opac-downloadcart.pl">
314                                 <input type="hidden" name="format" id="download_format" value="" />
315                                 <input type="hidden" name="bib_list" value="[% bib_list | html %]" />
316                             </form>
317
318                 </div> <!-- / #userbasket -->
319             </div> <!-- / .span10 -->
320         </div> <!-- / .row-fluid -->
321     </div> <!-- / .container-fluid -->
322 </div> <!-- / .main -->
323
324 [% INCLUDE 'opac-bottom.inc' %]
325
326 [% BLOCK jsinclude %]
327     [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
328     [% Asset.js("lib/hc-sticky.js") | $raw %]
329         [% INCLUDE 'datatables.inc' %]
330         <script>
331             [% IF ( TagsInputEnabled && loggedinusername ) %]
332                 function tagSelected() {
333                     var bibs = document.getElementById('records').value;
334                     if (bibs) {
335                         $("#tagsel_tag").hide();
336                         $("#tag_hides").hide();
337                         $("#tagsel_form").show();
338                     } else {
339                         alert(MSG_NO_RECORD_SELECTED);
340                     }
341                 }
342
343                 function tagCanceled() {
344                     $("#tagsel_form").hide();
345                     $("#tagsel_tag").show();
346                     $("#tag_hides").show();
347                     $("#tagsel_new").val("");
348                     $(".tagstatus").empty().hide();
349                 }
350
351                 function tagAdded() {
352                     var checkedBoxes = $("input:checkbox:checked");
353                     if (!$(checkedBoxes).size()) {
354                         alert(MSG_NO_RECORD_SELECTED);
355                         return false;
356                     }
357
358                     var tag = $("#tagsel_new").val();
359                     if (!tag || (tag == "")) {
360                         alert(MSG_NO_TAG_SPECIFIED);
361                         return false;
362                     }
363
364                     var bibs = [];
365                     for (var i = 0; i < $(checkedBoxes).size(); i++) {
366                         var box = $(checkedBoxes).get(i);
367                         bibs[i] = $(box).val();
368                     }
369
370                     KOHA.Tags.add_multitags_button(bibs, tag);
371                     return false;
372                 }
373             [% END # / TagsInputEnabled && loggedinusername %]
374
375             $(document).ready(function(){
376                 $(".brief").click(function(e){
377                     e.preventDefault();
378                     showLess();
379                 });
380
381                 $(".detail").click(function(e){
382                     e.preventDefault();
383                     showMore();
384                 });
385
386                 $(".send").click(function(e){
387                     e.preventDefault();
388                     sendBasket();
389                 });
390
391                 $(".download-cart").on("click", function(e){
392                     e.preventDefault();
393                     var format = $(this).data("format");
394                     $("#download_format").val( format );
395                     $("#download_cart").submit();
396                 });
397
398                 $(".empty").click(function(e){
399                     e.preventDefault();
400                     delBasket();
401                 });
402
403                 $(".deleteshelf").click(function(e){
404                     e.preventDefault();
405                     delSelRecords();
406                 });
407
408                 $(".newshelf").click(function(e){
409                     e.preventDefault();
410                     addSelToShelf();
411                 });
412
413                 $(".hold").click(function(e){
414                     e.preventDefault();
415                     holdSel();
416                 });
417
418                 $("#tagsel_tag").click(function(e){
419                     e.preventDefault();
420                     tagSelected();
421                 });
422
423                 $("#tagsel_button").click(function(e){
424                     e.preventDefault();
425                     tagAdded();
426                 });
427
428                 $("#tagsel_cancel").click(function(e){
429                     e.preventDefault();
430                     tagCanceled();
431                 });
432
433                 $("#CheckAll").click(function(){
434                     var checked = [];
435                     $(".checkboxed").checkCheckboxes("*", true).each(
436                         function() {
437                             selRecord(this.value,true);
438                         }
439                     );
440                     enableCheckboxActions();
441                     return false;
442                 });
443
444                 $("#CheckNone").click(function(){
445                     var checked = [];
446                     $(".checkboxed").unCheckCheckboxes("*",true).each(
447                         function() {
448                             selRecord(this.value,false);
449                         }
450                     );
451                     enableCheckboxActions();
452                     return false;
453                 });
454
455                 if( $("#itemst").length > 0 ){
456                     var itemst = $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, {
457                         "order": [[ 1, "asc" ]],
458                         "columnDefs": [
459                           { "targets": [ 0,-1 ], "sortable": false, "searchable": false }
460                         ],
461                         "columns": [
462                             null,
463                             { "type": "anti-the" },
464                             null,
465                             null,
466                             null
467                         ],
468                     }));
469
470                     var buttons = new $.fn.dataTable.Buttons(itemst, {
471                          buttons: [
472                             'print'
473                         ]
474                     }).container().appendTo($('#toolbar'));
475                 }
476
477                 $(".cb").change(function(){
478                     selRecord( $(this).val(), $(this).prop("checked") );
479                     enableCheckboxActions();
480                     return false;
481                 });
482                 enableCheckboxActions();
483
484                 Sticky = $("#floating");
485                 Sticky.hcSticky({
486                     stickTo: "#userbasket",
487                     stickyClass: "floating"
488                 });
489             });
490
491             function enableCheckboxActions(){
492                 // Enable/disable controls if checkboxes are checked
493                 var checkedBoxes = $(".checkboxed input:checkbox:checked");
494                 if ($(checkedBoxes).size()) {
495                   $("#selections").html(_("With selected titles: "));
496                   $("#selections-toolbar .links a").removeClass("disabled");
497                 } else {
498                   $("#selections").html(_("Select titles to: "));
499                   $("#selections-toolbar .links a").addClass("disabled");
500                 }
501             }
502         </script>
503 [% END # / BLOCK jsinclude %]