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

(-)a/installer/data/mysql/atomicupdate/bug_39860.pl (+19 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_success say_info);
3
4
return {
5
    bug_number  => "39860",
6
    description => "Add the ExtraContentForXSLTDisplay system preference",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        # Do you stuffs here
12
        $dbh->do(
13
            q{
14
            INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`)
15
            VALUES ('ExtraContentForXSLTDisplay','','','Enable additional content in XSLT displays','Free')
16
        }
17
        );
18
    },
19
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 273-278 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
273
('ExpireReservesOnHolidays', '1', NULL, 'If false, reserves at a library will not be canceled on days the library is not open.', 'YesNo'),
273
('ExpireReservesOnHolidays', '1', NULL, 'If false, reserves at a library will not be canceled on days the library is not open.', 'YesNo'),
274
('ExportCircHistory', 0, NULL, "Display the export circulation options",  'YesNo' ),
274
('ExportCircHistory', 0, NULL, "Display the export circulation options",  'YesNo' ),
275
('ExportRemoveFields','',NULL,'List of fields for non export in circulation.pl (separated by a space)','Free'),
275
('ExportRemoveFields','',NULL,'List of fields for non export in circulation.pl (separated by a space)','Free'),
276
('ExtraContentForXSLTDisplay','','','ExtraContentForXSLTDisplay','Free'),
276
('ExtendedPatronAttributes','1',NULL,'Use extended patron IDs and attributes','YesNo'),
277
('ExtendedPatronAttributes','1',NULL,'Use extended patron IDs and attributes','YesNo'),
277
('FacetLabelTruncationLength','20',NULL,'Specify the facet max length in OPAC','Integer'),
278
('FacetLabelTruncationLength','20',NULL,'Specify the facet max length in OPAC','Integer'),
278
('FacetMaxCount','20',NULL,'Specify the max facet count for each category','Integer'),
279
('FacetMaxCount','20',NULL,'Specify the max facet count for each category','Integer'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref (-1 / +6 lines)
Lines 77-82 Staff interface: Link Here
77
            - pref: XSLTListsDisplay
77
            - pref: XSLTListsDisplay
78
              class: file
78
              class: file
79
            - '<br />Options:<ul><li>Enter "<a href="#" class="set_syspref" data-syspref="XSLTListsDisplay" data-value="default">default</a>" for the default stylesheet</li><li>Put a path to define an xslt file</li><li>Put a URL for an external specific stylesheet.</li></ul>If you have multiple stylesheets for different languages the placeholder {langcode} will be replaced with current interface language.'
79
            - '<br />Options:<ul><li>Enter "<a href="#" class="set_syspref" data-syspref="XSLTListsDisplay" data-value="default">default</a>" for the default stylesheet</li><li>Put a path to define an xslt file</li><li>Put a URL for an external specific stylesheet.</li></ul>If you have multiple stylesheets for different languages the placeholder {langcode} will be replaced with current interface language.'
80
        -
81
            - "Additional content for the staff interface XSLT displays:"
82
            - pref: ExtraContentForXSLTDisplay
83
              type: textarea
84
              syntax: html
85
              class: code
80
        -
86
        -
81
            - 'Display results in the staff interface using XSLT stylesheet at: '
87
            - 'Display results in the staff interface using XSLT stylesheet at: '
82
            - pref: XSLTResultsDisplay
88
            - pref: XSLTResultsDisplay
83
- 

Return to bug 39860