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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (-1 / +1 lines)
Lines 124-130 Link Here
124
        var MSG_ITEM_IN_CART = _("In your cart");
124
        var MSG_ITEM_IN_CART = _("In your cart");
125
        var MSG_IN_YOUR_CART = _("Items in your cart: ");
125
        var MSG_IN_YOUR_CART = _("Items in your cart: ");
126
        var MSG_ITEM_NOT_IN_CART = _("Add to your cart");
126
        var MSG_ITEM_NOT_IN_CART = _("Add to your cart");
127
        var MSG_NO_RECORD_SELECTED = _("No item was selected");
127
        var MSG_NEED_COOKIE_ENABLED = _("Your browser does not accept cookies, you must accept them to browse selected results.");
128
    [% END %]
128
    [% END %]
129
    [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) %]
129
    [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) %]
130
        var MSG_TAGS_DISABLED = _("Sorry, tags are not enabled on this system.");
130
        var MSG_TAGS_DISABLED = _("Sorry, tags are not enabled on this system.");
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-3 / +9 lines)
Lines 163-169 Link Here
163
                                                </div>
163
                                                </div>
164
                                            [% END %]
164
                                            [% END %]
165
                                            [% IF Koha.Preference('OpacBrowseResults') %]
165
                                            [% IF Koha.Preference('OpacBrowseResults') %]
166
                                              <span class="details_link"><a href="#">Browse selected records</a></span>
166
                                              <span class="details_link"></span>
167
                                            [% END %]
167
                                            [% END %]
168
                                        </span> <!-- / .links -->
168
                                        </span> <!-- / .links -->
169
                                </div> <!-- / #selections-toolbar -->
169
                                </div> <!-- / #selections-toolbar -->
Lines 681-690 $(document).ready(function(){ Link Here
681
      [% END %]
681
      [% END %]
682
      enableCheckboxActions();
682
      enableCheckboxActions();
683
    });
683
    });
684
685
    $("span.details_link").html("<a href=\"#\" class=\"disabled\">"+_("Browse selected records")+"<\/a>");
684
    $(".details_link a").click(function(e) {
686
    $(".details_link a").click(function(e) {
685
      if ( $(this).hasClass("disabled") == true ) {
687
      if ( $(this).hasClass("disabled") == true ) {
686
        e.preventDefault();
688
        e.preventDefault();
687
        alert(MSG_NO_RECORD_SELECTED);
689
        var checkedBoxes = $(".searchresults :checkbox:checked");
690
        if ($(checkedBoxes).size() == 0) {
691
            alert(MSG_NO_RECORD_SELECTED);
692
        } else {
693
            alert(MSG_NEED_COOKIE_ENABLED);
694
        }
688
        return false;
695
        return false;
689
      }
696
      }
690
    });
697
    });
691
- 

Return to bug 10858