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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+7 lines)
Lines 674-679 OPAC: Link Here
674
                  0: "Don't hide"
674
                  0: "Don't hide"
675
                  1: Hide
675
                  1: Hide
676
            - "the bibliographic record when all its items are hidden by <a href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OpacHiddenItems'>OpacHiddenItems</a>."
676
            - "the bibliographic record when all its items are hidden by <a href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OpacHiddenItems'>OpacHiddenItems</a>."
677
        -
678
            - pref: OpacAllowPrivateListCreation
679
              default: 1
680
              choices:
681
                  0: "Don't allow"
682
                  1: Allow
683
            - "OPAC users to create private lists."
677
        -
684
        -
678
            - pref: OpacAllowPublicListCreation
685
            - pref: OpacAllowPublicListCreation
679
              default: 1
686
              default: 1
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-2 / +4 lines)
Lines 98-105 Link Here
98
                                        [% ELSE %]
98
                                        [% ELSE %]
99
                                            <a class="dropdown-item disabled" aria-disabled="true" href="#" tabindex="0" role="menuitem">No private lists</a>
99
                                            <a class="dropdown-item disabled" aria-disabled="true" href="#" tabindex="0" role="menuitem">No private lists</a>
100
                                        [% END %]
100
                                        [% END %]
101
                                        <a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=add_form" tabindex="0" role="menuitem">New list</a>
101
                                        [% IF ( Koha.Preference('OpacAllowPublicListCreation') || Koha.Preference('OpacAllowPrivateListCreation') ) %]
102
                                    [% ELSE %]
102
                                            <a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=add_form" tabindex="0" role="menuitem">New list</a>
103
                                        [% END %]
104
                                    [% ELSIF ( Koha.Preference('OpacAllowPublicListCreation') || Koha.Preference('OpacAllowPrivateListCreation') ) %]
103
                                        <a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=add_form" tabindex="0" role="menuitem">Log in to create your own lists</a>
105
                                        <a class="dropdown-item" href="/cgi-bin/koha/opac-shelves.pl?op=add_form" tabindex="0" role="menuitem">Log in to create your own lists</a>
