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

(-)a/installer/data/mysql/atomicupdate/bug-21330.pl (-2 / +4 lines)
Lines 2-15 use Modern::Perl; Link Here
2
2
3
return {
3
return {
4
    bug_number => '21330',
4
    bug_number => '21330',
5
    description => 'Add syspref AuthorityXSLTOpacDetailsDisplay',
5
    description => 'Add XSLT for authority details view in OPAC',
6
    up => sub {
6
    up => sub {
7
        my ($args) = @_;
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
9
10
        $dbh->do(q{
10
        $dbh->do(q{
11
            INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`)
11
            INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`)
12
            VALUES ('AuthorityXSLTOpacDetailsDisplay','','','Enable XSL stylesheet control over authority results page display on intranet','Free')
12
            VALUES ('AuthorityXSLTOpacDetailsDisplay','','','Enable XSL stylesheet control over authority details page in the OPAC','Free')
13
        });
13
        });
14
15
        say $out "Added new system preference 'AuthorityXSLTOpacDetailsDisplay'";
14
    },
16
    },
15
};
17
};
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+5 lines)
Lines 106-111 OPAC: Link Here
106
            - pref: AuthorityXSLTOpacResultsDisplay
106
            - pref: AuthorityXSLTOpacResultsDisplay
107
              class: file
107
              class: file
108
            - '<br />Options:<ul><li>Empty. No XSLT will be applied (<strong>default</strong>)</li><li>Enter a path to a custom XSLT file.</li><li>Enter a URL for an external stylesheet.</li></ul>If you have multiple stylesheets for: <ul><li>different languages: use the placeholder {langcode} - this will be replaced with the current interface language</li><li>authority types: use the placeholder {authtypecode} - this will be replaced with the authority type code'
108
            - '<br />Options:<ul><li>Empty. No XSLT will be applied (<strong>default</strong>)</li><li>Enter a path to a custom XSLT file.</li><li>Enter a URL for an external stylesheet.</li></ul>If you have multiple stylesheets for: <ul><li>different languages: use the placeholder {langcode} - this will be replaced with the current interface language</li><li>authority types: use the placeholder {authtypecode} - this will be replaced with the authority type code'
109
        -
110
            - 'Display authority details in the OPAC using the XSLT stylesheet at: '
111
            - pref: AuthorityXSLTOpacDetailsDisplay
112
              class: file
113
            - '<br />Options:<ul><li>Enter a path to a custom XSLT file.</li><li>Enter a URL for an external stylesheet.</li></ul>If you have multiple stylesheets for: <ul><li>different languages: use the placeholder {langcode} - this will be replaced with the current interface language</li><li>authority types: use the placeholder {authtypecode} - this will be replaced with the authority type code'
109
        -
114
        -
110
            - pref: OpacNoItemTypeImages
115
            - pref: OpacNoItemTypeImages
111
              default: 0
116
              default: 0
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref (-6 lines)
Lines 1-10 Link Here
1
Staff interface:
1
Staff interface:
2
    Appearance:
2
    Appearance:
3
        -
4
            - 'Display authority details in the OPAC using the XSLT stylesheet at: '
5
            - pref: AuthorityXSLTOpacDetailsDisplay
6
              class: file
7
            - '<br />Options:<ul><li>Enter a path to a custom XSLT file.</li><li>Enter a URL for an external stylesheet.</li></ul>If you have multiple stylesheets for: <ul><li>different languages: use the placeholder {langcode} - this will be replaced with the current interface language</li><li>authority types: use the placeholder {authtypecode} - this will be replaced with the authority type code'
8
        -
3
        -
9
            - 'Display authority results in the staff interface using XSLT stylesheet at: '
4
            - 'Display authority results in the staff interface using XSLT stylesheet at: '
10
            - pref: AuthorityXSLTResultsDisplay
5
            - pref: AuthorityXSLTResultsDisplay
11
- 

Return to bug 21330