From 29dcee6d114359b3994a2be66853c176a2b3e58c Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Thu, 6 Oct 2011 16:54:35 -0400 Subject: [PATCH] Carry indicators over from authority main entries to bibs, when applying them in the marc editor Signed-off-by: Mike Rylander --- Open-ILS/xul/staff_client/server/cat/marcedit.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js index b18c8a7442..066a0845d7 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.js +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js @@ -1551,6 +1551,13 @@ function applyAuthority ( target, ui_sf, e4x_sf, new_vals ) { } for (var i = 0; i < new_vals.length; i++) { + + /* indicators for the authority datafield are carried over in the main entry linking subfield */ + if (new_vals[i].getAttribute('subfield') == '0') { + field.@ind1 = new_vals[i].getAttribute('ind1'); + field.@ind2 = new_vals[i].getAttribute('ind2'); + } + if (!new_vals[i].getAttribute('subfield')) continue; var val = new_vals[i].getAttribute('value'); @@ -1907,6 +1914,8 @@ function buildAuthorityPopupSelector (field, grid, auth_org, auth_id) { { "label" : '\u2021' + '0' + ' (' + auth_org + ')' + auth_id, "subfield" : '0', "tag" : dojo.attr(field, 'tag'), + "ind1" : dojo.attr(field, 'ind1'), + "ind2" : dojo.attr(field, 'ind2'), "value" : '(' + auth_org + ')' + auth_id } ) -- 2.11.0