Facets in search results (both in the staff interface and in the opac) have ids for css styling, except for the availability facet. It would be useful to have one, especially since this feature seems to have been broken for a while and this would allow us to hide it. Ideally i think we could hide it in the default css in the same patch.
Created attachment 13146 [details] [review] Bug 8989 - Availability facet needs an id This patch adds an id to the <li> which contains the "limit to available" facet in the OPAC and staff client. To test, add custom CSS for the staff client and OPAC to hide the id "availability_facet" and confirm that the link is no longer visible.
I didn't add anything to the default CSS because as far as I can tell the limit to available feature isn't working perfectly but is working.
Created attachment 13233 [details] [review] [SIGNED-OFF] Bug 8989 - Availability facet needs an id This patch adds an id to the <li> which contains the "limit to available" facet in the OPAC and staff client. To test, add custom CSS for the staff client and OPAC to hide the id "availability_facet" and confirm that the link is no longer visible. Signed-off-by: Gaetan Boisson <gaetan.boisson@biblibre.com>
Works as advertised!
(In reply to comment #3) > Created attachment 13233 [details] [review] > [SIGNED-OFF] Bug 8989 - Availability facet needs an id > Signed-off-by: Gaetan Boisson <gaetan.boisson@biblibre.com> tested working, passing QA... $ koha-qa.pl -c 1 testing 1 commit(s) (applied to 9ace63b 'Bug 9001: Remove Zebraqueue_daemon') a665277 Bug 8989 - Availability facet needs an id - koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc - koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc * koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc OK * koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc OK
This patch has been pushed to master.
Patch pushed to branch 3.10.x