From 2bb8e3c61a5b801c7e8d8d382ca747cd2368ea12 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Fri, 10 Jan 2020 11:54:08 -0500 Subject: [PATCH] LP#1859191 - Use correct API method for updating existing MARC records. Signed-off-by: Chris Sharp Signed-off-by: Bill Erickson Signed-off-by: Chris Sharp --- .../src/eg2/src/app/staff/share/marc-edit/editor.component.ts | 2 +- Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editor.component.ts b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editor.component.ts index e25734f35c..44da299df0 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editor.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/marc-edit/editor.component.ts @@ -114,7 +114,7 @@ export class MarcEditorComponent implements OnInit { if (this.record.id) { // Editing an existing record - const method = 'open-ils.cat.biblio.record.marc.replace'; + const method = 'open-ils.cat.biblio.record.xml.update'; return this.net.request('open-ils.cat', method, this.auth.token(), this.record.id, xml, sourceName diff --git a/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js b/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js index 09b46d0c2e..3967267aa7 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js +++ b/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js @@ -1394,7 +1394,7 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap']) if ($scope.recordId) { var method = $scope.record_type === 'bre' ? - 'open-ils.cat.biblio.record.marc.replace' : + 'open-ils.cat.biblio.record.xml.update' : 'open-ils.cat.authority.record.overlay'; promise = egCore.net.request( -- 2.43.2