[Koha-devel] Override sysprefs in Apache config

David Cook dcook at prosentient.com.au
Mon Feb 26 23:57:34 CET 2024


Martin, you legend. That’s what I was looking for and missing I think. Thanks for making me feel less crazy : ). 

 

David Cook

Senior Software Engineer

Prosentient Systems

Suite 7.03

6a Glen St

Milsons Point NSW 2061

Australia

 

Office: 02 9212 0899

Online: 02 8005 0595

 

From: Renvoize, Martin <martin.renvoize at ptfs-europe.com> 
Sent: Tuesday, 27 February 2024 9:51 AM
To: David Cook <dcook at prosentient.com.au>
Cc: Magnus Enger <magnus at libriotech.no>; Koha Devel <koha-devel at lists.koha-community.org>
Subject: Re: [Koha-devel] Override sysprefs in Apache config

 

That might be what the _NAMES override is for.. I believe you pass it a list of the Prefs your overriding and it'll then display a message in the sysprefs if the staff client stating their likely override at the virtual host level.

 

On Sun, 18 Feb 2024, 10:21 pm David Cook via Koha-devel, <koha-devel at lists.koha-community.org <mailto:koha-devel at lists.koha-community.org> > wrote:

Hi Magnus,

Yeah, I was thinking it wouldn't make sense to affect the staff interface UI, since you might be overriding 5 different OPAC virtual hosts. But I had a vague memory that there was some sort of signifier that the syspref was being overridden. Maybe a false memory in the end. 

In the end, I did use X-Koha-SetEnv to set a syspref for one of two OPAC virtual hosts, so that worked well enough. 

David Cook
Senior Software Engineer
Prosentient Systems
Suite 7.03
6a Glen St
Milsons Point NSW 2061
Australia

Office: 02 9212 0899
Online: 02 8005 0595

-----Original Message-----
From: Koha-devel <koha-devel-bounces at lists.koha-community.org <mailto:koha-devel-bounces at lists.koha-community.org> > On Behalf Of Magnus Enger via Koha-devel
Sent: Friday, 16 February 2024 6:26 PM
To: koha-devel at lists.koha-community.org <mailto:koha-devel at lists.koha-community.org> 
Subject: Re: [Koha-devel] Override sysprefs in Apache config

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
_______________________________________________
Koha-devel mailing list
Koha-devel at lists.koha-community.org <mailto:Koha-devel at lists.koha-community.org> 
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : https://www.koha-community.org/ git : https://git.koha-community.org/ bugs : https://bugs.koha-community.org/

_______________________________________________
Koha-devel mailing list
Koha-devel at lists.koha-community.org <mailto:Koha-devel at lists.koha-community.org> 
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : https://www.koha-community.org/
git : https://git.koha-community.org/
bugs : https://bugs.koha-community.org/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20240227/991462c3/attachment.htm>


More information about the Koha-devel mailing list