mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Merge pull request #2479 from DSpace/backport-2366-to-dspace-7_x
[Port dspace-7_x] CSV export fixes
This commit is contained in:
@@ -2,5 +2,6 @@
|
||||
[fixedFilterQuery]="fixedFilter"
|
||||
[configuration]="configuration"
|
||||
[searchEnabled]="searchEnabled"
|
||||
[sideBarWidth]="sideBarWidth">
|
||||
[sideBarWidth]="sideBarWidth"
|
||||
[showCsvExport]="true">
|
||||
</ds-configuration-search-page>
|
||||
|
@@ -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(
|
||||
|
Reference in New Issue
Block a user