Skip to content

Commit

Permalink
Hotfix: add Science Museum to this authority and present in alphabeti…
Browse files Browse the repository at this point in the history
…cal order (#481)

* add Science Museum to this authority and present in alphabetical order

* add the auto select by tenent (also for NT)

* Add 'Group' to the term for Science Museum

* change id also

* change id also and preselect
  • Loading branch information
cziaarm authored Oct 26, 2023
1 parent 356367a commit c2679b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions app/helpers/ubiquity/preselect_institution_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def fetch_institution_by_tenant
'British Museum' => ['britishmuseum', 'britishmuseum-demo'],
'Tate' => ['tate', 'tate-demo'],
'Royal Botanic Gardens, Kew' => ['kew', 'kew-demo'],
'Science Museum Group' => ['sciencemuseumgroup', 'sciencemuseumgroup-demo'],
'National Trust' => ['nt', 'nt-demo'],
'' => ['nhs', 'nhs-demo']
}
institution_hash.select { |_key, values| values.include?(tenant_name) }.keys.first
Expand Down
9 changes: 6 additions & 3 deletions config/authorities/institution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ terms:
- id: National Museums Scotland
term: National Museums Scotland
active: true
- id: National Trust
term: National Trust
active: true
- id: Royal Botanic Gardens, Kew
term: Royal Botanic Gardens, Kew
active: true
Expand Down Expand Up @@ -43,6 +46,6 @@ terms:
- id: Somerset NHS Foundation Trust
term: Somerset NHS Foundation Trust
active: false
- id: National Trust
term: National Trust
active: true
- id: Science Museum Group
term: Science Museum Group
active: true

0 comments on commit c2679b0

Please sign in to comment.