Bug 6421

Summary: ability to have different opac styles for different libraries
Product: Koha Reporter: Nicole C. Engard <nengard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: enhancement    
Priority: P5 - low CC: katrin.fischer, veron
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12162
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6795
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Nicole C. Engard 2011-05-27 18:57:02 UTC
It would be great if we could have different banners and different style sheets for different libraries - maybe instead of a sys pref add it to the library management module.
Comment 1 Katrin Fischer 2016-06-19 22:58:58 UTC
This can currently be achieved via the Apache configuration.
Comment 2 Marc Véron 2016-06-20 07:09:51 UTC
Branch specific CSS can be added in opaclayoutstylesheet, OpacAdditionalStylesheet, or OPACUserCSS using the class branch-??? in the body tag, e.g.:
<body ID="opac-main" class="branch-CPL" >

See: Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch
Comment 3 Katrin Fischer 2016-06-20 07:15:09 UTC
Ah, even better! Should we close this then?
Comment 4 Marc Véron 2016-06-20 07:26:59 UTC
I think closing this bug would bi OK, but maybe it could be documented somewhere in the Koha Manual?

Is there a chapter for such information? Or could it go to  "P: Extending Koha"?
http://translate.koha-community.org/manual/master/en/html-desktop/#extending
Comment 5 Marc Véron 2016-06-20 07:34:33 UTC
BTW: We have something similar for the language in the HTML tags: 
OPAC:
<html lang="de_DE" class="no-js">

Oh, it seems to be empty in staff client:
<html lang="">
Comment 6 Marc Véron 2016-06-20 07:43:52 UTC
(In reply to Marc Véron from comment #5)
(...)
> Oh, it seems to be empty in staff client:
> <html lang="">
...only on page Home > Administration > System preferences
On other pages it is OK:
<html lang="en">
Comment 7 Katrin Fischer 2016-06-20 09:18:20 UTC
Maybe as a starting point we could put an example on a wiki page.
Comment 8 Katrin Fischer 2019-03-16 10:32:04 UTC
Reading through the bug comments this appears to be resolved by different options to add CSS that is different depending on the library.