mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +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:
|
||||
*/
|
||||
metadata: string;
|
||||
metadata?: string;
|
||||
|
||||
/**
|
||||
* 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
|
||||
@@ -24,8 +24,8 @@ export class VocabularyOptions {
|
||||
closed: boolean;
|
||||
|
||||
constructor(name: string,
|
||||
metadata: string,
|
||||
scope: string,
|
||||
metadata?: string,
|
||||
scope?: string,
|
||||
closed: boolean = false) {
|
||||
this.name = name;
|
||||
this.metadata = metadata;
|
||||
|
Reference in New Issue
Block a user