mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 04:53:06 +00:00
104189: CSV export add fixedFilter
This commit is contained in:
@@ -94,6 +94,19 @@ export class SearchExportCsvComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (isNotEmpty(this.searchConfig.fixedFilter)) {
|
||||||
|
const fixedFilter = this.searchConfig.fixedFilter.substring(2);
|
||||||
|
const keyAndValue = fixedFilter.split('=');
|
||||||
|
if (keyAndValue.length > 1) {
|
||||||
|
const key = keyAndValue[0];
|
||||||
|
const valueAndOperator = keyAndValue[1].split(',');
|
||||||
|
if (valueAndOperator.length > 1) {
|
||||||
|
const value = valueAndOperator[0];
|
||||||
|
const operator = valueAndOperator[1];
|
||||||
|
parameters.push({name: '-f', value: `${key},${operator}=${value}`});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.scriptDataService.invoke('metadata-export-search', parameters, []).pipe(
|
this.scriptDataService.invoke('metadata-export-search', parameters, []).pipe(
|
||||||
|
Reference in New Issue
Block a user