Module: Kiba::Extend::Transforms::Cspace

Defined in:
lib/kiba/extend/transforms/cspace.rb,
lib/kiba/extend/transforms/cspace/convert_to_id.rb,
lib/kiba/extend/transforms/cspace/address_country.rb,
lib/kiba/extend/transforms/cspace/normalize_for_id.rb,
lib/kiba/extend/transforms/cspace/flag_invalid_characters.rb

Overview

Transformations specific to preparing data for import into CollectionSpace

Using Cspace transforms when your project defines a Cspace module

If you get errors running jobs containing transforms in the Kiba::Extend::Cspace namespace in your project, and you have defined a Cspace module in your project, you will need to write the transform like:

transform Kiba::Extend::Transforms::Cspace::NormalizeForID,
  source: :field,
  target: :norm

Other transforms of special relevance to CollectionSpace jobs

Defined Under Namespace

Classes: AddressCountry, ConvertToID, FlagInvalidCharacters, NormalizeForID

Class Method Summary collapse

Class Method Details

.shady_charactersObject

Characters or character combinations known to be treated strangely by CollectionSpace when creating IDs. Used as a lookup to force the substitution we need



47
48
49
50
51
52
# File 'lib/kiba/extend/transforms/cspace.rb', line 47

def self.shady_characters
  {
    "ș" => "s",
    "t̕a" => "ta"
  }.freeze
end