Bug 19682 - Move JS to the footer: Two patron-related tools
Summary: Move JS to the footer: Two patron-related tools
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Owen Leonard
QA Contact: Josef Moravec
URL:
Keywords:
Depends on: 19641 19647
Blocks: 17858
  Show dependency treegraph
 
Reported: 2017-11-22 19:32 UTC by Owen Leonard
Modified: 2019-10-14 19:57 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Small patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 19682: Move JS to the footer: Two patron-related tools (4.98 KB, patch)
2017-11-22 19:37 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 19682: Move JS to the footer: Two patron-related tools (5.04 KB, patch)
2017-12-12 14:47 UTC, Claire Gravely
Details | Diff | Splinter Review
Bug 19682: Move JS to the footer: Two patron-related tools (5.00 KB, patch)
2018-01-12 13:38 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 19682: Move JS to the footer: Two patron-related tools (5.05 KB, patch)
2018-02-07 16:38 UTC, Josef Moravec
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Owen Leonard 2017-11-22 19:32:53 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 two patron-related tools which also incorporate elements from the Patrons module, requiring a dependency on Bug 19641: Import patrons and Upload patron images.
Comment 1 Owen Leonard 2017-11-22 19:37:23 UTC
Created attachment 69292 [details] [review]
Bug 19682: Move JS to the footer: Two patron-related tools

This patch modifies two patron-related tools templates in the staff
client so that JavaScript is included in the footer instead of the
header.

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

  - Import patrons
  - Upload patron images
Comment 2 Claire Gravely 2017-12-12 09:39:24 UTC
Hullo,

issue when applying dependencies: 
Applying: Bug 19560: Correctly escape branchcode in admin/branches.pl
fatal: sha1 information is lacking or useless (koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt).
Repository lacks necessary blobs to fall back on 3-way merge.
Cannot fall back to three-way merge.
Comment 3 Owen Leonard 2017-12-12 14:15:42 UTC
I did some rebasing to other bugs this morning so I think this is ready to test.
Comment 4 Claire Gravely 2017-12-12 14:47:03 UTC
Created attachment 69737 [details] [review]
Bug 19682: Move JS to the footer: Two patron-related tools

This patch modifies two patron-related tools templates in the staff
client so that JavaScript is included in the footer instead of the
header.

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

  - Import patrons
  - Upload patron images

Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>
Comment 5 Katrin Fischer 2017-12-21 23:22:26 UTC
One of the dependencies is not in the QA queue yet, moving to BLOCKED for now,
please move back once dependencies have been sorted.
Comment 6 Josef Moravec 2018-01-02 20:09:58 UTC
The datepicker in import patrons tool is shown only by dateofbirth field. Should be also on dateexpiry and dateenrolled.
Comment 7 Owen Leonard 2018-01-12 13:38:21 UTC
Created attachment 70467 [details] [review]
Bug 19682: Move JS to the footer: Two patron-related tools

This patch modifies two patron-related tools templates in the staff
client so that JavaScript is included in the footer instead of the
header.

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

  - Import patrons
  - Upload patron images

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

Edit for QA: Fixed datepickers on import patron form
Comment 8 Josef Moravec 2018-02-07 16:38:04 UTC
Created attachment 71293 [details] [review]
Bug 19682: Move JS to the footer: Two patron-related tools

This patch modifies two patron-related tools templates in the staff
client so that JavaScript is included in the footer instead of the
header.

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

  - Import patrons
  - Upload patron images

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

Edit for QA: Fixed datepickers on import patron form

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Comment 9 Jonathan Druart 2018-02-15 16:39:19 UTC
Pushed to master for 18.05, thanks to everybody involved!