[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
Mon Sep 22 09:41:38 CEST 2014


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

--- Comment #33 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 31803
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=31803&action=edit
[SIGNED OFF] Bug 12162 - Add class="branchcode" to body tag to make OPAC
CSS-styleable per branch

This patch adds a branch sepecific class to all OPAC pages.

Example:
If not logged in, opac-main.pl displays:
<body ID="opac-main" class="branch-default" >
If logged in at branch FFL, it displays:
<body ID="opac-main" class="branch-FFL" >

If you log in, opac-user.pl should display
<body ID="opac-user" class="branch-FFL scrollto" >

To test:
1)
Apply patch.

2)
Add to syspref OPACUserCSS something highly visible, e.g. for branch FFL:
.branch-FFL {
background-color: yellow;
border: 10px solid red;
}

3)
Go to OPAC and login in with a user with home branch FFL

4)
Verify that colors change as appropriate.

5)
Log out. Verify that colors display as before or as defined in class
branch-default in OPACUserCSS

6)
Display patch in patch diff view, verify that ids and classes in body tag are
consistent with params bodyid and bodyclass in INCLUDE line

7)
Search for regressions

Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

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


More information about the Koha-bugs mailing list