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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-2 / +2 lines)
Lines 686-692 Link Here
686
                                <div id="toolbar" class="toolbar"><a class="btn btn-link newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form"><i class="fa fa-plus"></i> New list</a></div>
686
                                <div id="toolbar" class="toolbar"><a class="btn btn-link newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form"><i class="fa fa-plus"></i> New list</a></div>
687
                            [% ELSE %]
687
                            [% ELSE %]
688
                                [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
688
                                [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
689
                                    <div class="alert alert-info"><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>
689
                                    <div class="alert alert-info"><a href="/cgi-bin/koha/opac-shelves.pl?op=add_form">Log in to create a new list</a></div>
690
                                [% END %]
690
                                [% END %]
691
                            [% END %]
691
                            [% END %]
692
692
Lines 761-767 Link Here
761
                            </div> [%# <div class="toptabs ui-tabs ui-widget ui-widget-content ui-corner-all"> %]
761
                            </div> [%# <div class="toptabs ui-tabs ui-widget ui-widget-content ui-corner-all"> %]
762
                        [% ELSIF NOT loggedinusernumber %]
762
                        [% ELSIF NOT loggedinusernumber %]
763
                            [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
763
                            [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
764
                                <div class="alert alert-info"><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new lists.</div>
764
                                <div class="alert alert-info"><a href="/cgi-bin/koha/opac-shelves.pl?op=add_form">Log in to create a new list</a></div>
765
                            [% END %]
765
                            [% END %]
766
                        [% END  # IF loggedinusername %]
766
                        [% END  # IF loggedinusername %]
767
                </div> <!-- / #usershelves -->
767
                </div> <!-- / #usershelves -->
(-)a/opac/opac-shelves.pl (-9 / +19 lines)
Lines 50-63 if ( ! C4::Context->preference('virtualshelves') ) { Link Here
50
    exit;
50
    exit;
51
}
51
}
52
52
53
my ( $template, $loggedinuser, $cookie ) = get_template_and_user({
53
my $op = $query->param('op') || 'list';
54
        template_name   => $template_name,
54
my ( $template, $loggedinuser, $cookie );
55
        query           => $query,
55
56
        type            => "opac",
56
if( $op eq 'view' || $op eq 'list' ){
57
        authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ),
57
    ( $template, $loggedinuser, $cookie ) = get_template_and_user({
58
    });
58
            template_name   => $template_name,
59
59
            query           => $query,
60
my $op       = $query->param('op')       || 'list';
60
            type            => "opac",
61
            authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ),
62
        });
63
} else {
64
    ( $template, $loggedinuser, $cookie ) = get_template_and_user({
65
            template_name   => $template_name,
66
            query           => $query,
67
            type            => "opac",
68
            authnotrequired => 0,
69
        });
70
}
71
61
my $referer  = $query->param('referer')  || $op;
72
my $referer  = $query->param('referer')  || $op;
62
my $category = $query->param('category') || 1;
73
my $category = $query->param('category') || 1;
63
my ( $shelf, $shelfnumber, @messages );
74
my ( $shelf, $shelfnumber, @messages );
64
- 

Return to bug 24249