lib/bulkrax.rb in bulkrax-5.4.0 vs lib/bulkrax.rb in bulkrax-5.4.1
- old
+ new
@@ -150,11 +150,11 @@
"identifier" => { from: ["identifier"] },
"language" => { from: ["language"], parsed: true },
"publisher" => { from: ["publisher"] },
"related_url" => { from: ["relation"] },
"rights_statement" => { from: ["rights"] },
- "source" => { from: ["source"] },
+ # "source" => { from: ["source"], source_identifier: true },
"subject" => { from: ["subject"], parsed: true },
"title" => { from: ["title"] },
"resource_type" => { from: ["type"], parsed: true },
"remote_files" => { from: ["thumbnail_url"], parsed: true }
},
@@ -170,19 +170,22 @@
"license" => { from: ["license"] },
"publisher" => { from: ["publisher"] },
"related_url" => { from: ["relation"] },
"rights_holder" => { from: ["rightsHolder"] },
"rights_statement" => { from: ["rights"] },
- "source" => { from: ["source"] },
+ # "source" => { from: ["source"], source_identifier: true },
"subject" => { from: ["subject"], parsed: true },
"title" => { from: ["title"] },
"resource_type" => { from: ["type"], parsed: true },
"remote_files" => { from: ["thumbnail_url"], parsed: true }
},
# When empty, a default_field_mapping will be generated
"Bulkrax::CsvParser" => {},
'Bulkrax::BagitParser' => {},
'Bulkrax::XmlParser' => {}
+ # "Bulkrax::CsvParser" => { "source" => { from: ["source"], source_identifier: true } },
+ # 'Bulkrax::BagitParser' => { "source" => { from: ["source"], source_identifier: true } },
+ # 'Bulkrax::XmlParser' => { "source" => { from: ["source"], source_identifier: true } }
}
# Lambda to set the default field mapping
conf.default_field_mapping = lambda do |field|
return if field.blank?