[Koha-bugs] [Bug 12162] New: Add class="branchcode" to body tag to make OPAC CSS-styleable per branch

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 29 22:14:40 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12162

            Bug ID: 12162
           Summary: Add class="branchcode" to body tag to make OPAC
                    CSS-styleable per branch
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: OPAC
          Assignee: oleonard at myacpl.org
          Reporter: veron at veron.ch
        QA Contact: testopia at bugs.koha-community.org

Libraries with multiple branches should be able to change look&feel of OPAC
using branch specific CSS (e.g. in in OPACUserCSS)

This can be done using a branch specific class in the body tag
(class="branchcode")

That would be something like
<body id="opac-main" class="CPL">

Using this class, we could style branch specific pages e.g. in OPACUserCSS:

/*Background for all branches*/
body {
background-color: red;
}

/*Yellow background and pink border for branch with code CPL*/
body.CPL {
background-color: yellow;
border: 10px solid pink;
}

/*Green background and red border for branch with code CPL*/
body.FFL {
background-color: green;
border: 10px solid red;
}

I did some tests as a proof of concept. Patch follows.

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


More information about the Koha-bugs mailing list