Bug 12216

Summary: One should be able to override zebra configuration on a per instance basis
Product: Koha Reporter: Martin Renvoize <martin.renvoize>
Component: PackagingAssignee: Martin Renvoize <martin.renvoize>
Status: CLOSED FIXED QA Contact: Robin Sheat <robin>
Severity: enhancement    
Priority: P4 CC: dcook, robin, tomascohen
Version: master   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11910
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 12216: One should be able to override zebra config
[SIGNED OFF] Bug 12216: One should be able to override zebra config
Bug 12216: One should be able to override zebra config

Description Martin Renvoize 2014-05-08 15:18:53 UTC
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
Comment 1 Martin Renvoize 2014-05-08 15:51:06 UTC Comment hidden (obsolete)
Comment 2 Martin Renvoize 2014-05-08 15:53:53 UTC
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
Comment 3 Tomás Cohen Arazi 2015-08-02 13:33:29 UTC Comment hidden (obsolete)
Comment 4 Robin Sheat 2015-08-02 23:47:18 UTC
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.
Comment 5 Tomás Cohen Arazi 2015-08-03 15:01:29 UTC
Patch pushed to master.

Thanks Martin!
Comment 6 David Cook 2015-11-17 03:37:09 UTC
Neato!