From d96059a6ceaeba487402976050c41e1991c59f06 Mon Sep 17 00:00:00 2001 From: phasefx Date: Sun, 26 Sep 2010 10:29:36 +0000 Subject: [PATCH] unmark record for overlay after it is overlaid git-svn-id: svn://svn.open-ils.org/ILS/trunk@18006 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/z3950.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/cat/z3950.js b/Open-ILS/xul/staff_client/server/cat/z3950.js index eba4ca044b..1b045bd770 100644 --- a/Open-ILS/xul/staff_client/server/cat/z3950.js +++ b/Open-ILS/xul/staff_client/server/cat/z3950.js @@ -947,6 +947,19 @@ cat.z3950.prototype = { } } else { alert($("catStrings").getString('staff.cat.z3950.spawn_marc_editor_for_overlay.success_overlay')); + try { + obj.data.marked_record_mvr = null; + obj.data.marked_record = null; + obj.data.stash('marked_record'); + obj.data.stash('marked_record_mvr'); + obj.controller.view.marc_import_overlay.disabled = true; + if ($("overlay_tcn_indicator")) { + $("overlay_tcn_indicator").setAttribute('value',$("catStrings").getString('staff.cat.z3950.marked_record_for_overlay_indicator.no_record.label')); + } + xulG.set_statusbar(1, $("catStrings").getString('staff.cat.z3950.marked_record_for_overlay_indicator.no_record.label') ); + } catch(E) { + dump('Error in z3950.js, post-overlay: ' + E + '\n'); + } return { 'id' : r.id(), 'on_complete' : function() { -- 2.11.0