Class: Recon::Type::Genres

Inherits:
Object
  • Object
show all
Extended by:
DS::Util
Includes:
ReconType
Defined in:
lib/ds/recon/type/genres.rb

Overview

Extract genre terms for reconciliation CSV output.

Return a two-dimensional array, each row is a term; and each row has three columns: term, vocab, and authority number.

Constant Summary collapse

SET_NAME =
:genres
RECON_CSV_HEADERS =
%i{
  genre_as_recorded
  vocab
  source_authority_uri
  authorized_label
  structured_value
  ds_qid
}
LOOKUP_COLUMNS =
%i{
  authorized_label
  structured_value
  ds_qid
}
KEY_COLUMNS =
%i{
  genre_as_recorded
  vocab
}
AS_RECORDED_COLUMN =
:genre_as_recorded
DELIMITER_MAP =
{ '|' => ';' }
METHOD_NAME =
%i{ extract_genres }
BALANCED_COLUMNS =
{
  genres: %i{ structured_value authorized_label }
}

Constants included from DS::Util::Strings

DS::Util::Strings::ABBREV_REGEX, DS::Util::Strings::ELLIPSIS_REGEX, DS::Util::Strings::FINAL_QUESTION_REGEX, DS::Util::Strings::TERMINAL_PUNCT_REGEX

Method Summary

Methods included from DS::Util

process_xml

Methods included from DS::Util::Strings

#clean_string, #clean_white_space, #convert_mets_superscript, #escape_pipes, #fix_double_periods, #is_url?, #normalize_string, #remove_brackets, #terminate, #unicode_normalize

Methods included from ReconType

included