mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
DS-4107 Retrieve and model metadata as a map
This commit is contained in:
@@ -17,7 +17,7 @@ export class Community extends DSpaceObject {
|
||||
* Corresponds to the metadata field dc.description
|
||||
*/
|
||||
get introductoryText(): string {
|
||||
return this.findMetadata('dc.description');
|
||||
return this.firstMetadataValue('dc.description');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -25,7 +25,7 @@ export class Community extends DSpaceObject {
|
||||
* Corresponds to the metadata field dc.description.abstract
|
||||
*/
|
||||
get shortDescription(): string {
|
||||
return this.findMetadata('dc.description.abstract');
|
||||
return this.firstMetadataValue('dc.description.abstract');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -33,7 +33,7 @@ export class Community extends DSpaceObject {
|
||||
* Corresponds to the metadata field dc.rights
|
||||
*/
|
||||
get copyrightText(): string {
|
||||
return this.findMetadata('dc.rights');
|
||||
return this.firstMetadataValue('dc.rights');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -41,7 +41,7 @@ export class Community extends DSpaceObject {
|
||||
* Corresponds to the metadata field dc.description.tableofcontents
|
||||
*/
|
||||
get sidebarText(): string {
|
||||
return this.findMetadata('dc.description.tableofcontents');
|
||||
return this.firstMetadataValue('dc.description.tableofcontents');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user