Re: [Koha] Multiple OPAC interfaces

2017-02-07 Thread Michael Kuhn

Hi Chris and Jonathan


This won't work with Plack, because the environment variables set in
Apache are not passed through to Plack.
This still works fine without Plack as the env variables are set for the
scripts running under the apache user.


Thanks for the clarification! I stopped and disabled Plack - and yes, 
immediately the variable worked as expected which is great!



Someone needs to work on a way to pass the variables to plack.
Environment ones won't work, because plack is persistent, they will need
to be set in config or something.

If you want to discuss ideas for doing this, we could move it to the
koha-devel list.


In my particular case Plack is not absolutely necessary because the 
database is quite small. The problem seems already solved, as Jonathan 
just wrote:


> For Plack you can have a look at bug 16520, it is in 16.11.

Still, in my case the situation actually occurred on an installation of 
Koha 16.11.0 - but as said the variables work like a charm when Plack is 
deactivated.


Best wishes: Michael
--
Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
T 0041 (0)61 261 55 61 · E m...@adminkuhn.ch · W www.adminkuhn.ch
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Multiple OPAC interfaces

2017-02-07 Thread Jonathan Druart
For Plack you can have a look at bug 16520, it is in 16.11.

On Tue, 7 Feb 2017 at 18:51 Chris Cormack  wrote:

> Hi Michael
>
> This won't work with Plack, because the environment variables set in
> Apache are not passed through to Plack.
> This still works fine without Plack as the env variables are set for the
> scripts running under the apache user.
>
> Someone needs to work on a way to pass the variables to plack.
> Environment ones won't work, because plack is persistent, they will need
> to be set in config or something.
>
> If you want to discuss ideas for doing this, we could move it to the
> koha-devel list.
>
> Chris
>
> On 08/02/17 05:50, Michael Kuhn wrote:
> > Hi Zeno
> >
> >>> Is it possible to have just one Koha database but more than one OPAC
> >>> interface that is accessing the data?
> >>
> >> in my opinion the best option is many OPAC Virtual Hosts with different
> >> DNS CNAME each.
> >> In every VH setup you can insert different values for system preferences
> >> and you can hve different css, js, etc.
> >
> > Thanks for your suggestion! I tried to find some information about
> > different values for system preferences in virtual hosts, via Google I
> > found some Bugzilla issues (10325, 16068) and some other hints, but no
> > official description (except one hint in chapter 2.1 of the manual).
> > There seem to exist variables like OPAC_CSS_OVERRIDE etc and also
> > OVERRIDE_SYSPREF_* which seemingly can be extended like
> > OVERRIDE_SYSPREF_opacbookbag for example.
> >
> > I then configured a new virtual host in my Apache HTTP Server using the
> > standard OPAC configuration for port 80, but changing the port to 1080.
> > After that my OPAC is actually accessible via port 80 as well as 1080.
> >
> > Then (as an example) I added the variable OVERRIDE_SYSPREF_opacbookbag,
> > so the configuration of the virtual host now looks as follows
> >
> > 
> >   = 2.4>
> >Define instance "svk"
> >   
> >Include /etc/koha/apache-shared.conf
> >Include /etc/koha/apache-shared-opac-plack.conf
> >Include /etc/koha/apache-shared-opac.conf
> >
> >ServerName svk
> >SetEnv KOHA_CONF "/etc/koha/sites/svk/koha-conf.xml"
> >SetEnv MEMCACHED_SERVERS ""
> >SetEnv MEMCACHED_NAMESPACE ""
> >AssignUserID svk-koha svk-koha
> >
> >SetEnv OVERRIDE_SYSPREF_opacbookbag 0
> >
> >ErrorLog/var/log/koha/svk/opac-error.log
> > 
> >
> > I then restarted the Apache HTTP Server and also Plack - but there was
> > no visible change in the new OPAC (usually "opacbookbag" should hide or
> > show the Cart symbol). In fact I made many more experiments, but I guess
> > one example is enough here.
> >
> > I'm not sure if I'm doing the right thing anyway... Can you maybe point
> > me to some documentation about the correct changing of values for system
> > preferences?
> >
> > Best wishes: Michael
> > --
> > Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
> > Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
> > T 0041 (0)61 261 55 61 <+41%2061%20261%2055%2061> · E m...@adminkuhn.ch
> · W www.adminkuhn.ch
> > ___
> > Koha mailing list  http://koha-community.org
> > Koha@lists.katipo.co.nz
> > https://lists.katipo.co.nz/mailman/listinfo/koha
>
> ___
> Koha mailing list  http://koha-community.org
> Koha@lists.katipo.co.nz
> https://lists.katipo.co.nz/mailman/listinfo/koha
>
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Multiple OPAC interfaces

