diff --git a/src/app/shared/dso-selector/modal-wrappers/export-batch-selector/export-batch-selector.component.spec.ts b/src/app/shared/dso-selector/modal-wrappers/export-batch-selector/export-batch-selector.component.spec.ts index bfd10346b3..18ec6007ea 100644 --- a/src/app/shared/dso-selector/modal-wrappers/export-batch-selector/export-batch-selector.component.spec.ts +++ b/src/app/shared/dso-selector/modal-wrappers/export-batch-selector/export-batch-selector.component.spec.ts @@ -150,11 +150,10 @@ describe('ExportBatchSelectorComponent', () => { done(); }); }); - it('should invoke the batch-export script with option --id uuid and -a option', () => { + it('should invoke the batch-export script with option --id uuid option', () => { const parameterValues: ProcessParameter[] = [ Object.assign(new ProcessParameter(), { name: '--id', value: mockCollection.uuid }), Object.assign(new ProcessParameter(), { name: '--type', value: 'COLLECTION' }), - Object.assign(new ProcessParameter(), { name: '-a' }), ]; expect(scriptService.invoke).toHaveBeenCalledWith(BATCH_EXPORT_SCRIPT_NAME, parameterValues, []); }); @@ -176,7 +175,7 @@ describe('ExportBatchSelectorComponent', () => { done(); }); }); - it('should invoke the Batch-export script with option --id uuid without the -a option', () => { + it('should invoke the Batch-export script with option --id uuid without option', () => { const parameterValues: ProcessParameter[] = [ Object.assign(new ProcessParameter(), { name: '--id', value: mockCollection.uuid }), Object.assign(new ProcessParameter(), { name: '--type', value: 'COLLECTION' }) diff --git a/src/app/shared/dso-selector/modal-wrappers/export-batch-selector/export-batch-selector.component.ts b/src/app/shared/dso-selector/modal-wrappers/export-batch-selector/export-batch-selector.component.ts index cb09b34c58..0645e09029 100644 --- a/src/app/shared/dso-selector/modal-wrappers/export-batch-selector/export-batch-selector.component.ts +++ b/src/app/shared/dso-selector/modal-wrappers/export-batch-selector/export-batch-selector.component.ts @@ -86,10 +86,7 @@ export class ExportBatchSelectorComponent extends DSOSelectorModalWrapperCompone Object.assign(new ProcessParameter(), { name: '--type', value: 'COLLECTION' }) ]; return this.authorizationDataService.isAuthorized(FeatureID.AdministratorOf).pipe( - switchMap((isAdmin) => { - if (isAdmin) { - parameterValues.push(Object.assign(new ProcessParameter(), {name: '-a'})); - } + switchMap(() => { return this.scriptDataService.invoke(BATCH_EXPORT_SCRIPT_NAME, parameterValues, []); }), getFirstCompletedRemoteData(),