"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/app/item-page/item-page-routing-paths.ts" between
dspace-angular-dspace-7.0.tar.gz and dspace-angular-dspace-7.1.tar.gz

About: dspace-angular is the Angular-based frontend of DSpace, a digital repository system to capture, store, index, preserve and redistribute an organization’s research material in digital formats.

item-page-routing-paths.ts  (dspace-angular-dspace-7.0):item-page-routing-paths.ts  (dspace-angular-dspace-7.1)
skipping to change at line 25 skipping to change at line 25
*/ */
export function getItemPageRoute(item: Item) { export function getItemPageRoute(item: Item) {
const type = item.firstMetadataValue('dspace.entity.type'); const type = item.firstMetadataValue('dspace.entity.type');
return getEntityPageRoute(type, item.uuid); return getEntityPageRoute(type, item.uuid);
} }
export function getItemEditRoute(item: Item) { export function getItemEditRoute(item: Item) {
return new URLCombiner(getItemPageRoute(item), ITEM_EDIT_PATH).toString(); return new URLCombiner(getItemPageRoute(item), ITEM_EDIT_PATH).toString();
} }
export function getItemEditVersionhistoryRoute(item: Item) {
return new URLCombiner(getItemPageRoute(item), ITEM_EDIT_PATH, ITEM_EDIT_VERSI
ONHISTORY_PATH).toString();
}
export function getEntityPageRoute(entityType: string, itemId: string) { export function getEntityPageRoute(entityType: string, itemId: string) {
if (isNotEmpty(entityType)) { if (isNotEmpty(entityType)) {
return new URLCombiner('/entities', encodeURIComponent(entityType.toLowerCas e()), itemId).toString(); return new URLCombiner('/entities', encodeURIComponent(entityType.toLowerCas e()), itemId).toString();
} else { } else {
return new URLCombiner(getItemModuleRoute(), itemId).toString(); return new URLCombiner(getItemModuleRoute(), itemId).toString();
} }
} }
export function getEntityEditRoute(entityType: string, itemId: string) { export function getEntityEditRoute(entityType: string, itemId: string) {
return new URLCombiner(getEntityPageRoute(entityType, itemId), ITEM_EDIT_PATH) .toString(); 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).toS
tring();
}
export const ITEM_EDIT_PATH = 'edit'; 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'; export const UPLOAD_BITSTREAM_PATH = 'bitstreams/new';
 End of changes. 3 change blocks. 
0 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)