Bug 6795 - Library-specific OPAC preferences
Summary: Library-specific OPAC preferences
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Database (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-26 21:44 UTC by Melia Meggs
Modified: 2019-10-10 22:33 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Melia Meggs 2011-08-26 21:44:01 UTC
Using the Contextual Preferences Engine, this moves the following preferences
out of Sysprefs and down to the per-branch level.

LibraryName
OPACBaseURL
opaccolorstylesheet
opaccredits
opacheader
opaclayoutstylesheet
OpacMainUserBlock
OpacNav
OPACNoResultsFound
opacsmallimage
opacstylesheet
OPACUserCSS
opacuserjs
Comment 1 Owen Leonard 2014-04-25 20:03:01 UTC
The Contextual Preferences Engine?
Comment 2 Marc Véron 2014-04-29 14:16:25 UTC
Regarding branch specific CSS in Opac we could do the following:

1)
Add a class="branchcode" to the body tag using the branch code, i.e something like
<body id="opac-main" class="CPL">

2)
Using this class, we could style branch specific pages e.g. in OPACUserCSS:

/*Background for all branches*/
body {
background-color: red;
}

/*Yellow background and pink border for branch with code CPL*/
body.CPL {
background-color: yellow;
border: 10px solid pink;
}

/*Green background and red border for branch with code CPL*/
body.FFL {
background-color: green;
border: 10px solid red;
}

...or a lot of other branch specific things like background images etc.
Comment 3 Marc Véron 2014-04-29 19:59:01 UTC
(In reply to Owen Leonard from comment #1)
> The Contextual Preferences Engine?

Regarding the Contextual Preferences Engine I found the following thread:
http://lists.katipo.co.nz/public/koha/2012-March/032347.html
Comment 4 Marc Véron 2014-04-29 20:16:15 UTC
(Regarding comment #2)

I moved the idea with branch specific CSS in a separate bug. 12162
Comment 5 Katrin Fischer 2019-03-13 07:28:47 UTC
Currently one option to achieve this is overwriting system preferences from Apache.

I am not sure if the 'contextual preferences engine' is going to happen at this point in time, as the developer has left.

Maybe we could reuse this bug to improve the 'different OPAC views' idea, that can currently be only achieved with Apache settings. I think we need a concept for this, before moving the preferences makes sense.
Comment 6 Owen Leonard 2019-10-10 22:33:05 UTC
> opaccredits
> opacheader
> OpacMainUserBlock
> OpacNav
> OPACNoResultsFound

But 22318 enables fixes for these preferences.