Files
dspace-angular/src/app/shared/object-list/metadata-representation-list-element/item/item-metadata-list-element.component.ts
2022-08-17 14:12:33 -05:00

24 lines
1.1 KiB
TypeScript

import { MetadataRepresentationType } from '../../../../core/shared/metadata-representation/metadata-representation.model';
import { Component } from '@angular/core';
import { MetadataRepresentationListElementComponent } from '../metadata-representation-list-element.component';
import { ViewMode } from '../../../../core/shared/view-mode.model';
import { metadataRepresentationComponent } from '../../../metadata-representation/metadata-representation.decorator';
@metadataRepresentationComponent('Publication', MetadataRepresentationType.Item)
@Component({
selector: 'ds-item-metadata-list-element',
templateUrl: './item-metadata-list-element.component.html'
})
/**
* A component for displaying MetadataRepresentation objects in the form of items
* It will send the MetadataRepresentation object along with ElementViewMode.SetElement to the ItemTypeSwitcherComponent,
* which will in its turn decide how to render the item as metadata.
*/
export class ItemMetadataListElementComponent extends MetadataRepresentationListElementComponent {
/**
* The view-mode we're currently on
* @type {ViewMode}
*/
viewMode = ViewMode.ListElement;
}