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

(-)a/installer/data/mysql/atomicupdate/bug_27503-add_AllowLists_syspref.perl (+5 lines)
Line 0 Link Here
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{UPDATE systempreferences SET variable="AllowLists" WHERE variable="virtualshelves" });
4
    NewVersion( $DBversion, 27503, "Renaming virtualshelves to AllowLists");
5
}
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +1 lines)
Lines 713-719 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
713
('viewISBD','1','','Allow display of ISBD view of bibiographic records','YesNo'),
713
('viewISBD','1','','Allow display of ISBD view of bibiographic records','YesNo'),
714
('viewLabeledMARC','0','','Allow display of labeled MARC view of bibiographic records','YesNo'),
714
('viewLabeledMARC','0','','Allow display of labeled MARC view of bibiographic records','YesNo'),
715
('viewMARC','1','','Allow display of MARC view of bibiographic records','YesNo'),
715
('viewMARC','1','','Allow display of MARC view of bibiographic records','YesNo'),
716
('virtualshelves','1','','If ON, enables Lists management','YesNo'),
716
('AllowLists','1','','If ON, enables Lists management','YesNo'),
717
('WaitingNotifyAtCheckin','0',NULL,'If ON, notify librarians of waiting holds for the patron whose items they are checking in.','YesNo'),
717
('WaitingNotifyAtCheckin','0',NULL,'If ON, notify librarians of waiting holds for the patron whose items they are checking in.','YesNo'),
718
('WebBasedSelfCheck','0',NULL,'If ON, enables the web-based self-check system','YesNo'),
718
('WebBasedSelfCheck','0',NULL,'If ON, enables the web-based self-check system','YesNo'),
719
('WhenLostChargeReplacementFee','1',NULL,'If ON, Charge the replacement price when a patron loses an item.','YesNo'),
719
('WhenLostChargeReplacementFee','1',NULL,'If ON, Charge the replacement price when a patron loses an item.','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc (-1 / +1 lines)
Lines 161-167 CAN_user_serials_create_subscription ) %] Link Here
161
                </li>
161
                </li>
162
            </ul>
162
            </ul>
163
        </div>
163
        </div>
