[Koha-bugs] [Bug 16648] New: Add Content system preferences for all CSS and XSLT sysprefs that accept a URL.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 3 15:02:17 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16648

            Bug ID: 16648
           Summary: Add Content system preferences for all CSS and XSLT
                    sysprefs that accept a URL.
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: System Administration
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: barton at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com

The following system preferences allow paths to be specified for CSS or XSLT
files:

NoticeCSS
opaclayoutstylesheet
OpacAdditionalStylesheet
intranetcolorstylesheet
intranetstylesheet
SlipCSS

OPACXSLTDetailsDisplay
OPACXSLTResultsDisplay
XSLTDetailsDisplay
XSLTResultsDisplay

This causes administrative headaches, because the CSS or XSLT cannot be stored
in the database -- for instance adding 'NoticeCSS' means that a css file must
be created and hosted somewhere, and these assets risk being lost on server
moves if hosted locally, or are an external point of failure if hosted
remotely.

I suggest that for each CSS or XSLT path syspref, there should be a
corresponding 'Content' variable:

-------------------------+---------------------------------+----------------------------------------------
Path Syspref             | Content Syspref                 | Content Path
-------------------------+---------------------------------+----------------------------------------------
CSS
-------------------------+---------------------------------+----------------------------------------------
NoticeCSS                | NoticeCSSContent                |
cgi-bin/koha/css/NoticeCSS.css
opaclayoutstylesheet     | opaclayoutstylesheetContent     |
cgi-bin/koha/css/opaclayoutstylesheet.css
OpacAdditionalStylesheet | OpacAdditionalStylesheetContent |
cgi-bin/koha/css/OpacAdditionalStylesheet.css
intranetcolorstylesheet  | intranetcolorstylesheetContent  |
cgi-bin/koha/css/intranetcolorstylesheet.css
intranetstylesheet       | intranetstylesheetContent       |
cgi-bin/koha/css/intranetstylesheet.css
SlipCSS                  | SlipCSSContent                  |
cgi-bin/koha/css/SlipCSS.css
-------------------------+---------------------------------+----------------------------------------------
XSLT
-------------------------+---------------------------------+----------------------------------------------
OPACXSLTDetailsDisplay   | OPACXSLTDetailsDisplayContent   |
cgi-bin/koha/xslt/OPACXSLTDetailsDisplay.xslt
OPACXSLTResultsDisplay   | OPACXSLTResultsDisplayContent   |
cgi-bin/koha/xslt/OPACXSLTResultsDisplay.xslt
XSLTDetailsDisplay       | XSLTDetailsDisplayContent       |
cgi-bin/koha/xslt/XSLTDetailsDisplay.xslt
XSLTResultsDisplay       | XSLTResultsDisplayContent       |
cgi-bin/koha/xslt/XSLTResultsDisplay.xslt
-------------------------+---------------------------------+----------------------------------------------

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list