"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/app/item-page/simple/item-types/shared/item.component.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.component.ts  (dspace-angular-dspace-7.0):item.component.ts  (dspace-angular-dspace-7.1)
import { Component, Input, OnInit } from '@angular/core'; import { Component, Input, OnInit } from '@angular/core';
import { environment } from '../../../../../environments/environment'; import { environment } from '../../../../../environments/environment';
import { Item } from '../../../../core/shared/item.model'; import { Item } from '../../../../core/shared/item.model';
import { getItemPageRoute } from '../../../item-page-routing-paths'; import { getItemPageRoute } from '../../../item-page-routing-paths';
import { RouteService } from '../../../../core/services/route.service';
import { Observable } from 'rxjs';
import { getDSpaceQuery, isIiifEnabled, isIiifSearchEnabled } from './item-iiif-
utils';
@Component({ @Component({
selector: 'ds-item', selector: 'ds-item',
template: '' template: ''
}) })
/** /**
* A generic component for displaying metadata and relations of an item * A generic component for displaying metadata and relations of an item
*/ */
export class ItemComponent implements OnInit { export class ItemComponent implements OnInit {
@Input() object: Item; @Input() object: Item;
/** /**
* Route to the item page * Route to the item page
*/ */
itemPageRoute: string; itemPageRoute: string;
/**
* Enables the mirador component.
*/
iiifEnabled: boolean;
/**
* Used to configure search in mirador.
*/
iiifSearchEnabled: boolean;
/**
* The query term from the previous dspace search.
*/
iiifQuery$: Observable<string>;
mediaViewer = environment.mediaViewer; mediaViewer = environment.mediaViewer;
constructor(protected routeService: RouteService) {
}
ngOnInit(): void { ngOnInit(): void {
this.itemPageRoute = getItemPageRoute(this.object); this.itemPageRoute = getItemPageRoute(this.object);
// check to see if iiif viewer is required.
this.iiifEnabled = isIiifEnabled(this.object);
this.iiifSearchEnabled = isIiifSearchEnabled(this.object);
if (this.iiifSearchEnabled) {
this.iiifQuery$ = getDSpaceQuery(this.object, this.routeService);
}
} }
} }
 End of changes. 4 change blocks. 
0 lines changed or deleted 28 lines changed or added

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