Re: [Koha-devel] Override sysprefs in Apache config

2024-02-26 Thread David Cook via Koha-devel
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  
Sent: Tuesday, 27 February 2024 9:51 AM
To: David Cook 
Cc: Magnus Enger ; Koha Devel 

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, 
mailto:koha-devel@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 mailto:koha-devel-boun...@lists.koha-community.org> > On Behalf Of Magnus 
Enger via Koha-devel
Sent: Friday, 16 February 2024 6:26 PM
To: koha-devel@lists.koha-community.org 
<mailto:koha-devel@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@lists.koha-community.org 
<mailto:Koha-devel@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@lists.koha-community.org 
<mailto:Koha-devel@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@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/


Re: [Koha-devel] Override sysprefs in Apache config

2024-02-26 Thread Renvoize, Martin via Koha-devel
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@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  On Behalf
> Of Magnus Enger via Koha-devel
> Sent: Friday, 16 February 2024 6:26 PM
> To: koha-devel@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@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@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@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/


Re: [Koha-devel] Override sysprefs in Apache config

2024-02-26 Thread Renvoize, Martin via Koha-devel
We use it still I believe. There's an allow list of options inside the
middleware:
https://git.koha-community.org/Koha-community/Koha/src/branch/master/Koha/Middleware/SetEnv.pm#L66

I can't remember what the _NAMES option is for of the top of my head. Let
me know if you need any further guidance and I'll try to dig out a working
implementation here too help guide it.

On Fri, 16 Feb 2024, 5:52 am David Cook via Koha-devel, <
koha-devel@lists.koha-community.org> wrote:

> Hi all,
>
>
>
> I’ve read this wiki page and tried this many times, and never ever gotten
> it to work. Is there something missing from these instructions?
>
>
>
> https://wiki.koha-community.org/wiki/Override_sysprefs_in_Apache_config
>
>
>
> 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
>
>
> ___
> Koha-devel mailing list
> Koha-devel@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@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/


Re: [Koha-devel] Override sysprefs in Apache config

2024-02-18 Thread David Cook via Koha-devel
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  On Behalf Of 
Magnus Enger via Koha-devel
Sent: Friday, 16 February 2024 6:26 PM
To: koha-devel@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@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@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/


Re: [Koha-devel] Override sysprefs in Apache config

2024-02-15 Thread Magnus Enger via Koha-devel

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 
 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@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/


Re: [Koha-devel] Override sysprefs in Apache config

2024-02-15 Thread 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 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.

 

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: David Cook  
Sent: Friday, 16 February 2024 4:52 PM
To: 'koha-devel' 
Subject: Override sysprefs in Apache config

 

Hi all,

 

I've read this wiki page and tried this many times, and never ever gotten it
to work. Is there something missing from these instructions?

 

https://wiki.koha-community.org/wiki/Override_sysprefs_in_Apache_config

 

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

 

___
Koha-devel mailing list
Koha-devel@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/