mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 19:13:08 +00:00
Added possibility to show additional information to search results returned by form fields which provide search
This commit is contained in:
@@ -10,6 +10,7 @@ export class FormFieldMetadataValueObject {
|
||||
place: number;
|
||||
closed: boolean;
|
||||
label: string;
|
||||
otherInformation: any;
|
||||
|
||||
constructor(value: any = null,
|
||||
language: any = null,
|
||||
@@ -17,6 +18,7 @@ export class FormFieldMetadataValueObject {
|
||||
display: string = null,
|
||||
place: number = 0,
|
||||
confidence: number = -1,
|
||||
otherInformation: any = null,
|
||||
metadata: string = null) {
|
||||
this.value = isNotNull(value) ? ((typeof value === 'string') ? value.trim() : value) : null;
|
||||
this.language = language;
|
||||
@@ -34,6 +36,8 @@ export class FormFieldMetadataValueObject {
|
||||
if (isNotEmpty(metadata)) {
|
||||
this.metadata = metadata;
|
||||
}
|
||||
|
||||
this.otherInformation = otherInformation;
|
||||
}
|
||||
|
||||
hasAuthority(): boolean {
|
||||
@@ -43,4 +47,8 @@ export class FormFieldMetadataValueObject {
|
||||
hasValue(): boolean {
|
||||
return isNotEmpty(this.value);
|
||||
}
|
||||
|
||||
hasOtherInformation(): boolean {
|
||||
return isNotEmpty(this.otherInformation);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user