From 9dd5b420ff5ffa3fe775a07c904d16b1a8fbfd40 Mon Sep 17 00:00:00 2001 From: Liam Whalen Date: Tue, 1 Nov 2011 15:59:13 -0400 Subject: [PATCH] Aligned the MARC editor subfields to 'start' fixes long subfield display When viewing a record in the MARC editor that has extremely long entries in a subfield, the output would align in the center of the subfield making the output hard to read. This patch adds an align: 'start' option to both the subfield, and the subfield code elements in the marcSubfield function to make the subfields align in a more readable manner. Signed-off-by: Liam Whalen Signed-off-by: Mike Rylander --- Open-ILS/xul/staff_client/server/cat/marcedit.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js index 0d5e92a334..418d0eedc2 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.js +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js @@ -1051,6 +1051,7 @@ function marcSubfield (sf) { sf.@code, { value : sf.@code, class : 'plain marcSubfieldCode', + align: 'start', name : 'marcSubfieldCode', onmouseover : 'current_focus = this; getContextMenu(this, "subfield"); getTooltip(this, "subfield");', oncontextmenu : 'getContextMenu(this, "subfield");', @@ -1062,6 +1063,7 @@ function marcSubfield (sf) { { value : sf.text(), name : sf.parent().@tag + ':' + sf.@code, class : 'plain marcSubfield', + align: 'start', onmouseover : 'getTooltip(this, "subfield");', contextmenu : function (event) { getAuthorityContextMenu(event.target, sf) }, size : new String(sf.text()).length + 2, -- 2.11.0