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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/virtualshelves-toolbar.inc (-4 / +16 lines)
Lines 1-8 Link Here
1
<script type="text/javascript">
1
<script type="text/javascript">
2
//<![CDATA[
2
//<![CDATA[
3
3
4
[% IF op == 'view' %]
4
$(document).ready(function(){
5
    [% IF loggedinuser == 0 %]
6
        $("#newshelf").click(function(e){
7
            e.preventDefault();
8
            alert(_("Lists cannot be created with the database administrator account."));
9
        });
10
    [% END %]
11
});
5
12
13
[% IF op == 'view' %]
6
    function sendList(){
14
    function sendList(){
7
        open(CGIBIN+'virtualshelves/sendshelf.pl?shelfid=[% shelf.shelfnumber %]','win_form','scrollbars=no,resizable=no,height=300,width=450,top=50,left=100');
15
        open(CGIBIN+'virtualshelves/sendshelf.pl?shelfid=[% shelf.shelfnumber %]','win_form','scrollbars=no,resizable=no,height=300,width=450,top=50,left=100');
8
     }
16
     }
Lines 20-34 Link Here
20
            }
28
            }
21
        });
29
        });
22
     });
30
     });
23
24
[% END %]
31
[% END %]
25
32
26
//]]>
33
//]]>
27
</script>
34
</script>
28
35
29
<div id="toolbar" class="btn-toolbar">
36
<div id="toolbar" class="btn-toolbar">
30
    <div class="btn-group"><a id="newshelf" class="btn btn-default btn-sm" href="/cgi-bin/koha/virtualshelves/shelves.pl?op=add_form&amp;referer=[% op %]"><i class="fa fa-plus"></i> New list</a></div>
37
    <div class="btn-group">
31
38
        [% IF loggedinuser == 0 %]
39
            <a id="newshelf" class="btn btn-default btn-sm" href="/cgi-bin/koha/virtualshelves/shelves.pl?op=add_form&amp;referer=[% op %]" disabled="disabled"><i class="fa fa-plus"></i> New list</a>
40
        [% ELSE %]
41
            <a id="newshelf" class="btn btn-default btn-sm" href="/cgi-bin/koha/virtualshelves/shelves.pl?op=add_form&amp;referer=[% op %]"><i class="fa fa-plus"></i> New list</a>
42
        [% END %]
43
    </div>
32
    [% IF shelf AND op == 'view' %]
44
    [% IF shelf AND op == 'view' %]
33
        [% IF can_manage_shelf %]
45
        [% IF can_manage_shelf %]
34
        <div class="btn-group">
46
        <div class="btn-group">
(-)a/virtualshelves/shelves.pl (-1 / +1 lines)
Lines 327-332 $template->param( Link Here
327
    category => $category,
327
    category => $category,
328
    print    => scalar $query->param('print') || 0,
328
    print    => scalar $query->param('print') || 0,
329
    csv_profiles => [ Koha::CsvProfiles->search({ type => 'marc', used_for => 'export_records' }) ],
329
    csv_profiles => [ Koha::CsvProfiles->search({ type => 'marc', used_for => 'export_records' }) ],
330
    loggedinuser => $loggedinuser,
330
);
331
);
331
332
332
output_html_with_http_headers $query, $cookie, $template->output;
333
output_html_with_http_headers $query, $cookie, $template->output;
333
- 

Return to bug 17218