Bug 11251

Summary: Be able to configure HTML Opac preferences per library
Product: Koha Reporter: Nicole C. Engard <nengard>
Component: System AdministrationAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: new feature    
Priority: P5 - low CC: gmcharlt, jsasse, katrin.fischer, lisettepalouse+koha, marjorie.barry-vila, verolencinas, veron
Version: Main   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8067
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22318
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Nicole C. Engard 2013-11-14 15:50:22 UTC
It would be great to have branch specific opac content. So opacmainuserblock, opacnav, opacnavright, opacnavbottom, opacheader, opaccredits could all be branch specific maybe using a different OPAC customization section in Administration instead of system preferences for these things.  Of course one could argue that the entire OPAC preferences section could be broken out in to it's own Admin area - but I'll start small in my suggestion.

Nicole
Comment 1 Johnny Rotten 2013-11-14 17:06:50 UTC
I concur with Nicole.  For large consortia, a method to customize the OPAC differently for different branches would be a great addition.

George Williams
georgew at latahlibrary.org
Comment 2 Marc VĂ©ron 2017-08-25 13:11:03 UTC
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
Comment 3 Owen Leonard 2019-04-11 13:39:09 UTC
This bug could be fixed if we build upon Bug 22318.
Comment 4 Owen Leonard 2019-10-10 22:29:56 UTC

*** This bug has been marked as a duplicate of bug 22318 ***