Class: CocinaDisplay::Events::Location
- Inherits:
-
Parallel::Parallel
- Object
- Parallel::Parallel
- CocinaDisplay::Events::Location
- Defined in:
- lib/cocina_display/events/location.rb
Overview
A location represented in a Cocina event, like a publication place. Can be expressed as several LocationValues in different languages/scripts.
Constant Summary collapse
- MARC_COUNTRIES_FILE_PATH =
CocinaDisplay.root / "config" / "marc_countries.yml"
Instance Attribute Summary
Attributes inherited from Parallel::Parallel
Class Method Summary collapse
-
.marc_countries ⇒ Hash{String => String}
A hash mapping MARC country codes to their names.
Methods inherited from Parallel::Parallel
#has_translation?, #has_transliteration?, #has_vernacular?, #initialize, #main_value, #own_type, #own_typed?, #parallel_values, #primary?, #status, #translated_value, #transliterated_value, #type, #typed?, #vernacular_value
Constructor Details
This class inherits a constructor from CocinaDisplay::Parallel::Parallel
Class Method Details
.marc_countries ⇒ Hash{String => String}
A hash mapping MARC country codes to their names.
14 15 16 |
# File 'lib/cocina_display/events/location.rb', line 14 def self.marc_countries @marc_countries ||= YAML.safe_load_file(MARC_COUNTRIES_FILE_PATH) end |