One should be able to customise the Zebra configuration on a per instance basis by just over-riding the default files with custom ones added under /sites/instancename/. This should be simple to achieve during install time by adding /etc/koha/sites/instancename/ to the profilePath in the already create instancename/*.cfg files. Patch to follow
Created attachment 28112 [details] [review] Bug 12216: One should be able to override zebra config One should be able to override zebra configuration on a per instance basis. This patch adds /etc/koha/sites/instance to the 'profilePath' in the zebra config files such that that location is sources first for any override config files.
To test.. 1. Build package with this patch added 2. Install package 3. use koha-create to run up a new instance 4. copy any default zebra config file (default.idx maybe) you wish to customise into /etc/koha/newInstance 5. modify the file 6. check that your modification has in fact been used
Created attachment 41297 [details] [review] [SIGNED OFF] Bug 12216: One should be able to override zebra config One should be able to override zebra configuration on a per instance basis. This patch adds /etc/koha/sites/instance to the 'profilePath' in the zebra config files such that that location is sources first for any override config files. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Great catch Martin. I thought this was already pushed by the way.
Created attachment 41304 [details] [review] Bug 12216: One should be able to override zebra config One should be able to override zebra configuration on a per instance basis. This patch adds /etc/koha/sites/instance to the 'profilePath' in the zebra config files such that that location is sources first for any override config files. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Great catch Martin. I thought this was already pushed by the way. Signed-off-by: Robin Sheat <robin@catalyst.net.nz> This will be useful.
Patch pushed to master. Thanks Martin!
Neato!