From: Mike Rylander Date: Thu, 6 Oct 2011 20:54:35 +0000 (-0400) Subject: Carry indicators over from authority main entries to bibs, when applying them in... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fnfi_rebase;p=evergreen%2Fequinox.git Carry indicators over from authority main entries to bibs, when applying them in the marc editor Signed-off-by: Mike Rylander --- 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 } )