From: phasefx Date: Sun, 2 Nov 2008 22:02:08 +0000 (+0000) Subject: show the TCN for the record marked for overlay if the local chrome client stashed... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0b01d5f27586e31a11e9b45b795cf38b52381924;p=Evergreen.git show the TCN for the record marked for overlay if the local chrome client stashed that data git-svn-id: svn://svn.open-ils.org/ILS/trunk@11026 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/cat/z3950.js b/Open-ILS/xul/staff_client/server/cat/z3950.js index 243bb3bd28..64bc65db16 100644 --- a/Open-ILS/xul/staff_client/server/cat/z3950.js +++ b/Open-ILS/xul/staff_client/server/cat/z3950.js @@ -373,7 +373,11 @@ cat.z3950.prototype = { var sel = obj.list.retrieve_selection(); if (sel.length > 0) { obj.controller.view.marc_import_overlay.disabled = false; } if ($("overlay_tcn_indicator")) { - $("overlay_tcn_indicator").setAttribute('value',$("catStrings").getFormattedString('staff.cat.z3950.marked_record_for_overlay_indicator.label',[obj.data.marked_record])); + if (obj.data.marked_record_mvr) { + $("overlay_tcn_indicator").setAttribute('value',$("catStrings").getFormattedString('staff.cat.z3950.marked_record_for_overlay_indicator.tcn.label',[obj.data.marked_record_mvr.tcn()])); + } else { + $("overlay_tcn_indicator").setAttribute('value',$("catStrings").getFormattedString('staff.cat.z3950.marked_record_for_overlay_indicator.record_id.label',[obj.data.marked_record])); + } } } else { obj.controller.view.marc_import_overlay.disabled = true; diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties b/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties index 4928a6d934..88474b7860 100644 --- a/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties +++ b/Open-ILS/xul/staff_client/server/locale/en-US/cat.properties @@ -377,7 +377,8 @@ staff.cat.z3950.hide_top_pane.label=Hide Top Pane staff.cat.z3950.hide_top_pane.accesskey=T staff.cat.z3950.unhide_top_pane.label=Show Top Pane staff.cat.z3950.unhide_top_pane.accesskey=T -staff.cat.z3950.marked_record_for_overlay_indicator.label=Record %1$s marked for overlay. +staff.cat.z3950.marked_record_for_overlay_indicator.record_id.label=Record with ID %1$s marked for overlay. +staff.cat.z3950.marked_record_for_overlay_indicator.tcn.label=Record with TCN %1$s marked for overlay. staff.cat.z3950.marked_record_for_overlay_indicator.no_record.label=No record marked for overlay. staff.cat.z3950.obj_controller_init.marc_view_error=Failure during MARC view. staff.cat.z3950.obj_controller_init.marc_import_error=Failure during MARC import.