"Fossies" - the Fresh Open Source Software Archive  

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

item-data.service.ts  (dspace-angular-dspace-7.0):item-data.service.ts  (dspace-angular-dspace-7.1)
skipping to change at line 62 skipping to change at line 62
protected comparator: DSOChangeAnalyzer<Item>, protected comparator: DSOChangeAnalyzer<Item>,
protected bundleService: BundleDataService protected bundleService: BundleDataService
) { ) {
super(); super();
} }
/** /**
* Get the endpoint for browsing items * Get the endpoint for browsing items
* (When options.sort.field is empty, the default field to browse by will be 'dc.date.issued') * (When options.sort.field is empty, the default field to browse by will be 'dc.date.issued')
* @param {FindListOptions} options * @param {FindListOptions} options
* @param linkPath
* @returns {Observable<string>} * @returns {Observable<string>}
*/ */
public getBrowseEndpoint(options: FindListOptions = {}, linkPath: string = thi s.linkPath): Observable<string> { public getBrowseEndpoint(options: FindListOptions = {}, linkPath: string = thi s.linkPath): Observable<string> {
let field = 'dc.date.issued'; let field = 'dc.date.issued';
if (options.sort && options.sort.field) { if (options.sort && options.sort.field) {
field = options.sort.field; field = options.sort.field;
} }
return this.bs.getBrowseURLFor(field, linkPath).pipe( return this.bs.getBrowseURLFor(field, linkPath).pipe(
filter((href: string) => isNotEmpty(href)), filter((href: string) => isNotEmpty(href)),
map((href: string) => new URLCombiner(href, `?scope=${options.scopeID}`).t oString()), map((href: string) => new URLCombiner(href, `?scope=${options.scopeID}`).t oString()),
skipping to change at line 290 skipping to change at line 291
/** /**
* Get the endpoint for an item's bitstreams * Get the endpoint for an item's bitstreams
* @param itemId * @param itemId
*/ */
public getBitstreamsEndpoint(itemId: string): Observable<string> { public getBitstreamsEndpoint(itemId: string): Observable<string> {
return this.halService.getEndpoint(this.linkPath).pipe( return this.halService.getEndpoint(this.linkPath).pipe(
switchMap((url: string) => this.halService.getEndpoint('bitstreams', `${ur l}/${itemId}`)) switchMap((url: string) => this.halService.getEndpoint('bitstreams', `${ur l}/${itemId}`))
); );
} }
/**
* Invalidate the cache of the item
* @param itemUUID
*/
invalidateItemCache(itemUUID: string) {
this.requestService.setStaleByHrefSubstring('item/' + itemUUID);
}
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 10 lines changed or added

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