From 95d209e3e124a84feeab37830df003c8b79aaa3e Mon Sep 17 00:00:00 2001 From: phasefx Date: Sun, 2 Nov 2008 21:56:16 +0000 Subject: [PATCH] stash the mvr for a record marked for overlay, and give some visible confirmation that the record was marked git-svn-id: svn://svn.open-ils.org/ILS/trunk@11024 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../xul/staff_client/chrome/content/cat/opac.js | 13 +++++++++++++ .../chrome/locale/en-US/offline.properties | 2 ++ 2 files changed, 15 insertions(+) diff --git a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js b/Open-ILS/xul/staff_client/chrome/content/cat/opac.js index be0b4284bf..af48c41b9b 100644 --- a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js +++ b/Open-ILS/xul/staff_client/chrome/content/cat/opac.js @@ -240,6 +240,19 @@ function add_to_bucket() { function mark_for_overlay() { g.data.marked_record = docid; g.data.stash('marked_record'); + var robj = g.network.simple_request('MODS_SLIM_RECORD_RETRIEVE.authoritative',[docid]); + if (typeof robj.ilsevent == 'undefined') { + g.data.marked_record_mvr = robj; + } else { + g.data.marked_record_mvr = null; + g.error.standard_unexpected_error_alert('in mark_for_overlay',robj); + } + g.data.stash('marked_record_mvr'); + if (g.data.marked_record_mvr) { + alert(document.getElementById('offlineStrings').getFormattedString('cat.opac.record_marked_for_overlay.tcn.alert',[ g.data.marked_record_mvr.tcn() ])); + } else { + alert(document.getElementById('offlineStrings').getFormattedString('cat.opac.record_marked_for_overlay.record_id.alert',[ g.data.marked_record ])); + } } function delete_record() { diff --git a/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties b/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties index f45013536b..8197b820e5 100644 --- a/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties +++ b/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties @@ -28,6 +28,8 @@ cat.opac.record_undeleted=Record undeleted. cat.opac.record_undeleted.confirm=Check here to confirm this action. # variables: document ID, error code, error description cat.opac.record_delete.error=Error deleting record #%1$s : %2$s : %3$s +cat.opac.record_marked_for_overlay.record_id.alert=Record with ID %1$s marked for overlay. +cat.opac.record_marked_for_overlay.tcn.alert=Record with TCN %1$s marked for overlay. cat.save_record=Save Record cat.save.success=Record successfully saved. cat.save.failure=Record not likely updated. -- 2.43.2