-
{{ processAction | translate }}...
+
{{ processAction | translate }}
{{ statusResult?.status | translate }}
diff --git a/projects/arlas-toolkit/src/lib/services/collection/arlas-collection.service.ts b/projects/arlas-toolkit/src/lib/services/collection/arlas-collection.service.ts
index 826ace2b..a349719a 100644
--- a/projects/arlas-toolkit/src/lib/services/collection/arlas-collection.service.ts
+++ b/projects/arlas-toolkit/src/lib/services/collection/arlas-collection.service.ts
@@ -61,7 +61,7 @@ export class ArlasCollectionService extends BaseCollectionService {
const c = this.arlasStartupeService.collectionsMap.get(key);
this.displayName.set(key, c?.display_names?.collection ?? key);
const fields = c?.display_names?.fields;
- if(fields){
+ if (fields) {
for (const f of Object.keys(fields)) {
this.displayFieldName.set(this.flatten(f), c?.display_names?.fields[f]);
}
@@ -100,7 +100,14 @@ export class ArlasCollectionService extends BaseCollectionService {
const flattenedConfig = flattenData(config);
const collections = new Set
();
Object.keys(flattenedConfig)
- .filter(f => f.indexOf('collection') >= 0 || (f.indexOf('additionalCollections') >= 0 && f.indexOf('collectionName') >= 0))
+ .filter(k =>
+ (k.indexOf('collection') >= 0 || (k.indexOf('additionalCollections') >= 0 && k.indexOf('collectionName') >= 0))
+ &&
+ !k.includes('collection-display-name')
+ &&
+ !k.includes('collectionDisplayName')
+
+ )
.forEach(k => collections.add(flattenedConfig[k]));
return collections;
}
diff --git a/projects/arlas-toolkit/src/lib/services/process/process.service.ts b/projects/arlas-toolkit/src/lib/services/process/process.service.ts
index dfe70c0b..93b93da7 100644
--- a/projects/arlas-toolkit/src/lib/services/process/process.service.ts
+++ b/projects/arlas-toolkit/src/lib/services/process/process.service.ts
@@ -22,7 +22,7 @@ import { Injectable } from '@angular/core';
import { Expression, Filter, Search } from 'arlas-api';
import { projType } from 'arlas-web-core';
import { map, Observable } from 'rxjs';
-import { ProcessInputs, ProcessOutput } from '../../tools/process.interface';
+import { Process, ProcessInputs, ProcessOutput } from '../../tools/process.interface';
import { ArlasCollaborativesearchService } from '../collaborative-search/arlas.collaborative-search.service';
import { ArlasSettingsService } from '../settings/arlas.settings.service';
@@ -85,15 +85,15 @@ export class ProcessService {
this.processInputs = process;
}
- public load(processName: string): Observable {
+ public load(processName: string): Observable {
return this.http.get(
this.arlasSettingsService.getProcessSettings(processName)?.settings.url,
Object.assign(this.options, { responseType: 'text' })
)
.pipe(
map(c => {
- const process: ProcessInputs = JSON.parse(c as any);
- this.setProcessInputs(process);
+ const process: Process = JSON.parse(c as any);
+ this.setProcessInputs(process.inputs);
return process;
})
);
@@ -112,12 +112,8 @@ export class ProcessService {
));
}
- public getItemsDetail(
- idFieldName,
- itemsId: string[],
- collection: string
- ): Observable