mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Make metadata and scope properties as optional in the VocabularyOptions
This commit is contained in:
@@ -11,12 +11,12 @@ export class VocabularyOptions {
|
|||||||
/**
|
/**
|
||||||
* The metadata field name (e.g. "dc.type") for which the vocabulary is used:
|
* The metadata field name (e.g. "dc.type") for which the vocabulary is used:
|
||||||
*/
|
*/
|
||||||
metadata: string;
|
metadata?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The uuid of the collection where the item is being submitted
|
* The uuid of the collection where the item is being submitted
|
||||||
*/
|
*/
|
||||||
scope: string;
|
scope?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A boolean representing if value is closely related to a vocabulary entry or not
|
* A boolean representing if value is closely related to a vocabulary entry or not
|
||||||
@@ -24,8 +24,8 @@ export class VocabularyOptions {
|
|||||||
closed: boolean;
|
closed: boolean;
|
||||||
|
|
||||||
constructor(name: string,
|
constructor(name: string,
|
||||||
metadata: string,
|
metadata?: string,
|
||||||
scope: string,
|
scope?: string,
|
||||||
closed: boolean = false) {
|
closed: boolean = false) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.metadata = metadata;
|
this.metadata = metadata;
|
||||||
|
Reference in New Issue
Block a user