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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-10 / +23 lines)
Lines 208-214 Link Here
208
                                    <div class="list-actions">
208
                                    <div class="list-actions">
209
                                        <a class="btn btn-link newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form"><i class="fa fa-fw fa-plus" aria-hidden="true"></i> New list</a> <span class="sep">|</span>
209
                                        <a class="btn btn-link newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form"><i class="fa fa-fw fa-plus" aria-hidden="true"></i> New list</a> <span class="sep">|</span>
210
210
211
                                        <a href="/cgi-bin/koha/opac-downloadshelf.pl?shelfnumber=[% shelf.shelfnumber | uri %]" class="btn btn-link download" data-toggle="modal" data-target="#modalWin"><i class="fa fa-fw fa-download" aria-hidden="true"></i> Download list</a>
211
                                        <div id="download-list" class="btn-group dropdown">
212
                                            <a id="format" class="btn btn-link dropdown-toggle" data-toggle="dropdown" href="/cgi-bin/koha/opac-downloadshelf.pl?shelfnumber=[% shelf.shelfnumber | html %]"><i class="fa fa-fw fa-download" aria-hidden="true"></i> Download <b class="caret"></b></a>
213
                                            <div class="dropdown-menu pull-left" role="menu" aria-labelledby="format">
214
                                                <a role="menuitem" class="dropdown-item download-list" data-format="bibtex" href="#">BibTeX</a>
215
                                                <a role="menuitem" class="dropdown-item download-list" data-format="isbd" href="#">ISBD</a>
216
                                                <a role="menuitem" class="dropdown-item download-list" data-format="iso2709" href="#">MARC</a>
217
                                                <a role="menuitem" class="dropdown-item download-list" data-format="ris" href="#">RIS (Zotero, EndNote, others)</a>
218
                                                [% FOREACH csv_profile IN csv_profiles %]
219
                                                    <a role="menuitem" class="dropdown-item download-list" data-format="[% csv_profile.export_format_id | html %]" href="#">CSV - [% csv_profile.profile | html %]</a>
220
                                                [% END %]
221
                                            </div>
222
                                        </div>
212
223
213
                                        [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
224
                                        [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
214
                                            <span class="sendlist"><a href="/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelf.shelfnumber | uri %]" class="btn btn-link send" onclick="open('/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelf.shelfnumber | html %]','win_form','scrollbars=yes,resizable=yes,height=400,width=500,top=50,left=100'); return false; "><i class="fa fa-fw fa-envelope" aria-hidden="true"></i> Send list</a></span>
225
                                            <span class="sendlist"><a href="/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelf.shelfnumber | uri %]" class="btn btn-link send" onclick="open('/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelf.shelfnumber | html %]','win_form','scrollbars=yes,resizable=yes,height=400,width=500,top=50,left=100'); return false; "><i class="fa fa-fw fa-envelope" aria-hidden="true"></i> Send list</a></span>
Lines 782-796 Link Here
782
    </div> <!-- / .container-fluid -->
793
    </div> <!-- / .container-fluid -->
783
</div> <!-- / .main -->
794
</div> <!-- / .main -->
784
795
785
<div class="modal" id="modalWin" role="dialog" aria-hidden="true" tabindex="-1">
796
<form method="post" id="download_list" action="/cgi-bin/koha/opac-downloadshelf.pl">
786
    <div class="modal-content">
797
    <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
787
        <div class="modal-body">
798
    <input type="hidden" name="format" id="download_format" value="" />
788
            <div style="margin:1em;padding:1em;font-size:150%;">
799
</form>
789
                <img src="[% interface | html %]/[% theme | html %]/images/loading.gif" alt="" /> Loading
790
            </div>
791
        </div>
792
    </div>
793
</div>
794
800
795
<!-- DEBUG -->
801
<!-- DEBUG -->
796
    <div id="debug"></div>
802
    <div id="debug"></div>
Lines 1044-1049 $(function() { Link Here
1044
        );
1050
        );
1045
    });
1051
    });
1046
1052
1053
    $(".download-list").on("click", function(e){
1054
        e.preventDefault();
1055
        var format = $(this).data("format");
1056
        $("#download_format").val( format );
1057
        $("#download_list").submit();
1058
    });
1059
1047
}); // document.ready
1060
}); // document.ready
1048
1061
1049
function sortMenu( sorting_form ){
1062
function sortMenu( sorting_form ){
(-)a/opac/opac-shelves.pl (-1 / +6 lines)
Lines 33-38 use C4::XSLT; Link Here
33
use Koha::Biblios;
33
use Koha::Biblios;
34
use Koha::Biblioitems;
34
use Koha::Biblioitems;
35
use Koha::CirculationRules;
35
use Koha::CirculationRules;
36
use Koha::CsvProfiles;
36
use Koha::Items;
37
use Koha::Items;
37
use Koha::ItemTypes;
38
use Koha::ItemTypes;
38
use Koha::Patrons;
39
use Koha::Patrons;
Lines 385-390 if ( $op eq 'view' ) { Link Here
385
                itemsloop          => \@items,
386
                itemsloop          => \@items,
386
                sortfield          => $sortfield,
387
                sortfield          => $sortfield,
387
                direction          => $direction,
388
                direction          => $direction,
389
                csv_profiles => [
390
                    Koha::CsvProfiles->search(
391
                        { type => 'marc', used_for => 'export_records', staff_only => 0 }
392
                    )
393
                ],
388
            );
394
            );
389
            if ( $page ) {
395
            if ( $page ) {
390
                my $pager = $contents->pager;
396
                my $pager = $contents->pager;
391
- 

Return to bug 26752