lib/ddr/datastreams/descriptive_metadata_datastream.rb in ddr-models-1.4.0 vs lib/ddr/datastreams/descriptive_metadata_datastream.rb in ddr-models-1.5.0
- old
+ new
@@ -30,10 +30,10 @@
terms.sort
end
# Add terms from the vocabularies as properties
vocabularies.each do |vocab|
- vocab.each do |term|
+ Ddr::Metadata::Vocabulary.property_terms(vocab).each do |term|
term_name = Ddr::Metadata::Vocabulary.term_name(vocab, term)
property term_name, predicate: term do |index|
index.as *indexers_for(term_name)
end
end