[Koha-bugs] [Bug 11251] Be able to configure HTML Opac preferences per library
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Aug 25 15:11:03 CEST 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11251
--- Comment #2 from Marc Véron <veron at veron.ch> ---
Workaround:
The body tag of OPAC pages contains a class="branch-CPL" (where CPL is the
branch code.) You can use that for a CSS trick to show/hide contents depending
on the branch.
For a proof of concept, put the following into OpacMainUserBlock:
<div class="contentCPL" style="display:none;">
<h1> My custom content for CPL</h1>
<p>Text for CPL</p>
</div>
<div class="contentFFL" style="display:none;">
<h1> My custom content for FFL</h1>
<p>Text for FFL</p>
</div>
...and put the following into OPACUserCSS
.branch-CPL .contentCPL {
display:block !important;
}
.branch-FFL .contentFFL {
display:block !important;
}
Switch between branches - the content will appear as appropriate.
Marc
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list