From 644a0c1d4c46ccd62fa1f3994b80eb49fc4ff11c Mon Sep 17 00:00:00 2001 From: Kai O'Brien <115034688+K-OBrien-Phase2@users.noreply.github.com> Date: Mon, 28 Oct 2024 12:16:46 -0700 Subject: [PATCH] Added changes from PR #45 --- .../outline-yext-entities/outline-yext-entities.ts | 2 ++ src/components/outline-yext-vertical/teaser.ts | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/outline-yext-entities/outline-yext-entities.ts b/src/components/outline-yext-entities/outline-yext-entities.ts index 6329127..dc87f2a 100644 --- a/src/components/outline-yext-entities/outline-yext-entities.ts +++ b/src/components/outline-yext-entities/outline-yext-entities.ts @@ -363,6 +363,8 @@ export class OutlineYextEntities extends LitElement { case 'healthcareFacility': case 'ce_location': return entity.photoGallery?.[0]?.image?.url || ''; + case 'ce_person': + return entity.c_person_Photos || ''; default: return ''; } diff --git a/src/components/outline-yext-vertical/teaser.ts b/src/components/outline-yext-vertical/teaser.ts index aaac6f4..45133d7 100644 --- a/src/components/outline-yext-vertical/teaser.ts +++ b/src/components/outline-yext-vertical/teaser.ts @@ -31,7 +31,7 @@ export function displayTeaser(vertical: string, result: verticalSearchResult) { ), testimonial: () => testimonialTeaser(result.data.c_testimonial_Photo, title, url, cleanData), - person: () => defaultTeaser(title, url, highlightField('c_title')), + person: () => personTeaser(result.data.c_person_Photos, title, url, highlightField('c_title')), page: () => defaultTeaser(highlightField('c_title'), url, cleanData), locationsearch: () => locationTeaser( @@ -86,6 +86,15 @@ export function defaultTeaser(title: string, url: string, snippet: string) { >`; } +export function personTeaser(image: string, title: string, url: string, snippet: string) { + return html``; +} + export function newsTeaser( title: string, url: string,