diff --git a/pages/about/projects/[projectId].vue b/pages/about/projects/[projectId].vue index ef0dcc11..5f68364d 100644 --- a/pages/about/projects/[projectId].vue +++ b/pages/about/projects/[projectId].vue @@ -17,11 +17,11 @@
FOCUS: {{ focus }}
-
- PRINCIPAL INVESTIGATOR: {{ investigator }} +
+ PRINCIPAL INVESTIGATOR(S): {{ investigators.join(', ') }}
-
- INSTITUTION: {{ institution }} +
+ INSTITUTION(S): {{ institutions }}
FUNDING PROGRAM(S): {{ fundingProgram.join(', ') }} @@ -159,8 +159,8 @@ export default { * @returns {String} */ getImageSrc: function () { - return this.fields.institution.fields.logo - ? this.fields.institution.fields.logo.fields.file.url + return this.fields.institutions[0].fields.logo + ? this.fields.institutions[0].fields.logo.fields.file.url : '' }, title: function () { @@ -175,11 +175,15 @@ export default { awardId: function () { return this.fields.awardId }, - institution: function () { - return this.fields.institution.fields.name + institutions: function () { + let names = '' + this.fields.institutions.forEach(institution => { + names += institution.fields.name + ", " + }) + return names.substring(0, names.length - 2) }, - investigator: function () { - return this.fields.principleInvestigator + investigators: function () { + return this.fields.principalInvestigators }, nihReporterUrl: function () { return this.fields.nihReporterUrl || '#' @@ -189,8 +193,8 @@ export default { * @returns {String} */ getImageAlt: function () { - return this.fields.institution.fields.logo - ? this.fields?.institution.fields.logo.fields.file.description + return this.fields.institutions[0].fields.logo + ? this.fields?.institutions[0].fields.logo.fields.file.description : '' }, /**