mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Merge pull request #3017 from DSpace/backport-3016-to-dspace-7_x
[Port dspace-7_x] Ensure `item` is also embedded in submission form
This commit is contained in:
@@ -26,7 +26,7 @@ describe('SubmissionRestService test suite', () => {
|
||||
const resourceEndpoint = 'workspaceitems';
|
||||
const resourceScope = '260';
|
||||
const body = { test: new FormFieldMetadataValueObject('test') };
|
||||
const resourceHref = resourceEndpointURL + '/' + resourceEndpoint + '/' + resourceScope + '?embed=sections,collection';
|
||||
const resourceHref = resourceEndpointURL + '/' + resourceEndpoint + '/' + resourceScope + '?embed=item,sections,collection';
|
||||
const timestampResponse = 1545994811992;
|
||||
|
||||
function initTestService() {
|
||||
|
@@ -70,7 +70,7 @@ export class SubmissionRestService {
|
||||
*/
|
||||
protected getEndpointByIDHref(endpoint, resourceID, collectionId?: string): string {
|
||||
let url = isNotEmpty(resourceID) ? `${endpoint}/${resourceID}` : `${endpoint}`;
|
||||
url = new URLCombiner(url, '?embed=sections,collection').toString();
|
||||
url = new URLCombiner(url, '?embed=item,sections,collection').toString();
|
||||
if (collectionId) {
|
||||
url = new URLCombiner(url, `&owningCollection=${collectionId}`).toString();
|
||||
}
|
||||
|
Reference in New Issue
Block a user