Bug 16337 - Remove the use of "onclick" from the stage MARC records template
Summary: Remove the use of "onclick" from the stage MARC records template
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Tools (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Owen Leonard
QA Contact: Testopia
URL: /cgi-bin/koha/tools/stage-marc-import.pl
Keywords:
Depends on:
Blocks: 16468
  Show dependency treegraph
 
Reported: 2016-04-25 14:40 UTC by Owen Leonard
Modified: 2016-12-05 21:27 UTC (History)
4 users (show)

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


Attachments
Bug 16337 - Remove the use of "onclick" from the stage MARC records template (2.07 KB, patch)
2016-04-25 14:43 UTC, Owen Leonard
Details | Diff | Splinter Review
[SIGNED-OFF] Bug 16337 - Remove the use of "onclick" from the stage MARC records template (2.09 KB, patch)
2016-04-25 23:19 UTC, Aleisha Amohia
Details | Diff | Splinter Review
[PASSED QA] Bug 16337 - Remove the use of "onclick" from the stage MARC records template (2.14 KB, patch)
2016-04-27 08:36 UTC, Katrin Fischer
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Owen Leonard 2016-04-25 14:40:03 UTC
There are a couple of instances of "onclick" in stage-marc-import.tt which can be removed in favor of defining events in the JavaScript.
Comment 1 Owen Leonard 2016-04-25 14:43:58 UTC Comment hidden (obsolete)
Comment 2 Aleisha Amohia 2016-04-25 23:19:33 UTC Comment hidden (obsolete)
Comment 3 Katrin Fischer 2016-04-27 08:36:36 UTC
Created attachment 50789 [details] [review]
[PASSED QA] Bug 16337 - Remove the use of "onclick" from the stage MARC records template

This patch reviseds the stage MARC records template, removing "onclick"
attributes from the markup and defining those events in the script.

To test, apply the patch and go to Tools -> Stage MARC records for
import.

- Select a MARC file for import.
- Click the "Upload file" button. Your upload should be processed
  correctly.
- Select a MARC file for import.
- Click the "Upload file" button.
- Click the "Cancel" button before the file has been uploaded. The
  upload should be cancelled.

Signed-off-by: Aleisha <aleishaamohia@hotmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 4 Kyle M Hall 2016-04-29 16:46:25 UTC
Pushed to master for the 16.05 release. Thanks Owen!