[Koha-bugs] [Bug 12162] 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
Wed Apr 30 11:49:07 CEST 2014


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

--- Comment #5 from Marc Véron <veron at veron.ch> ---
Created attachment 27811
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=27811&action=edit
Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per
branch

This patch implements branch specific CSS for Opac Main page and OPAC Search.
If the proof of concept works out, other Opac pages can be adapted.

To test:
Apply patch
Edit system preference OPACUserCSS and insert something like

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

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

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

Go to Opac. Switch between branches CPL and FFL, see how background color
changes...

Changes to previous patch:
New version using branch-FOO as class name. Prog theme added for this proof of
concept.

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


More information about the Koha-bugs mailing list