Add the ability to manage the facets from the intranet. Nowadays the facets are hardcoded.
Created attachment 46575 [details] [review] Patch to apply in master branch
Created attachment 46576 [details] SQL with a new facet table, to save the configuration
Test plan: Apply the patch in master branch. Import the facet.sql file into your koha database. Next go to Administration -> Facet indexes manager You can create facets and test it appears into the search (intranet and opac) There is a SQL with inserts of facet configuration samples.
Created attachment 46578 [details] Facet SQL samples
As this has a new patch, I am marking the older bug 10891 as a duplicate.
*** Bug 10891 has been marked as a duplicate of this bug. ***
It looks like this might have got lost - it was never set to "Needs Sign-off".
This is the old way to dev in Koha :) You will need to correctly indent the template, use Koha::Objects for CRUD operations. Moreover the new table is not added to kohastructure.sql and updatedatabase.pl, and you will need to populate it.
Note that there is a patch in the queue for ES: bug 14899
I'm not familiar with the Elasticsearch configurable facet code, but I wonder how easy it would be to adapt this Zebra code to work with it too. (Although these days I think it would make more sense just to work towards fully deprecating Zebra to be honest.)
(In reply to David Cook from comment #10) > I'm not familiar with the Elasticsearch configurable facet code, but I > wonder how easy it would be to adapt this Zebra code to work with it too. > > (Although these days I think it would make more sense just to work towards > fully deprecating Zebra to be honest.) I think there is still a lot of libraries that profit from the low requirements of Zebra out there. I am not in favour of depracating it at this point in time. But we have certain features that are only developed for Elasticsearch.