From 99d3742c5e64f63add996d7224d5b8550414b794 Mon Sep 17 00:00:00 2001 From: Rory McNicholl Date: Thu, 31 Oct 2024 14:22:59 +0000 Subject: [PATCH] add HRP and reactivate tate in inst menu (#571) * add HRP and reactivate tate in inst menu * fix sub-domain in helper --- app/helpers/ubiquity/preselect_institution_helper.rb | 9 +++++---- config/authorities/institution.yml | 5 ++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/app/helpers/ubiquity/preselect_institution_helper.rb b/app/helpers/ubiquity/preselect_institution_helper.rb index 79c085b3..9e9ee32b 100644 --- a/app/helpers/ubiquity/preselect_institution_helper.rb +++ b/app/helpers/ubiquity/preselect_institution_helper.rb @@ -7,14 +7,15 @@ def fetch_institution_by_tenant tenant_name = ubiquity_url_parser request.original_url institution_hash = { 'British Library' => ['sandbox', 'sandbox2', 'bl', 'bl-demo'], + 'British Museum' => ['britishmuseum', 'britishmuseum-demo'], + 'Historic Royal Palaces' => ['historicroyalpalaces', 'historicroyalpalaces-demo'], 'MOLA' => ['sandbox2', 'mola', 'mola-demo'], + 'National Library of Scotland' => ['nls', 'nls-demo'], 'National Museums Scotland' => ['nms', 'nms-demo'], - 'British Museum' => ['britishmuseum', 'britishmuseum-demo'], - 'Tate' => ['tate', 'tate-demo'], + 'National Trust' => ['nt', 'nt-demo'], 'Royal Botanic Gardens, Kew' => ['kew', 'kew-demo'], 'Science Museum Group' => ['sciencemuseumgroup', 'sciencemuseumgroup-demo'], - 'National Trust' => ['nt', 'nt-demo'], - 'National Library of Scotland' => ['nls', 'nls-demo'], + 'Tate' => ['tate', 'tate-demo'], 'The Alan Turing Institute' => ['ati', 'ati-demo'], '' => ['nhs', 'nhs-demo'] } diff --git a/config/authorities/institution.yml b/config/authorities/institution.yml index fe53b871..1a81866d 100644 --- a/config/authorities/institution.yml +++ b/config/authorities/institution.yml @@ -5,6 +5,9 @@ terms: - id: British Museum term: British Museum active: true + - id: Historic Royal Palaces + term: Historic Royal Palaces + active: true - id: MOLA term: MOLA active: true @@ -24,7 +27,7 @@ terms: active: true - id: Tate term: Tate - active: false + active: true - id: Barts Health NHS Trust term: Barts Health NHS Trust active: false