app/controllers/collections_controller.rb in iqvoc-4.5.0 vs app/controllers/collections_controller.rb in iqvoc-4.5.1
- old
+ new
@@ -35,11 +35,11 @@
response = if params[:root].present?
collections = Iqvoc::Collection.base_class.with_pref_labels.published.by_parent_id(params[:root])
collections.map do |collection|
{ id: collection.id,
url: collection_path(id: collection, format: :html),
- text: CGI.escapeHTML(collection.pref_label.to_s),
- hasChildren: collection.subcollections.any?,
+ name: CGI.escapeHTML(collection.pref_label.to_s),
+ load_on_demand: collection.subcollections.any?,
additionalText: " (#{collection.additional_info})"
}
end
else
collections = Iqvoc::Collection.base_class.with_pref_labels.published.merge(Label::Base.by_query_value("#{params[:query]}%"))