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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/virtualshelves-toolbar.inc (-1 / +1 lines)
Lines 29-35 Link Here
29
<div id="toolbar" class="btn-toolbar">
29
<div id="toolbar" class="btn-toolbar">
30
    <div class="btn-group"><a id="newshelf" class="btn btn-small" href="/cgi-bin/koha/virtualshelves/shelves.pl?op=add_form&amp;referer=[% op %]"><i class="fa fa-plus"></i> New list</a></div>
30
    <div class="btn-group"><a id="newshelf" class="btn btn-small" href="/cgi-bin/koha/virtualshelves/shelves.pl?op=add_form&amp;referer=[% op %]"><i class="fa fa-plus"></i> New list</a></div>
31
31
32
    [% IF op == 'view' %]
32
    [% IF shelf AND op == 'view' %]
33
        [% IF can_manage_shelf %]
33
        [% IF can_manage_shelf %]
34
        <div class="btn-group">
34
        <div class="btn-group">
35
            <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="fa fa-pencil"></i> Edit <span class="caret"></span></button>
35
            <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="fa fa-pencil"></i> Edit <span class="caret"></span></button>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-1 / +1 lines)
Lines 113-119 $(document).ready(function(){ Link Here
113
});
113
});
114
[% END %]
114
[% END %]
115
115
116
[% IF op == 'view' %]
116
[% IF shelf AND op == 'view' %]
117
$(document).ready(function(){
117
$(document).ready(function(){
118
    [% IF ( itemsloop ) %]$('#searchheader').fixFloat();[% END %]
118
    [% IF ( itemsloop ) %]$('#searchheader').fixFloat();[% END %]
119
    $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/shelves.pl\"><i class=\"fa fa-remove\"></i>"+_(" Clear all")+"<\/a>");
119
    $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/shelves.pl\"><i class=\"fa fa-remove\"></i>"+_(" Clear all")+"<\/a>");
(-)a/virtualshelves/shelves.pl (-1 / +1 lines)
Lines 297-302 if ( $op eq 'view' ) { Link Here
297
            }
297
            }
298
        } else {
298
        } else {
299
            push @messages, { type => 'error', code => 'unauthorized_on_view' };
299
            push @messages, { type => 'error', code => 'unauthorized_on_view' };
300
            undef $shelf;
300
        }
301
        }
301
    } else {
302
    } else {
302
        push @messages, { type => 'error', code => 'does_not_exist' };
303
        push @messages, { type => 'error', code => 'does_not_exist' };
303
- 

Return to bug 17316