[Koha-bugs] [Bug 13391] MARC 008 builder plugin not compatible with browser autocompletion
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Dec 5 12:29:49 CET 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13391
--- Comment #4 from Jacek Ablewicz <ablewicz at gmail.com> ---
Created attachment 34138
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=34138&action=edit
Bug 13391 - MARC 008 builder plugin not compatible with browser autocompletion
In the koha-tmpl/intranet-tmpl/prog/en/js/xmlControlfield.js
(currently used by 006 and 008 MARC21 plugins), in line 317 there
are two JS events (onkeyup and onfocus) associated with <input> fields.
But there is a slight problem with onkeyup event handler, apparently
this event does not fire when:
- user starts to enter some characters using the keyboard,
- and then chooses something from the autocompletion list offered by browser.
In such circumstances only the first character[s] entered in the given
field are saved in 006 and/or 008 (only the part that was typed on the
keyboard), and the remaining characters are effectively being ignored.
This patch adds two additional event handlers to the <input> fields
generated by the renderPositions() function in xmlControlfield.js:
oninput (that should completely solve the problem for recent,
HTML5-compliant browsers) and onblur (that, while not being quite
satisfactory solution, should at least somehow improve things
for old/lagacy WWW browsers as well).
To test:
- reproduce the aforementioned issue (try to enter some data into
e.g. "country code" / 15-17 positions in the 008 MARC21 plugin: first
using only the keyboard, and then by the means of the browser autocomplete)
- observe that when the value is choosen from the autocompletion list,
only the 1st part of it is being stored in the respective 008 field
positions on the top
- apply patch
- clear browser cache
- retest (preferably using some modern WWW browser first, and then
something much older and inherently broken like IE7 or IE8 etc.)
- make sure there are no aparent regresions of any kinds regarding
006 and 008 MARC21 plugins behaviour.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list