]> git.koha-community.org Git - koha.git/commit
Bug 26085: Add the copy, print and export DataTables buttons to lost items report
authorOwen Leonard <oleonard@myacpl.org>
Wed, 29 Jul 2020 12:58:22 +0000 (12:58 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 3 Aug 2020 09:30:52 +0000 (11:30 +0200)
commita7c85ad16303bb1a041663a13336f8446c26ee64
tree455e19faa722a7a70af19bbd6a6f8757479695ad
parent9f11ba114e13aee10e05ccb83096c7f02908085b
Bug 26085: Add the copy, print and export DataTables buttons to lost items report

This patch removes the in-page DataTables DOM configuration option so
that the default option is used. This will allow all the standard
controls to appear, including copy/print/export.

Since the default DataTables information includes the number of results
in the table, the template markup showing this information is removed.

To test, apply the patch and go to Reports.

- Run the "Items lost" report using parameters which will return
  multiple results.
- On the results page confirm that the standard controls are present:
  Result count, search form, columns filter, export buttons.
- Confirm that the "Activate filters" feature works, and that selecting
  results activates the option to download a CSV using a CSV export
  profile.

  Note that the "Activate filters" feature doesn't play well with hidden
  columns. However this issue predates the patch.

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt