import { Component, Input } from '@angular/core'; import { environment } from 'src/environments/environment'; 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 { SearchResult } from '../../../search/models/search-result.model'; /** * This component show metadata for the given item object in the list view. */ @Component({ selector: 'ds-item-list-preview', styleUrls: ['item-list-preview.component.scss'], templateUrl: 'item-list-preview.component.html', animations: [fadeInOut] }) export class ItemListPreviewComponent { /** * The item to display */ @Input() item: Item; /** * The search result object */ @Input() object: SearchResult; /** * Represent item's status */ @Input() status: MyDspaceItemStatusType; /** * A boolean representing if to show submitter information */ @Input() showSubmitter = false; /** * Whether to show the access status badge or not */ showAccessStatus: boolean; ngOnInit(): void { this.showAccessStatus = environment.ui.showAccessStatuses; } }