mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
56434: Docs for all item-page-metadata-field, related-entities, item-page and metadata-values componens
This commit is contained in:
@@ -11,6 +11,9 @@ import { Component, Input } from '@angular/core';
|
|||||||
})
|
})
|
||||||
export class MetadataFieldWrapperComponent {
|
export class MetadataFieldWrapperComponent {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The label (title) for the content
|
||||||
|
*/
|
||||||
@Input() label: string;
|
@Input() label: string;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -16,11 +16,24 @@ import { MetadataValuesComponent } from '../metadata-values/metadata-values.comp
|
|||||||
})
|
})
|
||||||
export class MetadataUriValuesComponent extends MetadataValuesComponent {
|
export class MetadataUriValuesComponent extends MetadataValuesComponent {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Optional text to replace the links with
|
||||||
|
* If undefined, the metadata value (uri) is displayed
|
||||||
|
*/
|
||||||
@Input() linktext: any;
|
@Input() linktext: any;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The metadata values to display
|
||||||
|
*/
|
||||||
@Input() values: any;
|
@Input() values: any;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The seperator used to split the metadata values (can contain HTML)
|
||||||
|
*/
|
||||||
@Input() separator: string;
|
@Input() separator: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The label for this iteration of metadata values
|
||||||
|
*/
|
||||||
@Input() label: string;
|
@Input() label: string;
|
||||||
}
|
}
|
||||||
|
@@ -12,10 +12,19 @@ import { Metadatum } from '../../../core/shared/metadatum.model';
|
|||||||
})
|
})
|
||||||
export class MetadataValuesComponent {
|
export class MetadataValuesComponent {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The metadata values to display
|
||||||
|
*/
|
||||||
@Input() values: Metadatum[];
|
@Input() values: Metadatum[];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The seperator used to split the metadata values (can contain HTML)
|
||||||
|
*/
|
||||||
@Input() separator: string;
|
@Input() separator: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The label for this iteration of metadata values
|
||||||
|
*/
|
||||||
@Input() label: string;
|
@Input() label: string;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -13,6 +13,9 @@ import { Item } from '../../../../core/shared/item.model';
|
|||||||
})
|
})
|
||||||
export class ItemPageFieldComponent {
|
export class ItemPageFieldComponent {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The item to display metadata for
|
||||||
|
*/
|
||||||
@Input() item: Item;
|
@Input() item: Item;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user