Unverified Commit 0eb05e96 authored by Nicolas Pouillard's avatar Nicolas Pouillard

Merge branch 'conference-presentation' of...

Merge branch 'conference-presentation' of https://gitlab.iscpif.fr/gargantext/purescript-gargantext into conference-presentation
parents ac3d20cf 5b1f2294
...@@ -19,23 +19,25 @@ import Gargantext.Pages.Layout.Specs.AddCorpus.States (Response, State) ...@@ -19,23 +19,25 @@ import Gargantext.Pages.Layout.Specs.AddCorpus.States (Response, State)
import Gargantext.Utils (id) import Gargantext.Utils (id)
import URI.Extra.QueryPairs as QP import URI.Extra.QueryPairs as QP
data Database = PubMed | HAL | All data Database = All | PubMed | HAL | IsTex
instance showDatabase :: Show Database where instance showDatabase :: Show Database where
show All = "All"
show PubMed = "PubMed" show PubMed = "PubMed"
show HAL = "HAL" show HAL = "HAL"
show All = "All" show IsTex = "IsTex"
readDatabase :: String -> Maybe Database readDatabase :: String -> Maybe Database
readDatabase "All" = Just All
readDatabase "PubMed" = Just PubMed readDatabase "PubMed" = Just PubMed
readDatabase "HAL" = Just HAL readDatabase "HAL" = Just HAL
readDatabase "All" = Just All readDatabase "IsTex" = Just IsTex
readDatabase _ = Nothing readDatabase _ = Nothing
derive instance eqDatabase :: Eq Database derive instance eqDatabase :: Eq Database
allDatabases :: Array Database allDatabases :: Array Database
allDatabases = [PubMed, HAL, All] allDatabases = [All, HAL, IsTex, PubMed]
data SearchOrder data SearchOrder
= DateAsc = DateAsc
......
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