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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-2 / +30 lines)
Lines 365-370 Link Here
365
                                            </span>
365
                                            </span>
366
                                        [% END %]
366
                                        [% END %]
367
367
368
                                        [% IF Koha.Preference( 'opacbookbag' ) == 1 %]
369
                                            <a href="#" class="btn btn-link listaddtocart disabled"><i class="fa fa-shopping-cart" aria-hidden="true"></i> Add to cart</a>
370
                                        [% END %]
371
372
                                        [% IF Koha.Preference('virtualshelves') %]
373
                                            <a href="#" class="btn btn-link addtolist disabled"><i class="fa fa-list" aria-hidden="true"></i> Add to list</a>
374
                                        [% END %]
375
368
                                        [% IF ( TagsInputEnabled && loggedinusername ) %]
376
                                        [% IF ( TagsInputEnabled && loggedinusername ) %]
369
                                            <span id="addtags">
377
                                            <span id="addtags">
370
                                                <a id="tagsel_tag" href="#" class="btn btn-link disabled"><i class="fa fa-fw fa-tag" aria-hidden="true"></i> Tag</a>
378
                                                <a id="tagsel_tag" href="#" class="btn btn-link disabled"><i class="fa fa-fw fa-tag" aria-hidden="true"></i> Tag</a>
Lines 383-389 Link Here
383
                                </div> <!-- / .selections-toolbar -->
391
                                </div> <!-- / .selections-toolbar -->
384
                            </div> <!-- /#floating -->
392
                            </div> <!-- /#floating -->
385
393
386
                            <form action="/cgi-bin/koha/opac-shelves.pl" method="post" id="myform" name="myform">
394
                            <form action="/cgi-bin/koha/opac-shelves.pl" method="post" id="myform" name="bookbag_form">
387
                                [% IF can_manage_shelf %]
395
                                [% IF can_manage_shelf %]
388
                                    <input type="hidden" name="op" value="remove_biblios" />
396
                                    <input type="hidden" name="op" value="remove_biblios" />
389
                                    <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
397
                                    <input type="hidden" name="shelfnumber" value="[% shelf.shelfnumber | html %]" />
Lines 1079-1084 $(function() { Link Here
1079
        $("#download_list").submit();
1087
        $("#download_list").submit();
1080
    });
1088
    });
1081
1089
1090
    $(".listaddtocart").on("click", function(e){
1091
        e.preventDefault();
1092
        addMultiple();
1093
    });
1094
1095
    $(".addtolist").on("click", function(e){
1096
        e.preventDefault();
1097
        cartList();
1098
    });
1099
1100
    function cartList(){
1101
        [% IF ( loggedinusername ) %]
1102
            if (vShelfAdd()) {
1103
                Dopop('/cgi-bin/koha/opac-addbybiblionumber.pl?' + vShelfAdd());
1104
            }
1105
        [% ELSE %]
1106
            alert(_("You must be logged in to create or add to lists"));
1107
        [% END %]
1108
        return false;
1109
    }
1110
1082
}); // document.ready
1111
}); // document.ready
1083
1112
1084
function sortMenu( sorting_form ){
1113
function sortMenu( sorting_form ){
1085
- 

Return to bug 15222