Commit e79f1a8b authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FOREST][SEARCH][FIX] langs.

parent 06b00c45
...@@ -37,7 +37,7 @@ eqSearch s s' = (s.datafield == s'.datafield) ...@@ -37,7 +37,7 @@ eqSearch s s' = (s.datafield == s'.datafield)
defaultSearch :: Search defaultSearch :: Search
defaultSearch = { datafield: Just Gargantext defaultSearch = { datafield: Just Gargantext
, term: "" , term: ""
, lang: Just EN , lang: Nothing
, node_id: Nothing , node_id: Nothing
} }
...@@ -69,31 +69,31 @@ searchFieldComponent = R.memo (R.hooksComponent "SearchField" cpt) eqProps ...@@ -69,31 +69,31 @@ searchFieldComponent = R.memo (R.hooksComponent "SearchField" cpt) eqProps
else else
div {} [ langNav search props.langs div {} [ langNav search props.langs
, if s.lang == Nothing , if s.lang == Nothing
then then
div {} [] div {} []
else else
div {} [ dataFieldNav search dataFields div {} [ dataFieldNav search dataFields
, if isExternal s.datafield , if isExternal s.datafield
then databaseInput search props.databases then databaseInput search props.databases
else div {} [] else div {} []
, if isHAL s.datafield , if isHAL s.datafield
then orgInput search allOrgs then orgInput search allOrgs
else div {} [] else div {} []
, if isIMT s.datafield , if isIMT s.datafield
then then
componentIMT search componentIMT search
else div {} [] else div {} []
, if isCNRS s.datafield , if isCNRS s.datafield
then then
componentCNRS search componentCNRS search
else else
div {} [] div {} []
] ]
] ]
] ]
] ]
, submitButton search , submitButton search
......
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