@@ -15,12 +15,10 @@ import {
1515} from '@ng-bootstrap/ng-bootstrap' ;
1616import { TranslateModule } from '@ngx-translate/core' ;
1717import { take } from 'rxjs/operators' ;
18+ import { getDSORoute } from 'src/app/app-routing-paths' ;
1819
19- import { getCollectionModuleRoute } from '../../../collection-page/collection-page-routing-paths' ;
20- import { getCommunityModuleRoute } from '../../../community-page/community-page-routing-paths' ;
2120import { DSONameService } from '../../../core/breadcrumbs/dso-name.service' ;
2221import { DSpaceObject } from '../../../core/shared/dspace-object.model' ;
23- import { getItemModuleRoute } from '../../../item-page/item-page-routing-paths' ;
2422import { ConfirmationModalComponent } from '../../confirmation-modal/confirmation-modal.component' ;
2523import { hasValue } from '../../empty.util' ;
2624import { ThemedTypeBadgeComponent } from '../../object-collection/shared/badges/type-badge/themed-type-badge.component' ;
@@ -73,22 +71,10 @@ export class SubscriptionViewComponent {
7371 ) { }
7472
7573 /**
76- * Return the prefix of the route to the dso object page ( e.g. "items")
74+ * Return the route to the dso object page
7775 */
78- getPageRoutePrefix ( ) : string {
79- let routePrefix ;
80- switch ( this . dso . type . value ) {
81- case 'community' :
82- routePrefix = getCommunityModuleRoute ( ) ;
83- break ;
84- case 'collection' :
85- routePrefix = getCollectionModuleRoute ( ) ;
86- break ;
87- case 'item' :
88- routePrefix = getItemModuleRoute ( ) ;
89- break ;
90- }
91- return routePrefix ;
76+ getPageRoute ( dso : DSpaceObject ) : string {
77+ return getDSORoute ( dso ) ;
9278 }
9379
9480 /**
0 commit comments