mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 02:54:13 +00:00
[CST-7216] Design fixes and parameter changed
This commit is contained in:

committed by
Francesco Pio Scognamiglio

parent
e47b42bc89
commit
98da08ead0
@@ -84,7 +84,11 @@ export class BatchImportPageComponent {
|
||||
*/
|
||||
public importMetadata() {
|
||||
if (this.fileObject == null && isEmpty(this.fileURL)) {
|
||||
this.notificationsService.error(this.translate.get('admin.metadata-import.page.error.addFile'));
|
||||
if (this.isUpload) {
|
||||
this.notificationsService.error(this.translate.get('admin.metadata-import.page.error.addFile'));
|
||||
} else {
|
||||
this.notificationsService.error(this.translate.get('admin.metadata-import.page.error.addFileUrl'));
|
||||
}
|
||||
} else {
|
||||
const parameterValues: ProcessParameter[] = [
|
||||
Object.assign(new ProcessParameter(), { name: '--add' })
|
||||
@@ -93,7 +97,7 @@ export class BatchImportPageComponent {
|
||||
parameterValues.push(Object.assign(new ProcessParameter(), { name: '--zip', value: this.fileObject.name }));
|
||||
} else {
|
||||
this.fileObject = null;
|
||||
parameterValues.push(Object.assign(new ProcessParameter(), { name: '--u', value: this.fileURL }));
|
||||
parameterValues.push(Object.assign(new ProcessParameter(), { name: '--url', value: this.fileURL }));
|
||||
}
|
||||
if (this.dso) {
|
||||
parameterValues.push(Object.assign(new ProcessParameter(), { name: '--collection', value: this.dso.uuid }));
|
||||
|
Reference in New Issue
Block a user