From 935d4f5c720c10d92402f8ad6c121e18cd89ce14 Mon Sep 17 00:00:00 2001 From: dbs Date: Tue, 31 Aug 2010 03:17:35 +0000 Subject: [PATCH] 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. 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 | 2 +- Open-ILS/web/js/ui/default/vandelay/vandelay.js | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/ui/default/acq/common/li_table.js b/Open-ILS/web/js/ui/default/acq/common/li_table.js index 40f1217b4..f57576c52 100644 --- a/Open-ILS/web/js/ui/default/acq/common/li_table.js +++ b/Open-ILS/web/js/ui/default/acq/common/li_table.js @@ -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) { diff --git a/Open-ILS/web/js/ui/default/vandelay/vandelay.js b/Open-ILS/web/js/ui/default/vandelay/vandelay.js index 61d048502..d5828ed42 100644 --- a/Open-ILS/web/js/ui/default/vandelay/vandelay.js +++ b/Open-ILS/web/js/ui/default/vandelay/vandelay.js @@ -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) { -- 2.11.0