Skip to content

Commit

Permalink
feat: fix concept conversion after upgrading glossarist
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldtse committed Nov 14, 2024
1 parent 5086026 commit f7e54fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/termium/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Core < Lutaml::Model::Serializable

attribute :language_module, LanguageModule, collection: true
attribute :subject, Subject
attribute :universal_entry, UniversalEntry
attribute :universal_entry, UniversalEntry, collection: true
attribute :source, Source, collection: true

xml do
Expand Down Expand Up @@ -47,9 +47,9 @@ def to_concept
next if localized_concept.nil?

localized_concept.id = identification_number
# TODO: this should just be localized_concept.notes << universal_entry.value
# TODO: Depends on https://github.com/glossarist/glossarist-ruby/issues/82
localized_concept.notes << Glossarist::DetailedDefinition.new(universal_entry.value)
universal_entry.each do |entry|
localized_concept.notes << entry.value
end
localized_concept.sources = concept_sources
concept.add_localization(localized_concept)
end
Expand Down

0 comments on commit f7e54fc

Please sign in to comment.