app-routing-paths.ts (dspace-angular-dspace-7.0) | : | app-routing-paths.ts (dspace-angular-dspace-7.1) | ||
---|---|---|---|---|
import { DSpaceObject } from './core/shared/dspace-object.model'; | import { DSpaceObject } from './core/shared/dspace-object.model'; | |||
import { Community } from './core/shared/community.model'; | import { Community } from './core/shared/community.model'; | |||
import { Collection } from './core/shared/collection.model'; | import { Collection } from './core/shared/collection.model'; | |||
import { Item } from './core/shared/item.model'; | import { Item } from './core/shared/item.model'; | |||
import { getCommunityPageRoute } from './community-page/community-page-routing-p aths'; | import { getCommunityPageRoute } from './community-page/community-page-routing-p aths'; | |||
import { getCollectionPageRoute } from './collection-page/collection-page-routin g-paths'; | import { getCollectionPageRoute } from './collection-page/collection-page-routin g-paths'; | |||
import { getItemPageRoute } from './item-page/item-page-routing-paths'; | import { getItemModuleRoute, getItemPageRoute } from './item-page/item-page-rout ing-paths'; | |||
import { hasValue } from './shared/empty.util'; | import { hasValue } from './shared/empty.util'; | |||
import { URLCombiner } from './core/url-combiner/url-combiner'; | import { URLCombiner } from './core/url-combiner/url-combiner'; | |||
export const BITSTREAM_MODULE_PATH = 'bitstreams'; | export const BITSTREAM_MODULE_PATH = 'bitstreams'; | |||
/** | /** | |||
* The bitstream module path to resolve XMLUI and JSPUI bitstream download URLs | * The bitstream module path to resolve XMLUI and JSPUI bitstream download URLs | |||
*/ | */ | |||
export const LEGACY_BITSTREAM_MODULE_PATH = 'bitstream'; | export const LEGACY_BITSTREAM_MODULE_PATH = 'bitstream'; | |||
export function getBitstreamModuleRoute() { | export function getBitstreamModuleRoute() { | |||
return `/${BITSTREAM_MODULE_PATH}`; | return `/${BITSTREAM_MODULE_PATH}`; | |||
} | } | |||
export function getBitstreamDownloadRoute(bitstream): string { | export function getBitstreamDownloadRoute(bitstream): string { | |||
return new URLCombiner(getBitstreamModuleRoute(), bitstream.uuid, 'download'). toString(); | return new URLCombiner(getBitstreamModuleRoute(), bitstream.uuid, 'download'). toString(); | |||
} | } | |||
export function getBitstreamRequestACopyRoute(item, bitstream): { routerLink: st | ||||
ring, queryParams: any } { | ||||
const url = new URLCombiner(getItemModuleRoute(), item.uuid, 'request-a-copy') | ||||
.toString(); | ||||
return { | ||||
routerLink: url, | ||||
queryParams: { | ||||
bitstream: bitstream.uuid | ||||
} | ||||
}; | ||||
} | ||||
export const ADMIN_MODULE_PATH = 'admin'; | export const ADMIN_MODULE_PATH = 'admin'; | |||
export function getAdminModuleRoute() { | export function getAdminModuleRoute() { | |||
return `/${ADMIN_MODULE_PATH}`; | return `/${ADMIN_MODULE_PATH}`; | |||
} | } | |||
export const PROFILE_MODULE_PATH = 'profile'; | export const PROFILE_MODULE_PATH = 'profile'; | |||
export function getProfileModuleRoute() { | export function getProfileModuleRoute() { | |||
skipping to change at line 93 | skipping to change at line 102 | |||
export const INFO_MODULE_PATH = 'info'; | export const INFO_MODULE_PATH = 'info'; | |||
export function getInfoModulePath() { | export function getInfoModulePath() { | |||
return `/${INFO_MODULE_PATH}`; | return `/${INFO_MODULE_PATH}`; | |||
} | } | |||
export const ACCESS_CONTROL_MODULE_PATH = 'access-control'; | export const ACCESS_CONTROL_MODULE_PATH = 'access-control'; | |||
export function getAccessControlModuleRoute() { | export function getAccessControlModuleRoute() { | |||
return `/${ACCESS_CONTROL_MODULE_PATH}`; | return `/${ACCESS_CONTROL_MODULE_PATH}`; | |||
} | } | |||
export const REQUEST_COPY_MODULE_PATH = 'request-a-copy'; | ||||
export function getRequestCopyModulePath() { | ||||
return `/${REQUEST_COPY_MODULE_PATH}`; | ||||
} | ||||
End of changes. 3 change blocks. | ||||
1 lines changed or deleted | 12 lines changed or added |