2017-02-07 Thread Chris Cormack
Hi Michael

This won't work with Plack, because the environment variables set in
Apache are not passed through to Plack.
This still works fine without Plack as the env variables are set for the
scripts running under the apache user.

Someone needs to work on a way to pass the variables to plack.
Environment ones won't work, because plack is persistent, they will need
to be set in config or something.

If you want to discuss ideas for doing this, we could move it to the
koha-devel list.

Chris

On 08/02/17 05:50, Michael Kuhn wrote:
> Hi Zeno
> 
>>> Is it possible to have just one Koha database but more than one OPAC
>>> interface that is accessing the data?
>>
>> in my opinion the best option is many OPAC Virtual Hosts with different
>> DNS CNAME each.
>> In every VH setup you can insert different values for system preferences
>> and you can hve different css, js, etc.
> 
> Thanks for your suggestion! I tried to find some information about
> different values for system preferences in virtual hosts, via Google I
> found some Bugzilla issues (10325, 16068) and some other hints, but no
> official description (except one hint in chapter 2.1 of the manual).
> There seem to exist variables like OPAC_CSS_OVERRIDE etc and also
> OVERRIDE_SYSPREF_* which seemingly can be extended like
> OVERRIDE_SYSPREF_opacbookbag for example.
> 
> I then configured a new virtual host in my Apache HTTP Server using the
> standard OPAC configuration for port 80, but changing the port to 1080.
> After that my OPAC is actually accessible via port 80 as well as 1080.
> 
> Then (as an example) I added the variable OVERRIDE_SYSPREF_opacbookbag,
> so the configuration of the virtual host now looks as follows
> 
> 
>   = 2.4>
>Define instance "svk"
>   
>Include /etc/koha/apache-shared.conf
>Include /etc/koha/apache-shared-opac-plack.conf
>Include /etc/koha/apache-shared-opac.conf
> 
>ServerName svk
>SetEnv KOHA_CONF "/etc/koha/sites/svk/koha-conf.xml"
>SetEnv MEMCACHED_SERVERS ""
>SetEnv MEMCACHED_NAMESPACE ""
>AssignUserID svk-koha svk-koha
> 
>SetEnv OVERRIDE_SYSPREF_opacbookbag 0
> 
>ErrorLog/var/log/koha/svk/opac-error.log
> 
> 
> I then restarted the Apache HTTP Server and also Plack - but there was
> no visible change in the new OPAC (usually "opacbookbag" should hide or
> show the Cart symbol). In fact I made many more experiments, but I guess
> one example is enough here.
> 
> I'm not sure if I'm doing the right thing anyway... Can you maybe point
> me to some documentation about the correct changing of values for system
> preferences?
> 
> Best wishes: Michael
> -- 
> Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
> Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
> T 0041 (0)61 261 55 61 · E m...@adminkuhn.ch · W www.adminkuhn.ch
> ___
> Koha mailing list  http://koha-community.org
> Koha@lists.katipo.co.nz
> https://lists.katipo.co.nz/mailman/listinfo/koha



signature.asc
Description: OpenPGP digital signature
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Multiple OPAC interfaces

2017-02-07 Thread Michael Kuhn

Hi Zeno


Is it possible to have just one Koha database but more than one OPAC
interface that is accessing the data?


