Lines 27-33
Link Here
|
27 |
[% IF Koha.Preference( 'opacuserlogin' ) == 1 %] |
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> |
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 %] |
29 |
[% END %] |
30 |
<a class="btn btn-link download" href="opac-basket.pl"><i class="fa fa-fw fa-download" aria-hidden="true"></i> Download</a> |
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 |
|
31 |
<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> |
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> |
32 |
<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> |
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> |
33 |
[% IF ( verbose ) %] |
48 |
[% IF ( verbose ) %] |
Lines 295-300
Link Here
|
295 |
<form name="myform" action="opac-basket.pl" method="get"> |
310 |
<form name="myform" action="opac-basket.pl" method="get"> |
296 |
<input type="hidden" name="records" id="records" /> |
311 |
<input type="hidden" name="records" id="records" /> |
297 |
</form> |
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> |
298 |
|
317 |
|
299 |
</div> <!-- / #userbasket --> |
318 |
</div> <!-- / #userbasket --> |
300 |
</div> <!-- / .span10 --> |
319 |
</div> <!-- / .span10 --> |
Lines 369-377
Link Here
|
369 |
sendBasket(); |
388 |
sendBasket(); |
370 |
}); |
389 |
}); |
371 |
|
390 |
|
372 |
$(".download").click(function(e){ |
391 |
$(".download-cart").on("click", function(e){ |
373 |
e.preventDefault(); |
392 |
e.preventDefault(); |
374 |
downloadBasket(); |
393 |
var format = $(this).data("format"); |
|
|
394 |
$("#download_format").val( format ); |
395 |
$("#download_cart").submit(); |
375 |
}); |
396 |
}); |
376 |
|
397 |
|
377 |
$(".empty").click(function(e){ |
398 |
$(".empty").click(function(e){ |