[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 Aug 6 14:54:42 CEST 2014


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

--- Comment #23 from Marc Véron <veron at veron.ch> ---
(In reply to M. de Rooy from comment #22)

> Although I am not sure if it is the most elegant way to address the problem?

Hi Marcel,
'Hartstikke bedankt' for testing the translation. I'm glad that it worked.

I'm aware that this solution does not look that elegant. But at the moment I
have no idea how to do it better.

Paxed proposed in comment #9 to work with an include similar to
koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc
( BTW:I see there an if-else construct inside a html-tag? )

But the most of the .tt files have an individual ID inside the body tag, like
en/modules/opac-addbybiblionumber.tt:<body id="addtolist" class="popup">
...and it seems, that the ID can not be automatized. Maybe the IDs could be
calculated from the file name, but they are not consistent with the file names.
To get all of the files involved I went to koha-tmpl/opac-tmpl/bootstrap and
did: 
git grep '<body'

Any hint for an alternative to my solution is welcome :-)

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


More information about the Koha-bugs mailing list