app/models/apidae/apidae_data_parser.rb in apidae-1.2.19 vs app/models/apidae/apidae_data_parser.rb in apidae-1.2.20
- old
+ new
@@ -111,10 +111,10 @@
unless data_hash.blank?
{
short_desc: node_value(data_hash, :descriptifCourt, *locales),
long_desc: node_value(data_hash, :descriptifDetaille, *locales),
theme_desc: data_hash[:descriptifsThematises].blank? ? {} : Hash[data_hash[:descriptifsThematises].map {|th| [node_id(th, :theme), node_value(th, :description, *locales)]}],
- private_desc: private_data.blank? ? {} : Hash[private_data.map {|d| [d[:nomTechnique], node_value(d, :descriptif, *locales)]}]
+ private_desc: private_data.blank? ? {} : Hash[private_data.map {|d| [d[:nomTechnique], d[:libelleFr] || node_value(d, :descriptif, *locales)]}]
}
end
end
def self.parse_pictures_data(pictures_array, *locales)
\ No newline at end of file