From 86e9802fc9dc432a73af0695eee0b5b39ec972e4 Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 20 Feb 2006 18:01:59 +0000 Subject: [PATCH] marcxml to brn git-svn-id: svn://svn.open-ils.org/ILS/trunk@3132 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../xul/staff_client/chrome/content/main/constants.js | 1 + Open-ILS/xul/staff_client/server/cat/z3950.js | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/main/constants.js b/Open-ILS/xul/staff_client/chrome/content/main/constants.js index 774673dd6c..3cc4e0d47e 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/constants.js @@ -34,6 +34,7 @@ var api = { 'FM_AU_RETRIEVE_VIA_ID' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.fleshed.retrieve' }, 'FM_BRE_RETRIEVE_VIA_ID' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record.metadata.retrieve' }, 'FM_BRE_ID_SEARCH_VIA_TCN' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.tcn' }, + 'FM_BRN_FROM_MARCXML' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.z3950.marcxml_to_brn' }, 'FM_CCS_RETRIEVE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.config.copy_status.retrieve.all' }, 'FM_CIRC_RETRIEVE_VIA_USER' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.actor.user.checked_out.slim' }, 'FM_CIT_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.ident_types.retrieve' }, diff --git a/Open-ILS/xul/staff_client/server/cat/z3950.js b/Open-ILS/xul/staff_client/server/cat/z3950.js index 7886e29603..65c77740ea 100644 --- a/Open-ILS/xul/staff_client/server/cat/z3950.js +++ b/Open-ILS/xul/staff_client/server/cat/z3950.js @@ -111,9 +111,14 @@ cat.z3950.prototype = { ['command'], function() { obj.spawn_marc_editor( - obj.results.records[ - obj.controller.view.marc_import.getAttribute('retrieve_id') - ].brn + obj.network.simple_request( + 'FM_BRN_FROM_MARCXML', + [ + obj.results.records[ + obj.controller.view.marc_import.getAttribute('retrieve_id') + ].marcxml + ] + ) ); }, ], -- 2.43.2