mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
63838: Add typedoc comments and fix unused method
This commit is contained in:
@@ -22,11 +22,6 @@ const ITEM_EDIT_DELETE_PATH = 'delete';
|
||||
|
||||
const ITEM_EDIT_MOVE_PATH = 'move';
|
||||
|
||||
export function getItemEditMovePath(id: string) {
|
||||
return new URLCombiner(getItemEditPath(id), ITEM_EDIT_MOVE_PATH);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Routing module that handles the routing for the Edit Item page administrator functionality
|
||||
*/
|
||||
|
@@ -122,6 +122,10 @@ export class ItemDataService extends DataService<Item> {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the endpoint to move the item
|
||||
* @param itemId
|
||||
*/
|
||||
public getMoveItemEndpoint(itemId: string): Observable<string> {
|
||||
return this.halService.getEndpoint(this.linkPath).pipe(
|
||||
map((endpoint: string) => this.getIDHref(endpoint, itemId)),
|
||||
@@ -129,6 +133,11 @@ export class ItemDataService extends DataService<Item> {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Move the item to a different owning collection
|
||||
* @param itemId
|
||||
* @param collection
|
||||
*/
|
||||
public moveToCollection(itemId: string, collection: Collection): Observable<RestResponse> {
|
||||
const options: HttpOptions = Object.create({});
|
||||
let headers = new HttpHeaders();
|
||||
|
Reference in New Issue
Block a user