in my opinion the best option is many OPAC Virtual Hosts with different
DNS CNAME each.
In every VH setup you can insert different values for system preferences
and you can hve different css, js, etc.


Thanks for your suggestion! I tried to find some information about 
different values for system preferences in virtual hosts, via Google I 
found some Bugzilla issues (10325, 16068) and some other hints, but no 
official description (except one hint in chapter 2.1 of the manual). 
There seem to exist variables like OPAC_CSS_OVERRIDE etc and also 
OVERRIDE_SYSPREF_* which seemingly can be extended like 
OVERRIDE_SYSPREF_opacbookbag for example.


I then configured a new virtual host in my Apache HTTP Server using the 
standard OPAC configuration for port 80, but changing the port to 1080. 
After that my OPAC is actually accessible via port 80 as well as 1080.


Then (as an example) I added the variable OVERRIDE_SYSPREF_opacbookbag, 
so the configuration of the virtual host now looks as follows



  = 2.4>
   Define instance "svk"
  
   Include /etc/koha/apache-shared.conf
   Include /etc/koha/apache-shared-opac-plack.conf
   Include /etc/koha/apache-shared-opac.conf

   ServerName svk
   SetEnv KOHA_CONF "/etc/koha/sites/svk/koha-conf.xml"
   SetEnv MEMCACHED_SERVERS ""
   SetEnv MEMCACHED_NAMESPACE ""
   AssignUserID svk-koha svk-koha

   SetEnv OVERRIDE_SYSPREF_opacbookbag 0

   ErrorLog/var/log/koha/svk/opac-error.log


I then restarted the Apache HTTP Server and also Plack - but there was 
no visible change in the new OPAC (usually "opacbookbag" should hide or 
show the Cart symbol). In fact I made many more experiments, but I guess 
one example is enough here.


I'm not sure if I'm doing the right thing anyway... Can you maybe point 
me to some documentation about the correct changing of values for system 
preferences?


Best wishes: Michael
--
Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
T 0041 (0)61 261 55 61 · E m...@adminkuhn.ch · W www.adminkuhn.ch
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Multiple OPAC interfaces

2017-02-07 Thread Tajoli Zeno

Hi,

Il 07/02/2017 14:24, Michael Kuhn ha scritto:


Is it possible to have just one Koha database but more than one OPAC
interface that is accessing the data?


in my opinion the best option is many OPAC Virtual Hosts with different 
DNS CNAME each.
In every VH setup you can insert different values for system preferences 
and you can hve different css, js, etc.


Bye
Zeno Tajoli

--
Zeno Tajoli
/SVILUPPO PRODOTTI CINECA/ - Automazione Biblioteche
Email: z.taj...@cineca.it Fax: 051/6132198
*CINECA* Consorzio Interuniversitario - Sede operativa di Segrate (MI)
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha


[Koha] Multiple OPAC interfaces

2017-02-07 Thread Michael Kuhn

Hi

Is it possible to have just one Koha database but more than one OPAC 
interface that is accessing the data?


The Koha database contains very specific reference data (without items) 
that is interesting for more than one institution. The owner of the 
database would like to allow different institutions to have their own 
OPAC interface (with own logo, own colors etc, but no user logins) to 
access the data. Having just one interface with several logos etc is no 
option.


So my idea is to have more than one Koha instance. The first instance 
would contain the "master" database - from this the tables "biblio", 
"items" and "biblioitems" would be unloaded every night and loaded into 
the databases of the other instances, followed by a reindexing. This 
would cause some cost for scripting and testing, but it would be 
relatively easy to update the instances.


Still I'm wondering if there is maybe a better solution to this problem?

Best wishes: Michael
--
Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
T 0041 (0)61 261 55 61 · E m...@adminkuhn.ch · W www.adminkuhn.ch
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Multiple OPAC interfaces

2015-06-29 Thread Barry Cannon
Hi Robin,
 We are hoping to run multiple OPAC themes, pointing to the same 
instance, but restricted in their respective searches. A simple example may be; 
one Koha instance with two locations. Each location has it's own themed OPAC 
interface, restricted to search only that locations (for bib, item 
information). 

