Closed furilo closed 4 years ago
For existing vocabularies the terms can be updated calling from console:
vocabularies = GobiertoCommon::Vocabulary.where(slug: "sdgs-vocabulary")
vocabularies.each { |vocab| vocab.terms.where(term_id: nil).each {|t| [:es, :ca].each { |locale| t.send("name_#{locale}=", "#{t.external_id}. #{t.send("name_#{locale}")}") }; t.save } }
We have decided to start having the ID in the term title itself. So
"Fin de la pobreza" should become "1. Fin de la pobreza"