"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/app/core/data/relationship.service.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.

relationship.service.ts  (dspace-angular-dspace-7.0):relationship.service.ts  (dspace-angular-dspace-7.1)
skipping to change at line 472 skipping to change at line 472
} }
/** /**
* Patch isn't supported on the relationship endpoint, so use put instead. * Patch isn't supported on the relationship endpoint, so use put instead.
* *
* @param object the {@link Relationship} to update * @param object the {@link Relationship} to update
*/ */
update(object: Relationship): Observable<RemoteData<Relationship>> { update(object: Relationship): Observable<RemoteData<Relationship>> {
return this.put(object); return this.put(object);
} }
/**
* Patch isn't supported on the relationship endpoint, so use put instead.
*
* @param typeId the relationship type id to apply as a filter to the returned
relationships
* @param itemUuid The uuid of the item to be checked on the side defined by r
elationshipLabel
* @param relationshipLabel the name of the relation as defined from the side
of the itemUuid
* @param arrayOfItemIds The uuid of the items to be found on the other side o
f returned relationships
*/
searchByItemsAndType(typeId: string,itemUuid: string,relationshipLabel: string
, arrayOfItemIds: string[] ): Observable<RemoteData<PaginatedList<Relationship>>
> {
const searchParams = [
{
fieldName: 'typeId',
fieldValue: typeId
},
{
fieldName: 'focusItem',
fieldValue: itemUuid
},
{
fieldName: 'relationshipLabel',
fieldValue: relationshipLabel
},
{
fieldName: 'size',
fieldValue: arrayOfItemIds.length
},
{
fieldName: 'embed',
fieldValue: 'leftItem'
},
{
fieldName: 'embed',
fieldValue: 'rightItem'
},
];
arrayOfItemIds.forEach( (itemId) => {
searchParams.push(
{
fieldName: 'relatedItem',
fieldValue: itemId
},
);
});
return this.searchBy(
'byItemsAndType',
{
searchParams: searchParams
}) as Observable<RemoteData<PaginatedList<Relationship>>>;
}
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 60 lines changed or added

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