mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 05:23:06 +00:00
remove circular dependencies
This commit is contained in:
18
src/app/+item-page/item-page-routing-paths.ts
Normal file
18
src/app/+item-page/item-page-routing-paths.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { URLCombiner } from '../core/url-combiner/url-combiner';
|
||||
|
||||
export const ITEM_MODULE_PATH = 'items';
|
||||
|
||||
export function getItemModuleRoute() {
|
||||
return `/${ITEM_MODULE_PATH}`;
|
||||
}
|
||||
|
||||
export function getItemPageRoute(itemId: string) {
|
||||
return new URLCombiner(getItemModuleRoute(), itemId).toString();
|
||||
}
|
||||
|
||||
export function getItemEditRoute(id: string) {
|
||||
return new URLCombiner(getItemModuleRoute(), id, ITEM_EDIT_PATH).toString()
|
||||
}
|
||||
|
||||
export const ITEM_EDIT_PATH = 'edit';
|
||||
export const UPLOAD_BITSTREAM_PATH = 'bitstreams/new';
|
Reference in New Issue
Block a user