Commit f0674838 authored by Alexandre Delanoë's avatar Alexandre Delanoë Committed by Alfredo Di Napoli

[TYPE] Node Corpus with its lang

parent 7f6f1933
...@@ -22,6 +22,7 @@ module Gargantext.Database.Admin.Types.Hyperdata.Corpus ...@@ -22,6 +22,7 @@ module Gargantext.Database.Admin.Types.Hyperdata.Corpus
where where
import Gargantext.Prelude import Gargantext.Prelude
import Gargantext.Core (Lang)
import Gargantext.Database.Admin.Types.Hyperdata.CorpusField import Gargantext.Database.Admin.Types.Hyperdata.CorpusField
import Gargantext.Database.Admin.Types.Hyperdata.Prelude import Gargantext.Database.Admin.Types.Hyperdata.Prelude
import PUBMED.Types (APIKey) import PUBMED.Types (APIKey)
...@@ -29,7 +30,9 @@ import PUBMED.Types (APIKey) ...@@ -29,7 +30,9 @@ import PUBMED.Types (APIKey)
------------------------------------------------------------------------ ------------------------------------------------------------------------
data HyperdataCorpus = data HyperdataCorpus =
HyperdataCorpus { _hc_fields :: ![HyperdataField CorpusField] HyperdataCorpus { _hc_fields :: ![HyperdataField CorpusField]
, _hc_pubmed_api_key :: Maybe APIKey } , _hc_pubmed_api_key :: Maybe APIKey
, _hc_lang :: Maybe Lang
}
deriving (Generic) deriving (Generic)
defaultHyperdataCorpus :: HyperdataCorpus defaultHyperdataCorpus :: HyperdataCorpus
...@@ -43,7 +46,9 @@ defaultHyperdataCorpus = ...@@ -43,7 +46,9 @@ defaultHyperdataCorpus =
"Metadata (Experts only)" "Metadata (Experts only)"
(JsonField "Title" "Descr" "Bool query" "Authors") (JsonField "Title" "Descr" "Bool query" "Authors")
] ]
, _hc_pubmed_api_key = Nothing } , _hc_pubmed_api_key = Nothing
, _hc_lang = Nothing
}
------------------------------------------------------------------------ ------------------------------------------------------------------------
------------------------------------------------------------------------ ------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment