[open-ils-commits] r17394 - in trunk/Open-ILS/web/js/ui/default: acq/common vandelay (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Aug 30 23:17:38 EDT 2010


Author: dbs
Date: 2010-08-30 23:17:35 -0400 (Mon, 30 Aug 2010)
New Revision: 17394

Modified:
   trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
   trunk/Open-ILS/web/js/ui/default/vandelay/vandelay.js
Log:
Add explicit rtype options to more invokers of the MARC Editor

Neither are particularly applicable to the current bib_source editor
implementation, but may be useful for other purposes inside the editor.


Modified: trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js	2010-08-30 22:01:10 UTC (rev 17393)
+++ trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js	2010-08-31 03:17:35 UTC (rev 17394)
@@ -2309,7 +2309,7 @@
         }
         var self = this;
         win.xulG = {
-            record : {marc : li.marc()},
+            record : {marc : li.marc(), "rtype": "bre"},
             save : {
                 label: 'Save Record', // XXX I18N
                 func: function(xmlString) {

Modified: trunk/Open-ILS/web/js/ui/default/vandelay/vandelay.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/vandelay/vandelay.js	2010-08-30 22:01:10 UTC (rev 17393)
+++ trunk/Open-ILS/web/js/ui/default/vandelay/vandelay.js	2010-08-31 03:17:35 UTC (rev 17394)
@@ -1055,6 +1055,13 @@
     netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
     win = window.open('/xul/server/cat/marcedit.xul'); // XXX version?
 
+    var type;
+    if (currentType == 'bib') {
+        type = 'bre';
+    } else {
+        type = 'are';
+    }
+
     function onsave(r) {
         // after the record is saved, reload the HTML display
         var stat = r.recv().content();
@@ -1066,7 +1073,7 @@
     }
 
     win.xulG = {
-        record : {marc : rec.marc()},
+        record : {marc : rec.marc(), "rtype": type},
         save : {
             label: dojo.byId('vl-marc-edit-save-label').innerHTML,
             func: function(xmlString) {



More information about the open-ils-commits mailing list