View | Details | Raw Unified | Return to bug 9073
Collapse All | Expand All

(-)a/basket/basket.pl (+3 lines)
Lines 24-29 use C4::Biblio; Link Here
24
use C4::Items;
24
use C4::Items;
25
use C4::Auth;
25
use C4::Auth;
26
use C4::Output;
26
use C4::Output;
27
use C4::Csv;
27
28
28
my $query = new CGI;
29
my $query = new CGI;
29
30
Lines 120-125 my $resultsarray = \@results; Link Here
120
121
121
$template->param(
122
$template->param(
122
    BIBLIO_RESULTS => $resultsarray,
123
    BIBLIO_RESULTS => $resultsarray,
124
    csv_profiles => GetCsvProfilesLoop(),
125
    bib_list => $bib_list,
123
);
126
);
124
127
125
output_html_with_http_headers $query, $cookie, $template->output;
128
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt (-16 / +25 lines)
Lines 14-28 Link Here
14
	<script type="text/javascript">
14
	<script type="text/javascript">
15
	//<![CDATA[
15
	//<![CDATA[
16
16
17
$(document).ready(function()
18
    {
19
        $("#itemst").tablesorter({
20
                        headers: { 0: { sorter: false }}
21
                });
22
    }
23
);
24
25
26
function placeHold () {
17
function placeHold () {
27
    var checkedItems = $("input:checkbox:checked");
18
    var checkedItems = $("input:checkbox:checked");
28
    if ($(checkedItems).size() == 0) {
19
    if ($(checkedItems).size() == 0) {
Lines 72-80 function placeHold () { Link Here
72
	    });
63
	    });
73
        $(".holdsep").text("| ");
64
        $(".holdsep").text("| ");
74
        $(".hold").text(_("Place Hold"));
65
        $(".hold").text(_("Place Hold"));
66
        $("#downloadcartc").empty();
67
        yuiToolbar();
68
        $("#itemst").tablesorter({
69
            headers: { 0: { sorter: false }}
70
        });
75
	});
71
	});
76
72
77
73
function yuiToolbar() {
74
    var downloadmenu = [
75
    { text: _("iso2709"), url: "/cgi-bin/koha/basket/downloadcart.pl?format=iso2709&bib_list=[% bib_list %]" },
76
    { text: _("RIS"), url: "/cgi-bin/koha/basket/downloadcart.pl?format=ris&bib_list=[% bib_list %]" },
77
    { text: _("BibTex"), url: "/cgi-bin/koha/basket/downloadcart.pl?format=bibtex&bib_list=[% bib_list %]" },
78
[% FOREACH csv_profile IN csv_profiles %]
79
    { text: _("CSV - [% csv_profile.profile %]"), url: "/cgi-bin/koha/basket/downloadcart.pl?format=[% csv_profile.export_format_id %]&bib_list=[% bib_list %]" },
80
[% END %]
81
    ];
82
    new YAHOO.widget.Button({
83
        type: "menu",
84
        label: _("Download"),
85
        name: "downloadmenubutton",
86
        menu: downloadmenu,
87
        container: "downloadcartc"
88
    });
89
}
78
	//]]>
90
	//]]>
79
	</script>
91
	</script>
80
	[% END %]
92
	[% END %]
Lines 98-108 function placeHold () { Link Here
98
		<a class="send" href="basket.pl" onclick="sendBasket(); return false;">Send</a>
110
		<a class="send" href="basket.pl" onclick="sendBasket(); return false;">Send</a>
99
	    </span></span>
111
	    </span></span>
100
	</li>
112
	</li>
101
	<li>
113
    <li id="downloadcartc">
102
	    <span id="savemenuc" class="yui-button yui-link-button"><span class="first-child">
114
        <a href="#" id="downloadcart">Download</a>
103
		<a class="download" href="basket.pl" onclick="downloadBasket(); return false;">Download</a>
115
    </li>
104
	    </span></span>
105
	</li>
106
	<li>
116
	<li>
107
	    <span id="printmenuc" class="yui-button yui-link-button"><span class="first-child">
117
	    <span id="printmenuc" class="yui-button yui-link-button"><span class="first-child">
108
		<a class="print" href="basket.pl" onclick="printBasket(); return false;">Print</a>
118
		<a class="print" href="basket.pl" onclick="printBasket(); return false;">Print</a>
109
- 

Return to bug 9073