Sha256: e754baf01cfa54f515ee10fc1ffc8dec1ea3963598dd7e32ae310e1442c904e4

Contents?: true

Size: 624 Bytes

Versions: 4

Compression:

Stored size: 624 Bytes

Contents

# initializer for both iqvoc and iqvoc_skosxl

# This basically duplicates iqvoc_skosxl's initializer — but is required to
# ensure correct loading order!?
require 'iqvoc/xllabel'

Iqvoc.config.register_setting("title", "iQvoc Compound Forms")

Iqvoc::XLLabel.additional_association_class_names.
    merge!("CompoundForm::Base" => "domain_id",
        "CompoundForm::Content::Base" => "label_id") # used for the reverse direction ("compound_in")

Iqvoc::XLLabel.view_sections += ["compound_forms"]

ActiveSupport.on_load :skos_importer do
  SkosImporter.second_level_object_classes.delete(CompoundForm::Content::Base)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
iqvoc_compound_forms-2.11.4 config/initializers/iqvoc.rb
iqvoc_compound_forms-2.11.3 config/initializers/iqvoc.rb
iqvoc_compound_forms-2.9.0 config/initializers/iqvoc.rb
iqvoc_compound_forms-2.8.0 config/initializers/iqvoc.rb