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

(-)a/installer/data/mysql/atomicupdate/bug_15485_xslt_for_lists.sql (-9 / +14 lines)
Lines 1-19 Link Here
1
INSERT IGNORE INTO systempreferences ( variable, value, options, explanation,type )
1
2
VALUES ('OPACXSLTListsDisplay','','','Enable XSLT stylesheet control over lists pages display on OPAC','Free');
2
INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type )
3
INSERT IGNORE INTO systempreferences ( variable, value, options, explanation,type )
3
 SELECT 'OPACXSLTListsDisplay', COALESCE(value,''), '', 'Enable XSLT stylesheet control over lists pages display on OPAC', 'Free'
4
VALUES ('XSLTListsDisplay','','','Enable XSLT stylesheet control over lists pages display on intranet','Free');
4
 FROM systempreferences WHERE variable='OPACXSLTResultsDisplay';
5
6
INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type )
7
 SELECT 'XSLTListsDisplay', COALESCE(value,''), '', 'Enable XSLT stylesheet control over lists pages display on intranet', 'Free'
8
 FROM systempreferences WHERE variable='XSLTResultsDisplay';
5
9
6
-- $DBversion = '16.06.00.XXX';
10
-- $DBversion = '16.06.00.XXX';
7
-- if ( CheckVersion($DBversion) ) {
11
-- if ( CheckVersion($DBversion) ) {
8
--     $dbh->do(q{
12
--     $dbh->do(q{
9
--         INSERT IGNORE INTO systempreferences ( variable, value, options, explanation,type )
13
--         INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type )
10
--         VALUES ('OPACXSLTListsDisplay','','','Enable XSLT stylesheet control over lists pages display on OPAC','Free')
14
--          SELECT 'OPACXSLTListsDisplay', COALESCE(value,''), '', 'Enable XSLT stylesheet control over lists pages display on OPAC', 'Free'
15
--          FROM systempreferences WHERE variable='OPACXSLTResultsDisplay';
11
--     });
16
--     });
12
17
13
--     $dbh->do(q{
18
--     $dbh->do(q{
14
--         INSERT IGNORE INTO systempreferences ( variable, value, options, explanation,type )
19
--         INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type )
15
--         VALUES ('XSLTListsDisplay','','','Enable XSLT stylesheet control over lists pages display on intranet','Free')
20
--          SELECT 'XSLTListsDisplay', COALESCE(value,''), '', 'Enable XSLT stylesheet control over lists pages display on intranet', 'Free'
16
21
--          FROM systempreferences WHERE variable='XSLTResultsDisplay';
17
--     });
22
--     });
18
23
19
--     print "Upgrade to $DBversion done (Bug 15485: Allow choosing different XSLTs for lists)\n";
24
--     print "Upgrade to $DBversion done (Bug 15485: Allow choosing different XSLTs for lists)\n";
(-)a/installer/data/mysql/sysprefs.sql (-2 / +2 lines)
Lines 359-365 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
359
('opacuserlogin','1',NULL,'Enable or disable display of user login features','YesNo'),
359
('opacuserlogin','1',NULL,'Enable or disable display of user login features','YesNo'),
360
('OPACViewOthersSuggestions','0',NULL,'If ON, allows all suggestions to be displayed in the OPAC','YesNo'),
360
('OPACViewOthersSuggestions','0',NULL,'If ON, allows all suggestions to be displayed in the OPAC','YesNo'),
361
('OPACXSLTDetailsDisplay','default','','Enable XSL stylesheet control over details page display on OPAC','Free'),
361
('OPACXSLTDetailsDisplay','default','','Enable XSL stylesheet control over details page display on OPAC','Free'),
362
('OPACXSLTListsDisplay','','','Enable XSLT stylesheet control over lists pages display on OPAC','Free'),
362
('OPACXSLTListsDisplay','default','','Enable XSLT stylesheet control over lists pages display on OPAC','Free'),
363
('OPACXSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on OPAC','Free'),
363
('OPACXSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on OPAC','Free'),
364
('OpenLibraryCovers','0',NULL,'If ON Openlibrary book covers will be show','YesNo'),
364
('OpenLibraryCovers','0',NULL,'If ON Openlibrary book covers will be show','YesNo'),
365
('OpenLibrarySearch','0',NULL,'If Yes Open Library search results will show in OPAC','YesNo'),
365
('OpenLibrarySearch','0',NULL,'If Yes Open Library search results will show in OPAC','YesNo'),
Lines 534-540 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
534
('XISBN','0','','Use with FRBRizeEditions. If ON, Koha will use the OCLC xISBN web service in the Editions tab on the detail pages. See: http://www.worldcat.org/affiliate/webservices/xisbn/app.jsp','YesNo'),
534
('XISBN','0','','Use with FRBRizeEditions. If ON, Koha will use the OCLC xISBN web service in the Editions tab on the detail pages. See: http://www.worldcat.org/affiliate/webservices/xisbn/app.jsp','YesNo'),
535
('XISBNDailyLimit','999','','The xISBN Web service is free for non-commercial use when usage does not exceed 1000 requests per day','Integer'),
535
('XISBNDailyLimit','999','','The xISBN Web service is free for non-commercial use when usage does not exceed 1000 requests per day','Integer'),
536
('XSLTDetailsDisplay','default','','Enable XSL stylesheet control over details page display on intranet','Free'),
536
('XSLTDetailsDisplay','default','','Enable XSL stylesheet control over details page display on intranet','Free'),
537
('XSLTListsDisplay','','','Enable XSLT stylesheet control over lists pages display on intranet','Free'),
537
('XSLTListsDisplay','default','','Enable XSLT stylesheet control over lists pages display on intranet','Free'),
538
('XSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on intranet','Free'),
538
('XSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on intranet','Free'),
539
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
539
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
540
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo')
540
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo')
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-1 / +1 lines)
Lines 83-89 OPAC: Link Here
83
            - 'Display lists in the OPAC using XSLT stylesheet at: '
