marcxml to brn
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 20 Feb 2006 18:01:59 +0000 (18:01 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 20 Feb 2006 18:01:59 +0000 (18:01 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3132 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/main/constants.js
Open-ILS/xul/staff_client/server/cat/z3950.js

index 774673d..3cc4e0d 100644 (file)
@@ -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_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' },
        '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' },
index 7886e29..65c7774 100644 (file)
@@ -111,9 +111,14 @@ cat.z3950.prototype = {
                                                        ['command'],
                                                        function() {
                                                                obj.spawn_marc_editor(
                                                        ['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
+                                                                               ]
+                                                                       )
                                                                );
                                                        },
                                                ],
                                                                );
                                                        },
                                                ],