Add explicit rtype options to more invokers of the MARC Editor
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 31 Aug 2010 03:17:35 +0000 (03:17 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 31 Aug 2010 03:17:35 +0000 (03:17 +0000)
Neither are particularly applicable to the current bib_source editor
implementation, but may be useful for other purposes inside the editor.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@17394 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/acq/common/li_table.js
Open-ILS/web/js/ui/default/vandelay/vandelay.js

index 40f1217..f57576c 100644 (file)
@@ -2309,7 +2309,7 @@ function AcqLiTable() {
         }
         var self = this;
         win.xulG = {
-            record : {marc : li.marc()},
+            record : {marc : li.marc(), "rtype": "bre"},
             save : {
                 label: 'Save Record', // XXX I18N
                 func: function(xmlString) {
index 61d0485..d5828ed 100644 (file)
@@ -1055,6 +1055,13 @@ function vlOpenMarcEditWindow(rec, postReloadHTMLHandler) {
     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 @@ function vlOpenMarcEditWindow(rec, postReloadHTMLHandler) {
     }
 
     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) {