Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add displayType to exhibition highlight tours #196

Merged
merged 4 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading