lib/bulkrax.rb in bulkrax-2.3.0 vs lib/bulkrax.rb in bulkrax-3.0.0.beta1
- old
+ new
@@ -3,15 +3,13 @@
require "bulkrax/engine"
require 'active_support/all'
module Bulkrax
class << self
- # TODO: remove collection_field_mapping when releasing v2
mattr_accessor :parsers,
:default_work_type,
:default_field_mapping,
- :collection_field_mapping,
:fill_in_blank_source_identifiers,
:related_children_field_mapping,
:related_parents_field_mapping,
:reserved_properties,
:field_mappings,
@@ -32,20 +30,9 @@
self.import_path = 'tmp/imports'
self.export_path = 'tmp/exports'
self.removed_image_path = Bulkrax::Engine.root.join('spec', 'fixtures', 'removed.png').to_s
self.server_name = 'bulkrax@example.com'
-
- # NOTE: Creating Collections using the collection_field_mapping will no longer be supported as of Bulkrax version 3.0.
- # Please configure Bulkrax to use related_parents_field_mapping and related_children_field_mapping instead.
- # TODO: remove collection_field_mapping when releasing v2
- # Field_mapping for establishing a collection relationship (FROM work TO collection)
- # This value IS NOT used for OAI, so setting the OAI Entries here will have no effect
- # The mapping is supplied per Entry, provide the full class name as a string, eg. 'Bulkrax::CsvEntry'
- # The default value for CSV is collection
- self.collection_field_mapping = {
- 'Bulkrax::CsvEntry' => 'collection'
- }
# Hash of Generic field_mappings for use in the view
# There must be one field_mappings hash per view parial
# Based on Hyrax CoreMetadata && BasicMetadata
# Override at application level to change