mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 23:43:01 +00:00
[CST-4499] Version history (WIP) - Version page added (redirecting to item's page)
This commit is contained in:
@@ -34,5 +34,14 @@ export function getEntityEditRoute(entityType: string, itemId: string) {
|
||||
return new URLCombiner(getEntityPageRoute(entityType, itemId), ITEM_EDIT_PATH).toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the route to an item's version
|
||||
* @param versionId the ID of the version for which the route will be retrieved
|
||||
*/
|
||||
export function getItemVersionRoute(versionId: string) {
|
||||
return new URLCombiner(getItemModuleRoute(), ITEM_VERSION_PATH, versionId).toString();
|
||||
}
|
||||
|
||||
export const ITEM_EDIT_PATH = 'edit';
|
||||
export const ITEM_VERSION_PATH = 'version';
|
||||
export const UPLOAD_BITSTREAM_PATH = 'bitstreams/new';
|
||||
|
Reference in New Issue
Block a user