Bug 6421 - ability to have different opac styles for different libraries
Summary: ability to have different opac styles for different libraries
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: master
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Owen Leonard
QA Contact: Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-27 18:57 UTC by Nicole C. Engard
Modified: 2020-01-06 20:14 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.