"Create authority immediately" from MARC Editor truncates a letter

Bug #669445 reported by Dan Scott
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Undecided
Dan Scott

Bug Description

  * Evergreen 2.0 alpha 5
  * PostgreSQL 8.4

To reproduce:
  1, Add a controlled field that has no matching authority record (e.g. 100 $a James, Marion)
  2. Right-click and select "Create immediately" from the context menu
  3. The $0 subfield with the ID for the new authority record is automatically added to the field
  4. Click "Validate" and the field turns red (THIS SHOULD NOT HAPPEN!)
  5. Check "Manage Authorities" interface for authorities matching "James, Mari", and you'll find one for "James, Mario" instead of "James, Marion"

Probably an off-by-one error when the $0 subfield is appended.

Tags: authority
Dan Scott (denials)
Changed in evergreen:
assignee: nobody → Dan Scott (denials)
milestone: none → beta1
Dan Scott (denials)
tags: added: authority
Revision history for this message
Dan Scott (denials) wrote :

Narrowed down further; doesn't seem to happen when you cursor off of a subfield, then right-click on the subfield again. Only if you type "James, Marion" and then immediately right-click on the subfield.

Dan Scott (denials)
Changed in evergreen:
milestone: beta1 → beta2
Revision history for this message
Dan Scott (denials) wrote :

Problem was in the use of the 'keypress' event instead of the 'input' event in the registered listeners that were setting the box value. Adding the 'input' event captured the value after the character had been appended to the textbox and resolved the problem.

Committed to trunk in18731 and to rel_2_0 in 18732.

Changed in evergreen:
status: New → Fix Committed
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.