diff --git a/gql/queries/CollectionDetail.gql b/gql/queries/CollectionDetail.gql index 500b43d8d..165ac8f25 100644 --- a/gql/queries/CollectionDetail.gql +++ b/gql/queries/CollectionDetail.gql @@ -60,15 +60,27 @@ query CollectionDetail($slug: [String!]) { } associatedStaffMember { email - phoneNumber - staffMemberJobTitle + jobTitle: staffMemberJobTitle nameFirst nameLast + alternativeName { + ... on alternativeName_alternativeName_BlockType { + fullName + languageAltName + } + } to: uri - bookAConsultation - staffDepartment { - title - } + phone: phoneNumber + consultation: bookAConsultation + departments: staffDepartment(orderBy: "level") { + id + title + } + locations: staffAssociatedLocations { + id + title + uri: slug + } image: staffPortrait { ...Image } diff --git a/pages/about/staff/index.vue b/pages/about/staff/index.vue index a0734d8dc..31dc41480 100644 --- a/pages/about/staff/index.vue +++ b/pages/about/staff/index.vue @@ -311,10 +311,7 @@ export default { ...obj, to: `/about/staff/${obj.to}`, image: _get(obj, "image[0]", null), - staffName: - obj.alternativeName.length > 0 - ? `${obj.nameFirst} ${obj.nameLast} ${obj.alternativeName[0].fullName}` - : `${obj.nameFirst} ${obj.nameLast}`, + staffName: `${obj.nameFirst} ${obj.nameLast}`, language: _get( obj, "alternativeName[0].languageAltName", diff --git a/pages/collections/explore/_slug.vue b/pages/collections/explore/_slug.vue index a0375fec3..492d7947d 100644 --- a/pages/collections/explore/_slug.vue +++ b/pages/collections/explore/_slug.vue @@ -204,6 +204,16 @@ export default { to: `/${obj.to}`, image: _get(obj, "image[0]", null), staffName: `${obj.nameFirst} ${obj.nameLast}`, + language: _get( + obj, + "alternativeName[0].languageAltName", + null + ), + alternativeFullName: _get( + obj, + "alternativeName[0].fullName", + null + ), } }) },