Refactored ItemDetailPreviewComponent

This commit is contained in:
Giuseppe Digilio
2019-04-05 16:33:58 +02:00
parent 156b51f37b
commit 330a70657d
10 changed files with 238 additions and 67 deletions

View File

@@ -78,7 +78,7 @@ describe('ItemListPreviewComponent', () => {
}));
beforeEach(() => {
component.object = { hitHighlights: {} };
component.object = { hitHighlights: {} } as any;
});
describe('When the item has an author', () => {

View File

@@ -4,6 +4,7 @@ import { Item } from '../../../../core/shared/item.model';
import { fadeInOut } from '../../../animations/fade';
import { MyDspaceItemStatusType } from '../../../object-collection/shared/mydspace-item-status/my-dspace-item-status-type';
import { Metadata } from '../../../../core/shared/metadata.utils';
import { MyDSpaceResult } from '../../../../+my-dspace-page/my-dspace-result.model';
/**
* This component show metadata for the given item object in the list view.
@@ -24,7 +25,7 @@ export class ItemListPreviewComponent {
/**
* The mydspace result object
*/
@Input() object: any;
@Input() object: MyDSpaceResult<any>;
/**
* Represent item's status