]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 13 Aug 2020 17:34:58 +0000 (17:34 +0000)
commit352c3b0e6fa1baead52f268885ba800489596003
tree17bcb6fcf4fce5f0c4e07de1f85feba0ee8c4514
parent4688b017e7812f54c66638b4e575ee7ec160522a
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>
(cherry picked from commit a7c85ad16303bb1a041663a13336f8446c26ee64)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt