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

(-)a/catalogue/search.pl (+1 lines)
Lines 727-732 $template->param( Link Here
727
            displayFacetCount=> C4::Context->preference('displayFacetCount')||0,
727
            displayFacetCount=> C4::Context->preference('displayFacetCount')||0,
728
            scan => $scan,
728
            scan => $scan,
729
            search_error => $error,
729
            search_error => $error,
730
            loggedinuser => $borrowernumber,
730
);
731
);
731
732
732
if ($query_desc || $limit_desc) {
733
if ($query_desc || $limit_desc) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/virtualshelves-toolbar.inc (-20 lines)
Lines 11-36 $(document).ready(function(){ Link Here
11
    [% END %]
11
    [% END %]
12
});
12
});
13
13
14
[% IF op == 'view' %]
15
    function sendList(){
16
        open(CGIBIN+'virtualshelves/sendshelf.pl?shelfid=[% shelf.shelfnumber %]','win_form','scrollbars=no,resizable=no,height=300,width=450,top=50,left=100');
17
     }
18
19
     $(document).ready(function() {
20
        $("#sendlist").click(function(){
21
            sendList();
22
            return false;
23
        });
24
        $("#deleteshelf").click(function(e){
25
            if(confirm(_("Are you sure you want to delete this list?"))){
26
                return true;
27
            } else {
28
                e.preventDefault();
29
            }
30
        });
31
     });
32
[% END %]
33
34
//]]>
14
//]]>
35
</script>
15
</script>
36
16
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-4 / +7 lines)
Lines 72-77 Link Here
72
            [% END %]
72
            [% END %]
73
73
74
            [% IF Koha.Preference('virtualshelves') %]
74
            [% IF Koha.Preference('virtualshelves') %]
75
                [% UNLESS add_to_some_private_shelves.count == 0 && add_to_some_public_shelves.count == 0 %]
75
                <div class="btn-group">
76
                <div class="btn-group">
76
                    <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
77
                    <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
77
                        <i class="fa fa-list"></i> Add to list <span class="caret"></span>
78
                        <i class="fa fa-list"></i> Add to list <span class="caret"></span>
Lines 109-120 Link Here
109
                                <a href="#" class="addtolist morelists">More lists</a>
110
                                <a href="#" class="addtolist morelists">More lists</a>
110
                            </li>
111
                            </li>
111
                        [% END %]
112
                        [% END %]
112
                        <li>
113
                        [% UNLESS loggedinuser == 0 %]
113
                            <a href="#" class="addtolist newlist">New list</a>
114
                            <li>
114
                        </li>
115
                                <a href="#" class="addtolist newlist">New list</a>
116
                            </li>
117
                        [% END %]
115
                    </ul>
118
                    </ul>
116
                </div>
119
                </div>
117
            [% END %]
120
            [% END %][% END %]
118
121
119
122
120
                [% IF ( CAN_user_reserveforothers && DisplayMultiPlaceHold ) %]
123
                [% IF ( CAN_user_reserveforothers && DisplayMultiPlaceHold ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt (-1 / +4 lines)
Lines 72-81 Link Here
72
	  <input type="hidden" name="biblionumbers" value="[% biblionumbers %]" />
72
	  <input type="hidden" name="biblionumbers" value="[% biblionumbers %]" />
73
	[% END %]
73
	[% END %]
74
	</fieldset>
74
	</fieldset>
75
[% UNLESS loggedinuser == 0 %]<p>... or...</p>[% END %]
75
76
76
	<p>... or...</p>
77
[% END %]
77
[% END %]
78
78
79
[% UNLESS loggedinuser == 0 %]
80
79
    <fieldset class="rows"><legend>Add to a new list:</legend>
81
    <fieldset class="rows"><legend>Add to a new list:</legend>
80
	<ol><li>
82
	<ol><li>
81
	    <label for="newvirtualshelf">
83
	    <label for="newvirtualshelf">
Lines 99-104 Link Here
99
	</li></ol>
101
	</li></ol>
100
    </fieldset>
102
    </fieldset>
101
103
104
[% END %]
102
105
103
[% END %]
106
[% END %]
104
107
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-1 / +3 lines)
Lines 577-583 Link Here
577
                    [% IF add_to_some_private_shelves.count > 10 or add_to_some_public_shelves.count > 10 %]
577
                    [% IF add_to_some_private_shelves.count > 10 or add_to_some_public_shelves.count > 10 %]
578
                        param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>";
578
                        param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>";
579
                    [% END %]
579
                    [% END %]
580
                    param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>"
580
                    [% UNLESS loggedinuser == 0 %]
581
                        param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>"
582
                    [% END %]
581
                [% END %]
583
                [% END %]
582
                param1 += "<\/select> <button id=\"cartsubmit\" type=\"submit\" class=\"btn btn-default btn-xs\">"+_("Save")+"</button>";
584
                param1 += "<\/select> <button id=\"cartsubmit\" type=\"submit\" class=\"btn btn-default btn-xs\">"+_("Save")+"</button>";
583
                $("span.addto").html(param1);
585
                $("span.addto").html(param1);
(-)a/virtualshelves/addbybiblionumber.pl (-1 / +1 lines)
Lines 205-209 $template->param( Link Here
205
    newshelf => $newshelf || 0,
205
    newshelf => $newshelf || 0,
206
    authorized => $authorized,
206
    authorized => $authorized,
207
    errcode    => $errcode,
207
    errcode    => $errcode,
208
    loggedinuser => $loggedinuser,
208
);
209
);
209
output_html_with_http_headers $query, $cookie, $template->output;
210
output_html_with_http_headers $query, $cookie, $template->output;
210
- 

Return to bug 17218