Bug 11251 - Be able to configure HTML Opac preferences per library
Summary: Be able to configure HTML Opac preferences per library
Status: RESOLVED DUPLICATE of bug 22318
Alias: None
Product: Koha
Classification: Unclassified
Component: System Administration (show other bugs)
Version: Main
Hardware: All All
: P5 - low new feature (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-14 15:50 UTC by Nicole C. Engard
Modified: 2019-10-10 22:29 UTC (History)
7 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 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 ***