lib/krikri/map_crosswalk.rb in krikri-0.13.2 vs lib/krikri/map_crosswalk.rb in krikri-0.14.0
- old
+ new
@@ -175,12 +175,11 @@
def build_time_span(source)
return unless source.is_a? DPLA::MAP::TimeSpan
date = {}
- set_value(date, :displayDate, source.prefLabel, true, &:as_json)
- set_value(date, :displayDate,
- source.providedLabel, true, &:as_json) unless
+ set_value(date, :displayDate, source.providedLabel, true, &:as_json)
+ set_value(date, :displayDate, source.prefLabel, true, &:as_json) unless
date.has_key?(:displayDate)
set_value(date, :begin, source.begin, true, &:as_json)
set_value(date, :end, source.end, true, &:as_json)