164
    [% END # /IF virtualshelves %]
164
    [% END # /IF AllowLists %]
165
165
166
    <div class="btn-group"><a id="printbiblio" class="btn btn-default"><i class="fa fa-print"></i> Print</a></div>
166
    <div class="btn-group"><a id="printbiblio" class="btn btn-default"><i class="fa fa-print"></i> Print</a></div>
167
167
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref (-1 / +1 lines)
Lines 54-60 Administration: Link Here
54
                  '#': "#'s"
54
                  '#': "#'s"
55
        -
55
        -
56
            - "Allow staff and patrons to create and view saved lists of books: "
56
            - "Allow staff and patrons to create and view saved lists of books: "
57
            - pref: virtualshelves
57
            - pref: AllowLists
58
              choices:
58
              choices:
59
                  yes: "Yes"
59
                  yes: "Yes"
60
                  no: "No"
60
                  no: "No"
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-1 / +1 lines)
Lines 125-131 Link Here
125
                                        </li>
125
                                        </li>
126
                                    </ul>
126
                                    </ul>
127
                                </div>
127
                                </div>
128
                            [% END # /IF virtualshelves %]
128
                            [% END # /IF AllowLists %]
129
129
130
                            [% IF ( CAN_user_reserveforothers_place_holds && DisplayMultiPlaceHold ) %]
130
                            [% IF ( CAN_user_reserveforothers_place_holds && DisplayMultiPlaceHold ) %]
131
                                [% IF ( holdfor or holdforclub ) %]
131
                                [% IF ( holdfor or holdforclub ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-1 / +1 lines)
Lines 78-84 Link Here
78
                            [% END # / IF opacuserlogin %]
78
                            [% END # / IF opacuserlogin %]
79
                        </div> <!-- / .dropdown-menu -->
79
                        </div> <!-- / .dropdown-menu -->
80
                    </li> <!-- / .nav-item.dropdown -->
80
                    </li> <!-- / .nav-item.dropdown -->
81
                [% END # / IF virtualshelves %]
81
                [% END # / IF AllowLists %]
82
            </ul> <!-- / .navbar-nav -->
82
            </ul> <!-- / .navbar-nav -->
83
83
84
            [% IF Koha.Preference( 'opacuserlogin' ) == 1 ||  Koha.Preference( 'EnableOpacSearchHistory') || Koha.Preference( 'opaclanguagesdisplay' ) %]
84
            [% IF Koha.Preference( 'opacuserlogin' ) == 1 ||  Koha.Preference( 'EnableOpacSearchHistory') || Koha.Preference( 'opaclanguagesdisplay' ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-2 / +2 lines)
Lines 266-272 Link Here
266
                                                                [% END %]
266
                                                                [% END %]
267
                                                            [% END %]
267
                                                            [% END %]
268
                                                        [% END # IF RequestOnOpac %]
268
                                                        [% END # IF RequestOnOpac %]
269
                                                    [% END # IF virtualshelves %]
269
                                                    [% END # IF AllowLists %]
270
                                                [% END # IF opacbookbag%]
270
                                                [% END # IF opacbookbag%]
271
                                            </td>
271
                                            </td>
272
272
Lines 811-817 Link Here
811
                        param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>";
811
                        param1 += "<option value=\"morelists\">[ "+_("More lists")+" ]<\/option>";
812
                    [% END %]
812
                    [% END %]
813
                    param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>"
813
                    param1 +="<option value=\"newlist\">"+_("[ New list ]")+"<\/option>"
814
                [% END # /IF virtualshelves %]
814
                [% END # /IF AllowLists %]
815
                param1 += "<\/select> <input type=\"submit\" class=\"btn btn-sm btn-primary\" value=\""+_("Save")+"\" />";
815
                param1 += "<\/select> <input type=\"submit\" class=\"btn btn-sm btn-primary\" value=\""+_("Save")+"\" />";
816
            [% END # /IF opacbookbag || virtualshelves %]
816
            [% END # /IF opacbookbag || virtualshelves %]
817
817
(-)a/opac/opac-serial-issues.pl (-1 / +1 lines)
Lines 76-82 if ( $selectview eq "full" ) { Link Here
76
        yearmax        => $yearmax,
76
        yearmax        => $yearmax,
77
        bibliotitle    => $title,
77
        bibliotitle    => $title,
78
        suggestion     => C4::Context->preference("suggestion"),
78
        suggestion     => C4::Context->preference("suggestion"),
79
        virtualshelves => C4::Context->preference("virtualshelves"),
79
        virtualshelves => C4::Context->preference("AllowLists"),
80
    );
80
    );
81
81
82
}
82
}
(-)a/opac/opac-shareshelf.pl (-2 / +2 lines)
Lines 38-45 use Koha::Virtualshelves; Link Here
38
use Koha::Virtualshelfshares;
38
use Koha::Virtualshelfshares;
39
39
40
40
41
# if virtualshelves is disabled, leave immediately
41
# if AllowLists is disabled, leave immediately
42
if ( ! C4::Context->preference('virtualshelves') ) {
42
if ( ! C4::Context->preference('AllowLists') ) {
43
    my $query = CGI->new;
43
    my $query = CGI->new;
44
    print $query->redirect("/cgi-bin/koha/errors/404.pl");
44
    print $query->redirect("/cgi-bin/koha/errors/404.pl");
45
    exit;
45
    exit;
(-)a/opac/opac-shelves.pl (-2 / +2 lines)
Lines 46-53 my $query = CGI->new; Link Here
46
46
47
my $template_name = $query->param('rss') ? "opac-shelves-rss.tt" : "opac-shelves.tt";
47
my $template_name = $query->param('rss') ? "opac-shelves-rss.tt" : "opac-shelves.tt";
48
48
49
# if virtualshelves is disabled, leave immediately
49
# if AllowLists is disabled, leave immediately
50
if ( ! C4::Context->preference('virtualshelves') ) {
50
if ( ! C4::Context->preference('AllowLists') ) {
51
    print $query->redirect("/cgi-bin/koha/errors/404.pl");
51
    print $query->redirect("/cgi-bin/koha/errors/404.pl");
52
    exit;
52
    exit;
53
}
53
}
(-)a/serials/serials-collection.pl (-2 / +1 lines)
Lines 200-206 $template->param( Link Here
200
          yearmax =>$yearmax,
200
          yearmax =>$yearmax,
201
          bibliotitle => $title,
201
          bibliotitle => $title,
202
          suggestion => C4::Context->preference("suggestion"),
202
          suggestion => C4::Context->preference("suggestion"),
203
          virtualshelves => C4::Context->preference("virtualshelves"),
203
          virtualshelves => C4::Context->preference("AllowLists"),
204
          routing => C4::Context->preference("RoutingSerials"),
204
          routing => C4::Context->preference("RoutingSerials"),
205
          subscr=>scalar $query->param('subscriptionid'),
205
          subscr=>scalar $query->param('subscriptionid'),
206
          subscriptioncount => $subscriptioncount,
206
          subscriptioncount => $subscriptioncount,
207
- 

Return to bug 27503