I did manage to get this running in the past - before the Bootstrap change - so 
I just wondering if there has been any substantial changes to how to implement 
this.

Regards
Barry Cannon
Interleaf Technology
http://www.interleaf.ie
Tel: +35312865855
Email: b...@interleaf.ie
Skype: bar.cannon


From: Koha [koha-boun...@lists.katipo.co.nz] on behalf of Robin Sheat 
[ro...@catalyst.net.nz]
Sent: 29 June 2015 02:57
To: koha@lists.katipo.co.nz
Subject: Re: [Koha] Multiple OPAC interfaces

Barry Cannon schreef op vr 26-06-2015 om 14:26 [+]:
 Does anyone know if there is still support for running
 multiple OPAC interfaces since the move to Bootstrap? I remember
 having some luck a few years ago but that was before the change over.

What do you actually mean? If you mean just running multiple different
Koha instances off one server, then that hasn't changed. If you mean
having multiple OPAC themes on one Koha instance* that is still done
exactly the same way, though there's not really an official way.

So, I'm not quite sure exactly what your question is, but the answer is
almost certainly yes :)

* http://www.stratfordlibrary.govt.nz/ = http://ils.stdc.govt.nz/
  are the same thing, just with different theming depending on how you
  reach them.

--
Robin Sheat
Catalyst IT Ltd.
✆ +64 4 803 2204
GPG: 5FA7 4B49 1E4D CAA4 4C38  8505 77F5 B724 F871 3BDF
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Multiple OPAC interfaces

2015-06-28 Thread Irma Birchall
Hi Barry

Yes it is possible.Four OPACs  one Koha.

Look here:
http://library.emmaus.edu.au/
http://library.ccs.edu.au/
http://koreanlibrary.scd.edu.au/
http://library.mcm.qld.edu.au

Hope this helps.
Irma
CALYX



On 27 June 2015 at 00:26, Barry Cannon b...@interleaf.ie wrote:

 Hello,
 Does anyone know if there is still support for running multiple
 OPAC interfaces since the move to Bootstrap? I remember having some luck a
 few years ago but that was before the change over.



 Regards
 Barry Cannon
 Interleaf Technology
 http://www.interleaf.ie
 Tel: +35312865855
 Email: b...@interleaf.ie
 Skype: bar.cannon
 ___
 Koha mailing list  http://koha-community.org
 Koha@lists.katipo.co.nz
 https://lists.katipo.co.nz/mailman/listinfo/koha

___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Multiple OPAC interfaces

2015-06-28 Thread Robin Sheat
Barry Cannon schreef op vr 26-06-2015 om 14:26 [+]:
 Does anyone know if there is still support for running
 multiple OPAC interfaces since the move to Bootstrap? I remember
 having some luck a few years ago but that was before the change over.

What do you actually mean? If you mean just running multiple different
Koha instances off one server, then that hasn't changed. If you mean
having multiple OPAC themes on one Koha instance* that is still done
exactly the same way, though there's not really an official way.

So, I'm not quite sure exactly what your question is, but the answer is
almost certainly yes :)

* http://www.stratfordlibrary.govt.nz/ = http://ils.stdc.govt.nz/
  are the same thing, just with different theming depending on how you
  reach them.

-- 
Robin Sheat
Catalyst IT Ltd.
✆ +64 4 803 2204
GPG: 5FA7 4B49 1E4D CAA4 4C38  8505 77F5 B724 F871 3BDF


signature.asc
Description: This is a digitally signed message part
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha


[Koha] Multiple OPAC interfaces

2015-06-26 Thread Barry Cannon
Hello,
Does anyone know if there is still support for running multiple OPAC 
interfaces since the move to Bootstrap? I remember having some luck a few years 
ago but that was before the change over.



Regards
Barry Cannon
Interleaf Technology
http://www.interleaf.ie
Tel: +35312865855
Email: b...@interleaf.ie
Skype: bar.cannon
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha