mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
[CST-7757] renamed param
This commit is contained in:
@@ -74,7 +74,7 @@ export class SubscriptionsDataService extends IdentifiableDataService<Subscripti
|
|||||||
|
|
||||||
const optionsWithObject = Object.assign(new FindListOptions(), {
|
const optionsWithObject = Object.assign(new FindListOptions(), {
|
||||||
searchParams: [
|
searchParams: [
|
||||||
new RequestParam('dspace_object_id', uuid),
|
new RequestParam('resource', uuid),
|
||||||
new RequestParam('eperson_id', eperson)
|
new RequestParam('eperson_id', eperson)
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
@@ -94,7 +94,7 @@ export class SubscriptionsDataService extends IdentifiableDataService<Subscripti
|
|||||||
return this.halService.getEndpoint(this.linkPath).pipe(
|
return this.halService.getEndpoint(this.linkPath).pipe(
|
||||||
isNotEmptyOperator(),
|
isNotEmptyOperator(),
|
||||||
take(1),
|
take(1),
|
||||||
map((endpointUrl: string) => `${endpointUrl}?dspace_object_id=${uuid}&eperson_id=${ePerson}`),
|
map((endpointUrl: string) => `${endpointUrl}?resource=${uuid}&eperson_id=${ePerson}`),
|
||||||
map((endpointURL: string) => new CreateRequest(this.requestService.generateRequestId(), endpointURL, JSON.stringify(subscription))),
|
map((endpointURL: string) => new CreateRequest(this.requestService.generateRequestId(), endpointURL, JSON.stringify(subscription))),
|
||||||
sendRequest(this.requestService),
|
sendRequest(this.requestService),
|
||||||
switchMap((restRequest: RestRequest) => this.rdbService.buildFromRequestUUID(restRequest.uuid)),
|
switchMap((restRequest: RestRequest) => this.rdbService.buildFromRequestUUID(restRequest.uuid)),
|
||||||
@@ -114,7 +114,7 @@ export class SubscriptionsDataService extends IdentifiableDataService<Subscripti
|
|||||||
return this.halService.getEndpoint(this.linkPath).pipe(
|
return this.halService.getEndpoint(this.linkPath).pipe(
|
||||||
isNotEmptyOperator(),
|
isNotEmptyOperator(),
|
||||||
take(1),
|
take(1),
|
||||||
map((endpointUrl: string) => `${endpointUrl}/${subscription.id}?dspace_object_id=${uuid}&eperson_id=${ePerson}`),
|
map((endpointUrl: string) => `${endpointUrl}/${subscription.id}?resource=${uuid}&eperson_id=${ePerson}`),
|
||||||
map((endpointURL: string) => new PutRequest(this.requestService.generateRequestId(), endpointURL, JSON.stringify(subscription))),
|
map((endpointURL: string) => new PutRequest(this.requestService.generateRequestId(), endpointURL, JSON.stringify(subscription))),
|
||||||
sendRequest(this.requestService),
|
sendRequest(this.requestService),
|
||||||
switchMap((restRequest: RestRequest) => this.rdbService.buildFromRequestUUID(restRequest.uuid)),
|
switchMap((restRequest: RestRequest) => this.rdbService.buildFromRequestUUID(restRequest.uuid)),
|
||||||
|
@@ -87,7 +87,7 @@ export const findByEPersonAndDsoResEmpty = {
|
|||||||
},
|
},
|
||||||
'_links': {
|
'_links': {
|
||||||
'self': {
|
'self': {
|
||||||
'href': 'https://dspacecris7.4science.cloud/server/api/core/subscriptions/search/findByEPersonAndDso?dspace_object_id=092b59e8-8159-4e70-98b5-93ec60bd3431&eperson_id=335647b6-8a52-4ecb-a8c1-7ebabb199bda'
|
'href': 'https://dspacecris7.4science.cloud/server/api/core/subscriptions/search/findByEPersonAndDso?resource=092b59e8-8159-4e70-98b5-93ec60bd3431&eperson_id=335647b6-8a52-4ecb-a8c1-7ebabb199bda'
|
||||||
},
|
},
|
||||||
'page': [
|
'page': [
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user