Bug 19663

Summary: Move JS to the footer: Reports
Product: Koha Reporter: Owen Leonard <oleonard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Josef Moravec <josef.moravec>
Severity: enhancement    
Priority: P5 - low CC: jonathan.druart, josef.moravec, nick, simon.pouchol, testopia
Version: master   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Medium patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on:    
Bug Blocks: 17858, 34533    
Attachments: Bug 19663: Move JS to the footer: Reports
Bug 19663: Move JS to the footer: Reports
Bug 19663: Move JS to the footer: Reports
Bug 19663: Move JS to the footer: Reports

Description Owen Leonard 2017-11-21 13:20:49 UTC
In order to conform to best practices for performance, staff client template JavaScript should be in the footer instead of the header.

This patch will do so for reports templates.
Comment 1 Owen Leonard 2017-11-21 14:53:55 UTC Comment hidden (obsolete)
Comment 2 Claire Gravely 2017-11-22 07:47:36 UTC
Created attachment 69264 [details] [review]
Bug 19663: Move JS to the footer: Reports

This patch modifies the staff client's reports templates so
that JavaScript is included in the footer instead of the header.

To test, apply the patch and test the JavaScript-driven features of
reports pages: All button controls, DataTables functionality, form
validation, etc.

Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>
Comment 3 Josef Moravec 2017-12-07 08:47:21 UTC
Owen, just a small thing:

the function Dopop in cat_issues_top.tt template should be probably removed, it is not used if I am reading it right.

Otherwise looks good!
Comment 4 Owen Leonard 2017-12-07 12:56:03 UTC
Created attachment 69603 [details] [review]
Bug 19663: Move JS to the footer: Reports

This patch modifies the staff client's reports templates so
that JavaScript is included in the footer instead of the header.

To test, apply the patch and test the JavaScript-driven features of
reports pages: All button controls, DataTables functionality, form
validation, etc.

Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>

Fix for QA: Remove unused Dopop function.
Comment 5 Josef Moravec 2017-12-13 10:56:38 UTC
Created attachment 69771 [details] [review]
Bug 19663: Move JS to the footer: Reports

This patch modifies the staff client's reports templates so
that JavaScript is included in the footer instead of the header.

To test, apply the patch and test the JavaScript-driven features of
reports pages: All button controls, DataTables functionality, form
validation, etc.

Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>

Fix for QA: Remove unused Dopop function.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Comment 6 Jonathan Druart 2017-12-14 20:17:19 UTC
Pushed to master for 18.05, thanks to everybody involved!
Comment 7 Nick Clemens 2017-12-20 11:50:38 UTC
Awesome work all! Enhancement, not backporting for 17.11