Skip to content

Commit

Permalink
Merge pull request #196 from wellcomecollection/exhibition-highlight-…
Browse files Browse the repository at this point in the history
…tour-display-type

Add displayType to exhibition highlight tours
  • Loading branch information
davidpmccormick authored Jan 9, 2025
2 parents 14c46ca + 9c5d750 commit e53fce4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,25 @@ export const transformAddressableExhibitionHighlightTour = (
},
query: {
type: 'Exhibition highlight tour' as const,
description: introText,
description,
},
};

const audio = {
...shared,
id: `${id}/${type}/audio`,
display: { ...shared.display, title: audioTitle },
display: {
...shared.display,
highlightTourType: 'audio',
title: audioTitle,
},
query: { ...shared.query, title: audioTitle, body: audioBody },
};

const bsl = {
...shared,
id: `${id}/${type}/bsl`,
display: { ...shared.display, title: bslTitle },
display: { ...shared.display, highlightTourType: 'bsl', title: bslTitle },
query: { ...shared.query, title: bslTitle, body: bslBody },
};

Expand Down
5 changes: 4 additions & 1 deletion pipeline/src/types/transformed/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ export type ElasticsearchAddressableExhibition =
ElasticsearchAddressable<'Exhibition'>;

export type ElasticsearchAddressableExhibitionHighlightTour =
ElasticsearchAddressable<'Exhibition highlight tour'>;
ElasticsearchAddressable<
'Exhibition highlight tour',
{ highlightTourType: string }
>;

export type ElasticsearchAddressableExhibitionText =
ElasticsearchAddressable<'Exhibition text'>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ exports[`addressables transformer transforms exhibition highlight tours from Pri
{
"display": {
"description": "Showcasing Jason Wilsher-Mills’ largest and most personal commission to date, this exhibition is a joyful exploration of the body, drawing on the artist’s experience of becoming disabled as a child.",
"highlightTourType": "audio",
"id": "ZthrZRIAACQALvCC",
"title": "Jason and the Adventure of 254 audio highlight tour",
"type": "Exhibition highlight tour",
Expand Down Expand Up @@ -230,7 +231,7 @@ exports[`addressables transformer transforms exhibition highlight tours from Pri
"On the canvas I’m working on, there’s a ‘pin-up’ of a scantily clad young woman in high heels. She’s sitting on the closed lid of a toilet, kicking out a leg with a calliper. This ties in with those feelings I had as a young lad, trying to deal with both my disability and the onset of puberty. It was such a complete mystery to me, as it was happening to a body which I couldn’t feel or experience.",
"This is the end of the last stop of the audio guide. You are now close to the main entrance where we started. Please note that this is also an exit, so there will be visitors moving in both directions. You are of course free to stay and explore. There is an alternative exit via the lobby in the corner, which takes you down a spiral staircase. In the lobby there is a filmed interview with Jason and replicas of his sketchbooks which can be touched.",
],
"description": undefined,
"description": "Showcasing Jason Wilsher-Mills’ largest and most personal commission to date, this exhibition is a joyful exploration of the body, drawing on the artist’s experience of becoming disabled as a child.",
"title": "Jason and the Adventure of 254 audio highlight tour",
"type": "Exhibition highlight tour",
},
Expand All @@ -239,6 +240,7 @@ exports[`addressables transformer transforms exhibition highlight tours from Pri
{
"display": {
"description": "Showcasing Jason Wilsher-Mills’ largest and most personal commission to date, this exhibition is a joyful exploration of the body, drawing on the artist’s experience of becoming disabled as a child.",
"highlightTourType": "bsl",
"id": "ZthrZRIAACQALvCC",
"title": "Jason and the Adventure of 254 British Sign Language tour",
"type": "Exhibition highlight tour",
Expand Down Expand Up @@ -349,7 +351,7 @@ exports[`addressables transformer transforms exhibition highlight tours from Pri
"On the canvas I’m working on, there’s a ‘pin-up’ of a scantily clad young woman in high heels. She’s sitting on the closed lid of a toilet, kicking out a leg with a calliper. This ties in with those feelings I had as a young lad, trying to deal with both my disability and the onset of puberty. It was such a complete mystery to me, as it was happening to a body which I couldn’t feel or experience.",
"This is the end of the last stop of the audio guide. You are now close to the main entrance where we started. Please note that this is also an exit, so there will be visitors moving in both directions. You are of course free to stay and explore. There is an alternative exit via the lobby in the corner, which takes you down a spiral staircase. In the lobby there is a filmed interview with Jason and replicas of his sketchbooks which can be touched.",
],
"description": undefined,
"description": "Showcasing Jason Wilsher-Mills’ largest and most personal commission to date, this exhibition is a joyful exploration of the body, drawing on the artist’s experience of becoming disabled as a child.",
"title": "Jason and the Adventure of 254 British Sign Language tour",
"type": "Exhibition highlight tour",
},
Expand Down

0 comments on commit e53fce4

Please sign in to comment.