lib/ddr/datastreams/descriptive_metadata_datastream.rb in ddr-models-2.4.13 vs lib/ddr/datastreams/descriptive_metadata_datastream.rb in ddr-models-2.4.14
- old
+ new
@@ -24,11 +24,14 @@
# Add terms from the vocabularies as properties
vocabularies.each do |vocab|
Ddr::Vocab::Vocabulary.property_terms(vocab).each do |term|
term_name = Ddr::Vocab::Vocabulary.term_name(vocab, term)
- property term_name, predicate: term do |index|
- index.as *indexers_for(term_name)
+ # Do not include :license as a descriptive metadata property
+ unless term_name == :license
+ property term_name, predicate: term do |index|
+ index.as *indexers_for(term_name)
+ end
end
end
end
# Override ActiveFedora::Rdf::Indexing#apply_prefix(name) to not