Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

General

...

The controlled vocabularies for Units and Bibliographic Indentifiers stored in a YAML file located in avalon/config/controlled_vocabulary.yml.  The controlled vocabulary file has key/value pairs that store.  This file is loaded every time it is needed and is never cached.

...

Therefore, the file can be changed without restarting Avalon.

Code Block
languageruby
#units:
 Each list- memberUniversity isArchives
 prefixed with- a hyphen and indented with two spaces.
# The Avalon codebase uses two spaces for indentation.
units:
  - University Archives
  - Art CollectionArt Collection

identifier_types:
 local: Catalog Key
 oclc: OCLC
 lccn: LCCN
 other: Other

Changing and Removing Unit Names

The purpose of the unit vocabulary is to ensure that collections are saved with a proper unit.  Changing or removing unit names in the controlled vocabulary file will not update or remove those unit names from collections.

Ordering

Unit vocabulary names Vocabulary items are shown in the collection create/edit interface based on their insertion order in the controlled vocabulary file. Ordering of Units has no effect on the order in which facet values appear in the search interface.