Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 4 additions & 13 deletions lib/termium/extract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,13 @@ class Extract < Lutaml::Model::Serializable

xml do
root "termium_extract"
# namespace "http://termium.tpsgc-pwgsc.gc.ca/schemas/2012/06/Termium", "ns2"
namespace "http://termium.tpsgc-pwgsc.gc.ca/schemas/2012/06/Termium", "ns2"

map_attribute "language", to: :language
map_element "extractLanguage", to: :extract_language
map_element "core", to: :core
map_attribute "language", to: :language, namespace: nil
map_element "extractLanguage", to: :extract_language, namespace: nil
map_element "core", to: :core, namespace: nil
end

# xml do
# root "termium_extract"
# namespace "http://termium.tpsgc-pwgsc.gc.ca/schemas/2012/06/Termium", "ns2"

# map_attribute "language", to: :language, namespace: nil
# map_element "extractLanguage", to: :extract_language, namespace: nil
# map_element "core", to: :core, namespace: nil
# end

def to_concept(options = {})
coll = Glossarist::ManagedConceptCollection.new
coll.managed_concepts = core.map do |managed_concept|
Expand Down
Loading