Skip to content

Instantly share code, notes, and snippets.

@jeremedia
Last active June 27, 2023 18:38
Show Gist options
  • Select an option

  • Save jeremedia/3728cbb42824db886525941ce76e4384 to your computer and use it in GitHub Desktop.

Select an option

Save jeremedia/3728cbb42824db886525941ce76e4384 to your computer and use it in GitHub Desktop.
SMITHSONIAN_SUB_PROVIDERS = {
'smithsonian_national_museum_of_natural_history' => [
'NMNHANTHRO', # NMNH - Paleobiology Dept.
'NMNHBIRDS', # NMNH - Vertebrate Zoology - Birds Division
'NMNHBOTANY', # NMNH - Botany Dept.
'NMNHEDUCATION', # NMNH - Education & Outreach
'NMNHENTO', # NMNH - Entomology Dept.
'NMNHFISHES', # NMNH - Vertebrate Zoology - Fishes Division
'NMNHHERPS', # NMNH - Vertebrate Zoology - Herpetology Division
'NMNHINV', # NMNH - Invertebrate Zoology Dept.
'NMNHMAMMALS', # NMNH - Vertebrate Zoology - Mammals Division
'NMNHMINSCI', # NMNH - Mineral Sciences Dept.
'NMNHPALEO' # NMNH - Paleobiology Dept.
],
'smithsonian_anacostia_museum' => [
'ACM' # Anacostia Community Museum
],
'smithsonian_cooper_hewitt_museum' => [
'CHNDM' # Cooper Hewitt, Smithsonian Design Museum
],
'smithsonian_field_book_project' => [
'FBR' # Smithsonian Field Book Project
],
'smithsonian_freer_gallery_of_art' => [
'FSG' # Freer Gallery of Art and Arthur M. Sackler Gallery
],
'smithsonian_gardens' => [
'HAC' # Smithsonian Gardens
],
'smithsonian_hirshhorn_museum' => [
'HMSG' # Hirshhorn Museum and Sculpture Garden
],
'smithsonian_anthropological_archives' => [
'NAA' # National Anthropological Archives
],
'smithsonian_air_and_space_museum' => [
'NASM' # National Air and Space Museum
],
'smithsonian_african_american_history_museum' => [
'NMAAHC' # National Museum of African American History and Culture
],
'smithsonian_american_history_museum' => [
'NMAH' # National Museum of American History
],
'smithsonian_american_indian_museum' => [
'NMAI' # National Museum of the American Indian
],
'smithsonian_african_art_museum' => [
'NMAfA' # National Museum of African Art
],
'smithsonian_portrait_gallery' => [
'NPG' # National Portrait Gallery
],
'smithsonian_postal_museum' => [
'NPM' # National Postal Museum
],
'smithsonian_zoo_and_conservation' => [
'NZP' # Smithsonian's National Zoo & Conservation Biology Institute
],
'smithsonian_american_art_museum' => [
'SAAM' # Smithsonian American Art Museum
],
'smithsonian_institution_archives' => [
'SIA' # Smithsonian Institution Archives
],
'smithsonian_libraries' => [
'SIL' # Smithsonian Libraries
],
}
FLAT_SMITHSONIAN_SUB_PROVIDERS = {
'NMNHANTHRO' => 'NMNH - Paleobiology Dept.',
'NMNHBIRDS' => 'NMNH - Vertebrate Zoology - Birds Division',
'NMNHBOTANY' => 'NMNH - Botany Dept.',
'NMNHEDUCATION' => 'NMNH - Education & Outreach',
'NMNHENTO' => 'NMNH - Entomology Dept.',
'NMNHFISHES' => 'NMNH - Vertebrate Zoology - Fishes Division',
'NMNHHERPS' => 'NMNH - Vertebrate Zoology - Herpetology Division',
'NMNHINV' => 'NMNH - Invertebrate Zoology Dept.',
'NMNHMAMMALS' => 'NMNH - Vertebrate Zoology - Mammals Division',
'NMNHMINSCI' => 'NMNH - Mineral Sciences Dept.',
'NMNHPALEO' => 'NMNH - Paleobiology Dept.',
'ACM' => 'Anacostia Community Museum',
'CHNDM' => 'Cooper Hewitt, Smithsonian Design Museum',
'FBR' => 'Smithsonian Field Book Project',
'FSG' => 'Freer Gallery of Art and Arthur M. Sackler Gallery',
'HAC' => 'Smithsonian Gardens',
'HMSG' => 'Hirshhorn Museum and Sculpture Garden',
'NAA' => 'National Anthropological Archives',
'NASM' => 'National Air and Space Museum',
'NMAAHC' => 'National Museum of African American History and Culture',
'NMAH' => 'National Museum of American History',
'NMAI' => 'National Museum of the American Indian',
'NMAfA' => 'National Museum of African Art',
'NPG' => 'National Portrait Gallery',
'NPM' => 'National Postal Museum',
'NZP' => "Smithsonian's National Zoo & Conservation Biology Institute",
'SAAM' => 'Smithsonian American Art Museum',
'SIA' => 'Smithsonian Institution Archives',
'SIL' => 'Smithsonian Libraries',
}
@jeremedia
Copy link
Copy Markdown
Author

Converted to Ruby hashes from Python version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment