diff --git a/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts b/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts index 83efdf8208..60db6c3148 100644 --- a/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts +++ b/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.ts @@ -151,15 +151,15 @@ export class BrowseByMetadataPageComponent implements OnInit, OnDestroy { ).subscribe(([params, currentPage, currentSort]: [Params, PaginationComponentOptions, SortOptions]) => { this.browseId = params.id || this.defaultBrowseId; this.authority = params.authority; - + if (typeof params.value === 'string'){ this.value = params.value.trim(); } - + if (typeof params.startsWith === 'string'){ this.startsWith = params.startsWith.trim(); } - + if (isNotEmpty(this.value)) { this.updatePageWithItems( browseParamsToOptions(params, currentPage, currentSort, this.browseId, this.fetchThumbnails), this.value, this.authority);