Commits

Tim Donohue authored and GitHub committed 933a4aee263 Merge
Merge pull request #2049 from 4Science/CST-8165

CST-8165 show logo when browsing collections
No tags
gidlmaster

src/app/browse-by/browse-by-date-page/browse-by-date-page.component.ts

Modified
58 58 map(([routeParams, queryParams, data, currentPage, currentSort]) => {
59 59 return [Object.assign({}, routeParams, queryParams, data), currentPage, currentSort];
60 60 })
61 61 ).subscribe(([params, currentPage, currentSort]: [Params, PaginationComponentOptions, SortOptions]) => {
62 62 const metadataKeys = params.browseDefinition ? params.browseDefinition.metadataKeys : this.defaultMetadataKeys;
63 63 this.browseId = params.id || this.defaultBrowseId;
64 64 this.startsWith = +params.startsWith || params.startsWith;
65 65 const searchOptions = browseParamsToOptions(params, currentPage, currentSort, this.browseId, this.fetchThumbnails);
66 66 this.updatePageWithItems(searchOptions, this.value, undefined);
67 67 this.updateParent(params.scope);
68 + this.updateLogo();
68 69 this.updateStartsWithOptions(this.browseId, metadataKeys, params.scope);
69 70 }));
70 71 }
71 72
72 73 /**
73 74 * Update the StartsWith options
74 75 * In this implementation, it creates a list of years starting from now, going all the way back to the earliest
75 76 * date found on an item within this scope. The further back in time, the bigger the change in years become to avoid
76 77 * extremely long lists with a one-year difference.
77 78 * To determine the change in years, the config found under GlobalConfig.BrowseBy is used for this.

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut