[EPO] some work on getting patents on the frontend

parent 4991709f
Pipeline #4614 failed with stage
in 0 seconds
...@@ -110,6 +110,7 @@ data Database = All_Databases ...@@ -110,6 +110,7 @@ data Database = All_Databases
| IsTex | IsTex
| IsTex_Advanced | IsTex_Advanced
| Isidore | Isidore
| EPO
-- | News -- | News
-- | SocialNetworks -- | SocialNetworks
derive instance Generic Database _ derive instance Generic Database _
...@@ -125,6 +126,7 @@ instance Show Database where ...@@ -125,6 +126,7 @@ instance Show Database where
show IsTex = "IsTex" show IsTex = "IsTex"
show IsTex_Advanced = "IsTex_Advanced" show IsTex_Advanced = "IsTex_Advanced"
show Isidore = "Isidore" show Isidore = "Isidore"
show EPO = "EPO"
show Empty = "Empty" show Empty = "Empty"
-- show News = "News" -- show News = "News"
-- show SocialNetworks = "Social Networks" -- show SocialNetworks = "Social Networks"
...@@ -138,6 +140,7 @@ instance Doc Database where ...@@ -138,6 +140,7 @@ instance Doc Database where
doc IsTex = "All Elsevier enriched by CNRS/INIST" doc IsTex = "All Elsevier enriched by CNRS/INIST"
doc IsTex_Advanced = "IsTex advanced search" doc IsTex_Advanced = "IsTex advanced search"
doc Isidore = "All (French) Social Sciences" doc Isidore = "All (French) Social Sciences"
doc EPO = "EPO (European Patent Office)"
doc Empty = "Empty" doc Empty = "Empty"
-- doc News = "Web filtered by News" -- doc News = "Web filtered by News"
-- doc SocialNetworks = "Web filtered by MicroBlogs" -- doc SocialNetworks = "Web filtered by MicroBlogs"
...@@ -166,6 +169,7 @@ allDatabases = [ Empty ...@@ -166,6 +169,7 @@ allDatabases = [ Empty
, HAL Nothing , HAL Nothing
, Arxiv , Arxiv
, OpenAlex , OpenAlex
, EPO
-- , IsTex -- , IsTex
-- , IsTex_Advanced -- , IsTex_Advanced
-- , Isidore -- , Isidore
...@@ -183,6 +187,7 @@ dbToInputValue (HAL _) = "hal" ...@@ -183,6 +187,7 @@ dbToInputValue (HAL _) = "hal"
dbToInputValue IsTex = "istex" dbToInputValue IsTex = "istex"
dbToInputValue IsTex_Advanced = "istex_advanced" dbToInputValue IsTex_Advanced = "istex_advanced"
dbToInputValue Isidore = "isidore" dbToInputValue Isidore = "isidore"
dbToInputValue EPO = "epo"
dbToInputValue Empty = "empty" dbToInputValue Empty = "empty"
dbFromInputValue :: String -> Maybe Database dbFromInputValue :: String -> Maybe Database
...@@ -194,6 +199,7 @@ dbFromInputValue "hal" = Just (HAL Nothing) ...@@ -194,6 +199,7 @@ dbFromInputValue "hal" = Just (HAL Nothing)
dbFromInputValue "istex" = Just IsTex dbFromInputValue "istex" = Just IsTex
dbFromInputValue "istex_advanced" = Just IsTex_Advanced dbFromInputValue "istex_advanced" = Just IsTex_Advanced
dbFromInputValue "isidore" = Just Isidore dbFromInputValue "isidore" = Just Isidore
dbFromInputValue "epo" = Just EPO
dbFromInputValue "empty" = Just Empty dbFromInputValue "empty" = Just Empty
dbFromInputValue _ = Nothing dbFromInputValue _ = Nothing
......
...@@ -51,3 +51,5 @@ nodeParentQuery = { node_parent: { node_id: Var :: _ "id" Int ...@@ -51,3 +51,5 @@ nodeParentQuery = { node_parent: { node_id: Var :: _ "id" Int
, parent_type: Var :: _ "parent_type" String } =>> -- TODO parent_type :: NodeType , parent_type: Var :: _ "parent_type" String } =>> -- TODO parent_type :: NodeType
GGQL.getFieldsStandard (Proxy :: _ Node) GGQL.getFieldsStandard (Proxy :: _ Node)
} }
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