83
            - 'Display lists in the OPAC using XSLT stylesheet at: '
84
            - pref: OPACXSLTListsDisplay
84
            - pref: OPACXSLTListsDisplay
85
              class: file
85
              class: file
86
            - '<br />Options:<ul><li><a href="#" class="set_syspref" data-syspref="OPACXSLTListsDisplay" data-value="">Leave empty</a> for the default stylesheet (picked from OPACXSLTResultsDisplay).</li><li> put a path to define an xslt file.</li><li>put an URL for an external specific stylesheet.</li></ul>{langcode} will be replaced with current interface language'
86
            - '<br />Options:<ul><li><a href="#" class="set_syspref" data-syspref="OPACXSLTListsDisplay" data-value="">Leave empty</a> for "no xslt"</li><li>enter "<a href="#" class="set_syspref" data-syspref="OPACXSLTListsDisplay" data-value="default">default</a>" for the default one</li><li> put a path to define a xslt file</li><li>put an URL for an external specific stylesheet.</li></ul>{langcode} will be replaced with current interface language'
87
        -
87
        -
88
            - 'Display OPAC results using XSLT stylesheet at: '
88
            - 'Display OPAC results using XSLT stylesheet at: '
89
            - pref: OPACXSLTResultsDisplay
89
            - pref: OPACXSLTResultsDisplay
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref (-1 / +1 lines)
Lines 59-65 Staff Client: Link Here
59
            - 'Display lists in the staff client using XSLT stylesheet at: '
59
            - 'Display lists in the staff client using XSLT stylesheet at: '
60
            - pref: XSLTListsDisplay
60
            - pref: XSLTListsDisplay
61
              class: file
61
              class: file
62
            - '<br />Options:<ul><li><a href="#" class="set_syspref" data-syspref="XSLTListsDisplay" data-value="">Leave empty</a> for the default stylesheet (picked from XSLTResultsDisplay).</li><li> put a path to define an xslt file.</li><li>put an URL for an external specific stylesheet.</li></ul>{langcode} will be replaced with current interface language'
62
            - '<br />Options:<ul><li><a href="#" class="set_syspref" data-syspref="XSLTListsDisplay" data-value="">Leave empty</a> for "no xslt"</li><li>enter "<a href="#" class="set_syspref" data-syspref="XSLTListsDisplay" data-value="default">default</a>" for the default one</li><li> put a path to define a xslt file</li><li>put an URL for an external specific stylesheet.</li></ul>{langcode} will be replaced with current interface language'
63
        -
63
        -
64
            - 'Display results in the staff client using XSLT stylesheet at: '
64
            - 'Display results in the staff client using XSLT stylesheet at: '
65
            - pref: XSLTResultsDisplay
65
            - pref: XSLTResultsDisplay
(-)a/opac/opac-shelves.pl (-2 / +1 lines)
Lines 249-256 if ( $op eq 'view' ) { Link Here
249
            my $borrower = GetMember( borrowernumber => $loggedinuser );
249
            my $borrower = GetMember( borrowernumber => $loggedinuser );
250
250
251
            # Lists display falls back to search results configuration
251
            # Lists display falls back to search results configuration
252
            my $xslfile = C4::Context->preference('OPACXSLTListsDisplay') ||
252
            my $xslfile = C4::Context->preference('OPACXSLTListsDisplay');
253
                          C4::Context->preference('OPACXSLTResultsDisplay');
254
            my $lang   = $xslfile ? C4::Languages::getlanguage()  : undef;
253
            my $lang   = $xslfile ? C4::Languages::getlanguage()  : undef;
255
            my $sysxml = $xslfile ? C4::XSLT::get_xslt_sysprefs() : undef;
254
            my $sysxml = $xslfile ? C4::XSLT::get_xslt_sysprefs() : undef;
256
255
(-)a/virtualshelves/shelves.pl (-4 / +1 lines)
Lines 215-223 if ( $op eq 'view' ) { Link Here
215
215
216
            my $borrower = GetMember( borrowernumber => $loggedinuser );
216
            my $borrower = GetMember( borrowernumber => $loggedinuser );
217
217
218
            # Lists display falls back to search results configuration
218
            my $xslfile = C4::Context->preference('XSLTListsDisplay');
219
            my $xslfile = C4::Context->preference('XSLTListsDisplay') ||
220
                          C4::Context->preference('XSLTResultsDisplay');
221
            my $lang   = $xslfile ? C4::Languages::getlanguage()  : undef;
219
            my $lang   = $xslfile ? C4::Languages::getlanguage()  : undef;
222
            my $sysxml = $xslfile ? C4::XSLT::get_xslt_sysprefs() : undef;
220
            my $sysxml = $xslfile ? C4::XSLT::get_xslt_sysprefs() : undef;
223
221
224
- 

Return to bug 15485