LP#1859191 - Use correct API method for updating existing MARC records.
authorChris Sharp <csharp@georgialibraries.org>
Fri, 10 Jan 2020 16:54:08 +0000 (11:54 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Thu, 20 Feb 2020 16:21:51 +0000 (11:21 -0500)
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>

Open-ILS/src/eg2/src/app/staff/share/marc-edit/editor.component.ts
Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js

index e25734f..44da299 100644 (file)
@@ -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
index 09b46d0..3967267 100644 (file)
@@ -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(