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

(-)a/installer/data/mysql/atomicupdate/bug_37463-add_SCOCoverImagesCategories_syspref.pl (+12 lines)
Line 0 Link Here
1
use Modern::Perl;
2
 
3
return {
4
    bug_number => "37463",
5
    description => "Add new system preference SCOCoverImagesCategories",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
 
10
        $dbh->do(q{INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('SCOCoverImagesCategories', '1', NULL, 'Cover images will show for checked out items in the self checkout module for selected patron categories:', 'YesNo')});
11
    },
12
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 685-690 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
685
('SavedSearchFilters', '0', NULL, 'Allow staff with permission to create/edit custom search filters', 'YesNo'),
685
('SavedSearchFilters', '0', NULL, 'Allow staff with permission to create/edit custom search filters', 'YesNo'),
686
('SCOAllowCheckin','0','','If enabled, patrons may return items through the Web-based Self Checkout','YesNo'),
686
('SCOAllowCheckin','0','','If enabled, patrons may return items through the Web-based Self Checkout','YesNo'),
687
('SCOBatchCheckoutsValidCategories','',NULL,'Patron categories allowed to checkout in a batch while logged into Self Checkout','Free'),
687
('SCOBatchCheckoutsValidCategories','',NULL,'Patron categories allowed to checkout in a batch while logged into Self Checkout','Free'),
688
('SCOCoverImagesCategories', '1', NULL, 'Cover images will show for checked out items in the self checkout module for selected patron categories:', 'YesNo'),
688
('SCOLoadCheckoutsByDefault','1','','If enabled, load the list of a patrons checkouts when they log in to the Self Checkout','YesNo'),
689
('SCOLoadCheckoutsByDefault','1','','If enabled, load the list of a patrons checkouts when they log in to the Self Checkout','YesNo'),
689
('SCOUserCSS','',NULL,'Add CSS to be included in the SCO module in an embedded <style> tag.','free'),
690
('SCOUserCSS','',NULL,'Add CSS to be included in the SCO module in an embedded <style> tag.','free'),
690
('SCOUserJS','',NULL,'Define custom javascript for inclusion in the SCO module','free'),
691
('SCOUserJS','',NULL,'Define custom javascript for inclusion in the SCO module','free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +7 lines)
Lines 1213-1218 Circulation: Link Here
1213
              syntax: javascript
1213
              syntax: javascript
1214
              class: code
1214
              class: code
1215
    Self check-out module:
1215
    Self check-out module:
1216
        -
1217
            - pref: SCOCoverImagesCategories
1218
              choices:
1219
                  1: Include
1220
                  0: Exclude
1221
            - "Cover images will show for checked out items in the self checkout module for selected patron categories:"
1222
1216
        -
1223
        -
1217
            - "Include the following JavaScript on all pages in the web-based self checkout:"
1224
            - "Include the following JavaScript on all pages in the web-based self checkout:"
1218
            - pref: SCOUserJS
1225
            - pref: SCOUserJS
1219
- 

Return to bug 37463