104
                                    [% END # / IF loggedinusername %]
106
                                    [% END # / IF loggedinusername %]
105
                                [% END # / IF opacuserlogin %]
107
                                [% END # / IF opacuserlogin %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc (-1 / +1 lines)
Lines 35-41 Link Here
35
    [% END %]
35
    [% END %]
36
36
37
    [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
37
    [% IF Koha.Preference( 'virtualshelves' ) == 1 %]
38
        [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername ) %]
38
        [% IF ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && loggedinusername && ( Koha.Preference('OpacAllowPublicListCreation') || Koha.Preference('OpacAllowPrivateListCreation') ) ) %]
39
            <li
39
            <li
40
                ><a class="addtoshelf btn btn-link btn-lg" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% biblio.biblionumber | html %]"><i class="fa fa-fw fa-list" aria-hidden="true"></i> Save to your lists</a></li
40
                ><a class="addtoshelf btn btn-link btn-lg" href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% biblio.biblionumber | html %]"><i class="fa fa-fw fa-list" aria-hidden="true"></i> Save to your lists</a></li
41
            >
41
            >
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/result-batch-controls.inc (-3 / +5 lines)
Lines 29-37 Link Here
29
29
30
        [% IF ( ListsEnabled ) %]
30
        [% IF ( ListsEnabled ) %]
31
            <div class="btn-group">
31
            <div class="btn-group">
32
                <button type="button" class="btn btn-link btn-xs dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
32
                [% IF ( Koha.Preference('OpacAllowPublicListCreation') || Koha.Preference('OpacAllowPrivateListCreation') ) %]
33
                    <i class="fa fa-list" aria-hidden="true"></i> Add to list <span class="caret"></span>
33
                    <button type="button" class="btn btn-link btn-xs dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
34
                </button>
34
                        <i class="fa fa-list" aria-hidden="true"></i> Add to list <span class="caret"></span>
35
                    </button>
36
                [% END %]
35
                <div class="dropdown-menu">
37
                <div class="dropdown-menu">
36
                    [% IF add_to_some_private_shelves.count %]
38
                    [% IF add_to_some_private_shelves.count %]
37
                        <h6 class="dropdown-header">Your lists</h6>
39
                        <h6 class="dropdown-header">Your lists</h6>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/title-actions-menu.inc (-1 / +1 lines)
Lines 62-68 Link Here
62
        [% END # IF loggedinusername %]
62
        [% END # IF loggedinusername %]
63
    [% END # if TagsInputEnabled %]
63
    [% END # if TagsInputEnabled %]
64
64
65
    [% IF ( ListsEnabled ) %]
65
    [% IF ( ListsEnabled ) && ( Koha.Preference('OpacAllowPublicListCreation') || Koha.Preference('OpacAllowPrivateListCreation') ) %]
66
        [% IF ( shelf AND op == 'view' ) %]
66
        [% IF ( shelf AND op == 'view' ) %]
67
            <span class="actions"
67
            <span class="actions"
68
                ><a href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% items.biblionumber | uri %]" class="addtoshelf btn btn-link btn-sm"><i class="fa fa-fw fa-list" aria-hidden="true"></i> Save to another list</a></span
68
                ><a href="/cgi-bin/koha/opac-addbybiblionumber.pl?biblionumber=[% items.biblionumber | uri %]" class="addtoshelf btn btn-link btn-sm"><i class="fa fa-fw fa-list" aria-hidden="true"></i> Save to another list</a></span
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-addbybiblionumber.tt (+7 lines)
Lines 1-3 Link Here
1
[% USE Koha %]
1
[% USE raw %]
2
[% USE raw %]
2
[% PROCESS 'i18n.inc' %]
3
[% PROCESS 'i18n.inc' %]
3
[% PROCESS 'html_helpers.inc' %]
4
[% PROCESS 'html_helpers.inc' %]
Lines 126-132 Link Here
126
    [% IF ( authorized && !newshelf && !singleshelf) %]
127
    [% IF ( authorized && !newshelf && !singleshelf) %]
127
        [% #UNLESS ( newshelf ) %]
128
        [% #UNLESS ( newshelf ) %]
128
        [% #UNLESS ( singleshelf ) %]
129
        [% #UNLESS ( singleshelf ) %]
130
        [% IF ( Koha.Preference('OpacAllowPublicListCreation') || Koha.Preference('OpacAllowPrivateListCreation') ) %]
129
        <div class="form-divider">...or...</div>
131
        <div class="form-divider">...or...</div>
132
        [% END %]
130
        [% #END %]
133
        [% #END %]
131
        [% #END %]
134
        [% #END %]
132
    [% END %]
135
    [% END %]
Lines 137-142 Link Here
137
                <div id="add_to_new_list" class="maincontent">
140
                <div id="add_to_new_list" class="maincontent">
138
                    [% IF ( authorized ) %]
141
                    [% IF ( authorized ) %]
139
                        [% UNLESS ( singleshelf ) %]
142
                        [% UNLESS ( singleshelf ) %]
143
                        [% IF ( Koha.Preference('OpacAllowPublicListCreation') || Koha.Preference('OpacAllowPrivateListCreation') ) %]
140
                            <form name="f2" method="post" action="/cgi-bin/koha/opac-addbybiblionumber.pl">
144
                            <form name="f2" method="post" action="/cgi-bin/koha/opac-addbybiblionumber.pl">
141
                                [% INCLUDE 'csrf-token.inc' %]
145
                                [% INCLUDE 'csrf-token.inc' %]
142
                                <fieldset>
146
                                <fieldset>
Lines 148-154 Link Here
148
                                    <div>
152
                                    <div>
149
                                        <label for="public" class="form-label">Category:</label>
153
                                        <label for="public" class="form-label">Category:</label>
150
                                        <select name="public" id="public" class="form-select">
154
                                        <select name="public" id="public" class="form-select">
155
                                            [% IF Koha.Preference('OpacAllowPrivateListCreation') %]
151
                                            <option value="0">Private</option>
156
                                            <option value="0">Private</option>
157
                                            [% END %]
152
                                            [% IF (OpacAllowPublicListCreation) %]
158
                                            [% IF (OpacAllowPublicListCreation) %]
153
                                                <option value="1">Public</option>
159
                                                <option value="1">Public</option>
154
                                            [% END %]
160
                                            [% END %]
Lines 165-170 Link Here
165
                                    <a class="close cancel" href="#">Cancel</a>
171
                                    <a class="close cancel" href="#">Cancel</a>
166
                                </fieldset>
172
                                </fieldset>
167
                            </form>
173
                            </form>
174
                        [% END # / IF Koha.Preference %]
168
                        [% END # / UNLESS singleshelf %]
175
                        [% END # / UNLESS singleshelf %]
169
                    [% ELSE %]
176
                    [% ELSE %]
170
                        <p>
177
                        <p>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt (-1 / +1 lines)
Lines 107-113 Link Here
107
                                <span class="selections">Select titles to: </span>
107
                                <span class="selections">Select titles to: </span>
108
                                <a href="#" class="btn btn-link btn-sm remove deleteshelf disabled" aria-disabled="true"><i class="fa fa-times" aria-hidden="true"></i> Remove</a>
108
                                <a href="#" class="btn btn-link btn-sm remove deleteshelf disabled" aria-disabled="true"><i class="fa fa-times" aria-hidden="true"></i> Remove</a>
109
                                [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
109
                                [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
110
                                    [% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %]
110
                                    [% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername && ( Koha.Preference('OpacAllowPublicListCreation') || Koha.Preference('OpacAllowPrivateListCreation') ) ) %]
111
                                        <a href="#" class="btn btn-link btn-sm newshelf disabled" aria-disabled="true"><i class="fa fa-fw fa-list" aria-hidden="true"></i> Add to list</a>
111
                                        <a href="#" class="btn btn-link btn-sm newshelf disabled" aria-disabled="true"><i class="fa fa-fw fa-list" aria-hidden="true"></i> Add to list</a>
112
                                    [% END %]
112
                                    [% END %]
113
                                    [% IF ( Koha.Preference( 'OPACHoldRequests' ) == 1 ) %]
113
                                    [% IF ( Koha.Preference( 'OPACHoldRequests' ) == 1 ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-6 / +11 lines)
Lines 260-266 Link Here
260
                            <div id="floating" class="sticky">
260
                            <div id="floating" class="sticky">
261
                                <div id="toolbar" class="toolbar clearfix">
261
                                <div id="toolbar" class="toolbar clearfix">
262
                                    <div class="list-actions">
262
                                    <div class="list-actions">
263
                                        <a class="btn btn-link newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form"><i class="fa fa-fw fa-plus" aria-hidden="true"></i> New list</a> <span class="sep">|</span>
263
                                        [% IF ( Koha.Preference('OpacAllowPublicListCreation') || Koha.Preference('OpacAllowPrivateListCreation') ) %]
264
                                            <a class="btn btn-link newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form"><i class="fa fa-fw fa-plus" aria-hidden="true"></i> New list</a> <span class="sep">|</span>
265
                                        [% END %]
264
266
265
                                        <div id="download-list" class="btn-group dropdown">
267
                                        <div id="download-list" class="btn-group dropdown">
266
                                            <a
268
                                            <a
Lines 505-513 Link Here
505
                        [% ELSE %]
507
                        [% ELSE %]
506
                            <div id="toolbar" class="toolbar clearfix">
508
                            <div id="toolbar" class="toolbar clearfix">
507
                                <div class="list-actions">
509
                                <div class="list-actions">
508
                                    <a class="btn btn-link newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form"><i class="fa fa-fw fa-plus" aria-hidden="true"></i> New list</a>
510
                                    [% IF ( Koha.Preference('OpacAllowPublicListCreation') || Koha.Preference('OpacAllowPrivateListCreation') ) %]
511
                                        <a class="btn btn-link newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form"><i class="fa fa-fw fa-plus" aria-hidden="true"></i> New list</a>
512
                                    [% END %]
509
                                    [% IF can_manage_shelf %]
513
                                    [% IF can_manage_shelf %]
510
                                        <span class="sep">|</span>
514
                                        [% IF ( Koha.Preference('OpacAllowPublicListCreation') || Koha.Preference('OpacAllowPrivateListCreation') ) %]
515
                                            <span class="sep">|</span>
516
                                        [% END %]
511
                                        <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="d-inline">
517
                                        <form method="get" action="/cgi-bin/koha/opac-shelves.pl" class="d-inline">
512
                                            <input type="hidden" name="op" value="edit_form" />
518
                                            <input type="hidden" name="op" value="edit_form" />
513
                                            <input type="hidden" name="referer" value="view" />
519
                                            <input type="hidden" name="referer" value="view" />
Lines 689-695 Link Here
689
                                [% END %]
695
                                [% END %]
690
696
691
                                [% SET show_new_list = 0 %]
697
                                [% SET show_new_list = 0 %]
692
                                [% IF !public || Koha.Preference('OpacAllowPublicListCreation') %]
698
                                [% IF Koha.Preference('OpacAllowPrivateListCreation') || Koha.Preference('OpacAllowPublicListCreation') %]
693
                                    [% IF loggedinusername %]
699
                                    [% IF loggedinusername %]
694
                                        [% show_new_list = 1 %]
700
                                        [% show_new_list = 1 %]
695
                                    [% ELSE %]
701
                                    [% ELSE %]
Lines 804-810 Link Here
804
                        </div>
810
                        </div>
805
                        <!-- /.toptabs -->
811
                        <!-- /.toptabs -->
806
                    [% ELSIF NOT loggedinusernumber %]
812
                    [% ELSIF NOT loggedinusernumber %]
807
                        [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
813
                        [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference('OpacAllowPublicListCreation') || Koha.Preference('OpacAllowPrivateListCreation') ) %]
808
                            <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>
814
                            <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>
809
                        [% END %]
815
                        [% END %]
810
                    [% END  # IF op == 'add_form' OR op == 'edit_form' %]
816
                    [% END  # IF op == 'add_form' OR op == 'edit_form' %]
811
- 

Return to bug 39372