File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,22 +12,13 @@ class Extract < Lutaml::Model::Serializable
1212
1313 xml do
1414 root "termium_extract"
15- # namespace "http://termium.tpsgc-pwgsc.gc.ca/schemas/2012/06/Termium", "ns2"
15+ namespace "http://termium.tpsgc-pwgsc.gc.ca/schemas/2012/06/Termium" , "ns2"
1616
17- map_attribute "language" , to : :language
18- map_element "extractLanguage" , to : :extract_language
19- map_element "core" , to : :core
17+ map_attribute "language" , to : :language , namespace : nil
18+ map_element "extractLanguage" , to : :extract_language , namespace : nil
19+ map_element "core" , to : :core , namespace : nil
2020 end
2121
22- # xml do
23- # root "termium_extract"
24- # namespace "http://termium.tpsgc-pwgsc.gc.ca/schemas/2012/06/Termium", "ns2"
25-
26- # map_attribute "language", to: :language, namespace: nil
27- # map_element "extractLanguage", to: :extract_language, namespace: nil
28- # map_element "core", to: :core, namespace: nil
29- # end
30-
3122 def to_concept
3223 coll = Glossarist ::ManagedConceptCollection . new
3324 coll . managed_concepts = core . map ( &:to_concept )
You can’t perform that action at this time.
0 commit comments