[open-ils-commits] r11024 - in trunk/Open-ILS/xul/staff_client/chrome: content/cat locale/en-US

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Nov 2 16:56:21 EST 2008


Author: phasefx
Date: 2008-11-02 16:56:16 -0500 (Sun, 02 Nov 2008)
New Revision: 11024

Modified:
   trunk/Open-ILS/xul/staff_client/chrome/content/cat/opac.js
   trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties
Log:
stash the mvr for a record marked for overlay, and give some visible confirmation that the record was marked

Modified: trunk/Open-ILS/xul/staff_client/chrome/content/cat/opac.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/cat/opac.js	2008-11-02 19:40:44 UTC (rev 11023)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/cat/opac.js	2008-11-02 21:56:16 UTC (rev 11024)
@@ -240,6 +240,19 @@
 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() {

Modified: trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties	2008-11-02 19:40:44 UTC (rev 11023)
+++ trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties	2008-11-02 21:56:16 UTC (rev 11024)
@@ -28,6 +28,8 @@
 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.



More information about the open-ils-commits mailing list