From 2c3e6275716e8e62604f95fb579bd369a99c0e20 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 2 Apr 2025 10:47:57 +0200 Subject: [PATCH] Bug 39011: (follow-up) JSDoc Add some initial JSDoc for the enhancments to datatables we introduce here. Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js index 414cf4bbb00..e7e2f4032b1 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -1334,6 +1334,11 @@ function update_search_description( * Supports `contains`, `starts_with`, `ends_with` and `exact` match * @param {string} [options.columns.*.type Data type the field is stored in so we may impose some additional * manipulation to search strings. Supported types are currenlty 'date' + * @param {string} [options.columns.*.datatype Data type the field is stored in so we may impose some additional + * manipulation logic to search. Supported types are currently 'related-object', + * for implimenting joins in api search queries, and 'coded_value:TABLE' to allow + * for clientside translations of description to code to reduce join requirements. + * See bug 39011 for an example implimentation. * @param {Object} table_settings The arrayref as returned by TableSettings.GetTableSettings function * available from the columns_settings template toolkit include * @param {Boolean} add_filters Add a filters row as the top row of the table -- 2.49.0