mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Merge pull request #425 from atmire/cleanup-search-service
Reverted #424
This commit is contained in:
@@ -354,10 +354,7 @@ export class SearchService implements OnDestroy {
|
||||
* @returns {string} The base path to the search page
|
||||
*/
|
||||
getSearchLink(): string {
|
||||
const urlTree = this.router.parseUrl(this.router.url);
|
||||
const g: UrlSegmentGroup = urlTree.root.children[PRIMARY_OUTLET];
|
||||
const searchLink: any = '/' + g.toString();
|
||||
return (searchLink !== '/search' && searchLink !== '/mydspace') ? '/search' : searchLink;
|
||||
return '/search';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -1,4 +1,3 @@
|
||||
<script src="../search-switch-configuration/search-switch-configuration.component.ts"></script>
|
||||
<ng-container *ngVar="(searchOptions$ | async) as config">
|
||||
<h3>{{ 'search.sidebar.settings.title' | translate}}</h3>
|
||||
<div *ngIf="config?.sort" class="setting-option result-order-settings mb-3 p-3">
|
||||
|
Reference in New Issue
Block a user