[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
Tue Apr 29 22:43:07 CEST 2014


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

--- Comment #1 from Marc Véron <veron at veron.ch> ---
Created attachment 27784
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=27784&action=edit
[Proof of concept] 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.CPL {
background-color: yellow;
border: 10px solid pink;
}

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

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

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


More information about the Koha-bugs mailing list