]> git.evergreen-ils.org Git - Evergreen.git/commit
LP1907115 MARC editor avoid ID collisions
authorBill Erickson <berickxx@gmail.com>
Wed, 9 Dec 2020 19:04:52 +0000 (14:04 -0500)
committerJane Sandberg <sandbej@linnbenton.edu>
Wed, 10 Feb 2021 20:25:48 +0000 (12:25 -0800)
commit2dbb92d4acd10eb9e67e2ac6d9625c237b162c62
tree9a24b9135c70c3616714524169a9d86d6b38f870
parent10339d10220d0b1f706eb5b849bf34af5d5d1822
LP1907115 MARC editor avoid ID collisions

Generate DOM IDs for editable content components via incrementing int
instead of a random int.  This addresses cases where records with higher
numbers of MARC fields could result id DOM ID collisions, leading to
empty subfield values.

Also remove use of Renderer2, which is considered harmful and overkill
for simple document.getElementById()-equivalent calls.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Elaine Hardy <ehardy@georgialibraries.org>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/eg2/src/app/staff/share/marc-edit/editable-content.component.ts