[CST-4499] Version history (WIP) - Version page added (redirecting to item's page)

This commit is contained in:
Davide Negretti
2021-09-13 17:56:55 +02:00
parent ce399cb764
commit b4111fe4b1
10 changed files with 185 additions and 5 deletions

View File

@@ -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';