mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 23:13:04 +00:00
41 lines
919 B
TypeScript
41 lines
919 B
TypeScript
import { Component, OnInit, Input } from '@angular/core';
|
|
import { Item } from "../../../core/shared/item.model";
|
|
|
|
/**
|
|
* This component can be used to represent metadata on a simple item page.
|
|
* It expects one input parameter of type Item to which the metadata belongs.
|
|
* This class can be extended to print certain metadata.
|
|
*/
|
|
|
|
@Component({
|
|
templateUrl: './item-page-specific-field.component.html'
|
|
})
|
|
export class ItemPageSpecificFieldComponent {
|
|
|
|
@Input() item: Item;
|
|
|
|
/**
|
|
* Fields (schema.element.qualifier) used to render their values.
|
|
*/
|
|
fields : string[];
|
|
|
|
/**
|
|
* Label i18n key for the rendered metadata
|
|
*/
|
|
label : string;
|
|
|
|
/**
|
|
* Separator string between multiple values of the metadata fields defined
|
|
* @type {string}
|
|
*/
|
|
separator : string = "<br/>";
|
|
|
|
constructor() {
|
|
this.universalInit();
|
|
}
|
|
|
|
universalInit() {
|
|
|
|
}
|
|
}
|