lib/jekyll/geolexica/glossary.rb in jekyll-geolexica-1.8.11 vs lib/jekyll/geolexica/glossary.rb in jekyll-geolexica-1.8.12

- old
+ new

@@ -81,10 +81,17 @@ def normalize_sources(concept) authoritative_sources = concept.delete('authoritativeSource') || [] concept['sources'] ||= [] authoritative_sources.each do |authoritative_source| - concept['sources'] << authoritative_source.merge({ 'type' => 'authoritative' }) + concept['sources'] << { + "origin" => { + 'ref' => authoritative_source['ref'], + 'clause' => authoritative_source['clause'], + 'link' => authoritative_source['link'], + }.compact, + 'type' => 'authoritative' + } end end # Does nothing, but some sites may replace this method. def preprocess_concept_hash(concept_hash); end