[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
Fri Aug 8 01:15:06 CEST 2014


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

Marc Véron <veron at veron.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #30606|0                           |1
        is obsolete|                            |

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

This patch is still a proof of concept for testing. I followed paxed's hints.

New: Include file for the head tag.
It can handle different situations (head width additional class like scrollto,
head wit and without id).

For the test, the include is inserted in opac-main.tt and opac-user.tt

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" >

Comments are welcome...

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


More information about the Koha-bugs mailing list