lib/ddr/models/year_facet.rb in ddr-models-3.0.0.beta.4 vs lib/ddr/models/year_facet.rb in ddr-models-3.0.0.beta.6
- old
+ new
@@ -53,10 +53,10 @@
@values = []
facet_values
end
def facet_values
- obj.descMetadata.date.each do |date|
+ obj.desc_metadata.date.each do |date|
date.split(/;/).each do |value|
clean! value
years = extract_years(value)
validate! years
values.push *years