[Koha-devel] Override sysprefs in Apache config
Magnus Enger
magnus at libriotech.no
Fri Feb 16 08:26:17 CET 2024
Hi!
Den 16.02.2024 06:56, skrev David Cook via Koha-devel:
> I think it might be partially broken.
>
> As per https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16520
> <https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16520> I
> added the following to the OPAC and the staff interface:
>
> RequestHeader add X-Koha-SetEnv "OVERRIDE_SYSPREF_LibraryName Potato\,
> Potato"
>
> It did indeed load into the OPAC.
>
> In the past, I think it used to fill in and lock the syspref in the
> staff interface as well… but maybe not anymore. Maybe because it would
> just affect the staff interface, and yet sometimes maybe you only want
> to affect the staff interface… hmm…
We have used this a fair bit to set up alternative/infividual OPACs for
individual libraries, but I have never seen a setting like that fill in
or otherwise affect the actual syspref. And how would that work when you
have 5 different VirtualHost configs all setting their own
OVERRIDE_SYSPREF_LibraryName?
I can confirm that settings like these work for us:
RequestHeader add X-Koha-SetEnv "OVERRIDE_SYSPREF_LibraryName Grundskolan"
RequestHeader add X-Koha-SetEnv "OPAC_SEARCH_LIMIT
branch:multibranchlimit-23"
RequestHeader add X-Koha-SetEnv "OPAC_LIMIT_OVERRIDE 1"
Best regards,
Magnus
More information about the Koha-devel
mailing list