Skip to content

Commit 2cce87c

Browse files
Merged dspace-cris-2023_02_x into task/dspace-cris-2023_02_x/DSC-1516
2 parents deece40 + 42c8b70 commit 2cce87c

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

src/app/cris-layout/cris-layout-loader/cris-layout-vertical/cris-layout-sidebar/cris-layout-sidebar.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
<i class="fa fa-chevron-circle-{{(isSideBarHidden() | async) ? 'right' : 'left'}} fa-2x" aria-hidden="true"></i>
2121
</button>
2222
</div>
23-
<div class="d-flex flex-column">
23+
<div class="d-flex flex-column" [ngClass]="{'pl-4': (hasSidebar() | async)}">
2424
<ng-content></ng-content>
2525
</div>
2626

2727
</div>
2828

29-
</div>
29+
</div>

src/app/shared/search/search-charts/search-chart/search-chart-filter/search-chart-filter.component.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,18 @@ export class SearchChartFilterComponent extends SearchFacetFilterComponent imple
9090
}
9191
queryParam[str[0]] = queryParam[str[0]] ? [...queryParam[str[0]], str[1]] : [str[1]];
9292
});
93+
94+
if (this.currentUrl) {
95+
const currentQueryParams = this.currentUrl.split('?')[1].split('&');
96+
const pageParam = currentQueryParams.filter((param) => param.includes('page'));
97+
if (pageParam.length > 0) {
98+
const paramName = pageParam[0].split('=')[0];
99+
queryParam[paramName] = [1];
100+
}
101+
} else {
102+
queryParam['spc.page'] = [1];
103+
}
104+
93105
this.router.navigate(this.getSearchLinkParts(), {
94106
queryParams: queryParam,
95107
queryParamsHandling: 'merge',

0 commit comments

Comments
 (0)