+++ This bug was initially created as a clone of Bug #29408 +++ The dataTables Koha REST wrapper we added recently is badly named.. currently, it's the very unspecific 'api'.. we should start using a consistent naming convention for such JS wrapper functions. In bug 29397 we introduce a minimal select2 wrapper and call it kohaSelect.. I propose we take that as inspiration and rename the dataTables function from 'api' to 'kohaTable'. Thus, creating a new API driven dataTable would become: $(".selector").kohaTable(usual stuff here);
Reworking this a bit.. lots of functionality is missing from the OPAC version
Created attachment 129540 [details] [review] Bug 29896: Update datatables wrapper in the OPAC This patch updates the datatables api wrapper from 'api' to 'kohaTable' to match the function of the same intention with the name in the staff client.
As far as I can tell.. this wrapper function isn't actually used anywhere in the OPAC as yet.. so I'll leave it here and when we come to use it I can pick the code back up again. We need to implement the column ordering fixes, the match type fixes and the column filters fixes at some point.. assuming we need them at the OPAC.