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