Bug 13003

Summary: Prevent accidental form submission when scanning barcodes, in addbiblio.pl
Product: Koha Reporter: Mason James <mtj>
Component: CatalogingAssignee: Galen Charlton <gmcharlt>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: m.de.rooy
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Crowdfunding committed: 0
Crowdfunding contact: Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Mason James 2014-09-29 09:35:33 UTC
Currently in addbiblio.pl, scanning a barcode into any field will accidentally save the record (if the scanner is programmed to add a 'CR' character to the string)

the easiest solution seems to be to remove the focus from the page's submit button - perhaps using the blur() JS method?

 http://www.w3schools.com/jsref/met_submit_blur.asp
Comment 1 Owen Leonard 2019-11-21 18:38:47 UTC
This bug doesn't appear to be valid anymore.