mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 23:43:01 +00:00
[CST-4499] Version history (WIP) - Redirect after deleting a version
This commit is contained in:
@@ -22,6 +22,10 @@ export function getItemEditRoute(item: Item) {
|
||||
return new URLCombiner(getItemPageRoute(item), ITEM_EDIT_PATH).toString();
|
||||
}
|
||||
|
||||
export function getItemEditVersionhistoryRoute(item: Item) {
|
||||
return new URLCombiner(getItemPageRoute(item), ITEM_EDIT_PATH, ITEM_EDIT_VERSIONHISTORY_PATH).toString();
|
||||
}
|
||||
|
||||
export function getEntityPageRoute(entityType: string, itemId: string) {
|
||||
if (isNotEmpty(entityType)) {
|
||||
return new URLCombiner('/entities', encodeURIComponent(entityType.toLowerCase()), itemId).toString();
|
||||
@@ -43,5 +47,6 @@ export function getItemVersionRoute(versionId: string) {
|
||||
}
|
||||
|
||||
export const ITEM_EDIT_PATH = 'edit';
|
||||
export const ITEM_EDIT_VERSIONHISTORY_PATH = 'versionhistory';
|
||||
export const ITEM_VERSION_PATH = 'version';
|
||||
export const UPLOAD_BITSTREAM_PATH = 'bitstreams/new';
|
||||
|
Reference in New Issue
Block a user