mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
Implements MetadataValue and MetadataMap interfaces
This commit is contained in:
@@ -2,11 +2,12 @@ import { IntegrationModel } from './integration.model';
|
||||
import { isNotEmpty } from '../../../shared/empty.util';
|
||||
import { PLACEHOLDER_PARENT_METADATA } from '../../../shared/form/builder/ds-dynamic-form-ui/models/relation-group/dynamic-relation-group.model';
|
||||
import { OtherInformation } from '../../../shared/form/builder/models/form-field-metadata-value.model';
|
||||
import { MetadataValue } from '../../shared/metadata.interfaces';
|
||||
|
||||
/**
|
||||
* Class representing an authority object
|
||||
*/
|
||||
export class AuthorityValue extends IntegrationModel {
|
||||
export class AuthorityValue extends IntegrationModel implements MetadataValue {
|
||||
|
||||
/**
|
||||
* The identifier of this authority
|
||||
|
@@ -1,5 +1,6 @@
|
||||
import { FormFieldMetadataValueObject } from '../../../shared/form/builder/models/form-field-metadata-value.model';
|
||||
import { MetadataMap } from '../../shared/metadata.interfaces';
|
||||
|
||||
export interface WorkspaceitemSectionFormObject {
|
||||
[metadata: string]: FormFieldMetadataValueObject;
|
||||
export interface WorkspaceitemSectionFormObject extends MetadataMap {
|
||||
[metadata: string]: FormFieldMetadataValueObject[];
|
||||
}
|
||||
|
@@ -1,12 +1,13 @@
|
||||
import { isEmpty, isNotEmpty, isNotNull } from '../../../empty.util';
|
||||
import { ConfidenceType } from '../../../../core/integration/models/confidence-type';
|
||||
import { PLACEHOLDER_PARENT_METADATA } from '../ds-dynamic-form-ui/models/relation-group/dynamic-relation-group.model';
|
||||
import { MetadataValue } from '../../../../core/shared/metadata.interfaces';
|
||||
|
||||
export interface OtherInformation {
|
||||
[name: string]: string
|
||||
}
|
||||
|
||||
export class FormFieldMetadataValueObject {
|
||||
export class FormFieldMetadataValueObject implements MetadataValue {
|
||||
metadata?: string;
|
||||
value: any;
|
||||
display: string;
|
||||
|
Reference in New Issue
Block a user