fix cloning; flatSearch does not use IDL objects
authorJason Etheridge <phasefx@gmail.com>
Sun, 14 May 2023 02:13:25 +0000 (22:13 -0400)
committerJason Etheridge <phasefx@gmail.com>
Sun, 14 May 2023 13:04:51 +0000 (09:04 -0400)
Signed-off-by: Jason Etheridge <phasefx@gmail.com>
Open-ILS/src/eg2/src/app/staff/cat/linkchecker/new-session-dialog.component.ts

index e1e1862..06908dd 100644 (file)
@@ -20,7 +20,7 @@ import {debounceTime, distinctUntilChanged} from 'rxjs/operators';
 
 export class NewSessionDialogComponent extends DialogComponent implements OnInit, OnDestroy {
 
-    @Input() sessionToClone: IdlObject; // not really a "session", but a combined session/batch view
+    @Input() sessionToClone: any; // not really a "session", but a combined session/batch view
 
     progressText: string = '';
 
@@ -71,11 +71,11 @@ export class NewSessionDialogComponent extends DialogComponent implements OnInit
             _ => {
                 this.stopProgressMeter();
                 if (this.sessionToClone) {
-                    this.sessionName = 'Copy of ' + this.sessionToClone.name();
-                    this.sessionOwningLibrary = this.sessionToClone.owning_lib().id();
-                    this.sessionSearch = this.sessionToClone.search();
-                    this.selectorModels = { 'tag' : ['856'], 'subfields' : ['u'] };
-                    this.pcrud.search('uvus', {'session':this.sessionToClone.session_id()},{},{'atomic':true}).subscribe(
+                    console.log('this.sessionToClone', this.sessionToClone);
+                    this.sessionName = 'Copy of ' + this.sessionToClone.name;
+                    this.sessionOwningLibrary = this.sessionToClone.owning_lib;
+                    this.sessionSearch = this.sessionToClone.search;
+                    this.pcrud.search('uvus', {'session':this.sessionToClone.session_id},{},{'atomic':true}).subscribe(
                         (list) => {
                             console.log('list',list);
                             list.forEach( (s: any,idx: number) => {