app/controllers/concerns/controller_extensions.rb in iqvoc-4.11.1 vs app/controllers/concerns/controller_extensions.rb in iqvoc-4.12.0

- old
+ new

@@ -68,11 +68,12 @@ end def concept_widget_data(concept, rank = nil) data = { id: concept.origin, - name: (concept.pref_label && concept.pref_label.value.presence || ":#{concept.origin}") + (concept.additional_info ? " (#{concept.additional_info })" : '') + name: (concept.pref_label && concept.pref_label.value.presence || ":#{concept.origin}") + (concept.additional_info ? " (#{concept.additional_info })" : ''), + published: concept.published? } data[:rank] = rank if rank data end @@ -84,10 +85,11 @@ end def label_widget_data(label) { id: label.origin, - name: label.value + ' (' + label.language + ')' + name: label.value + ' (' + label.language + ')', + published: label.published? } end # Configurable Ability class def current_ability