Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Przemyslaw Kaminski
haskell-gargantext
Commits
5e9fcc66
Verified
Commit
5e9fcc66
authored
Sep 02, 2021
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[search] fix HyperdataDocument pattern matching
parent
19ab7c5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
20 deletions
+38
-20
Search.hs
src/Gargantext/API/Search.hs
+38
-20
No files found.
src/Gargantext/API/Search.hs
View file @
5e9fcc66
...
...
@@ -251,27 +251,45 @@ class ToHyperdataRow a where
toHyperdataRow
::
a
->
HyperdataRow
instance
ToHyperdataRow
HyperdataDocument
where
toHyperdataRow
(
HyperdataDocument
b
d
u
ui
ub
p
t
a
i
s
abs'
pd
py
pm
pda
ph
pmin
psec
l
)
=
toHyperdataRow
(
HyperdataDocument
{
_hd_bdd
=
bdd
,
_hd_doi
=
doi
,
_hd_url
=
url'
,
_hd_uniqId
=
uniqId
,
_hd_uniqIdBdd
=
uniqIdBdd
,
_hd_page
=
page
,
_hd_title
=
t
,
_hd_authors
=
authors
,
_hd_institutes
=
institutes
,
_hd_source
=
source
,
_hd_abstract
=
abstract
,
_hd_publication_date
=
pdate
,
_hd_publication_year
=
pyear
,
_hd_publication_month
=
pmonth
,
_hd_publication_day
=
pday
,
_hd_publication_hour
=
phour
,
_hd_publication_minute
=
pminute
,
_hd_publication_second
=
psecond
,
_hd_language_iso2
=
language
})
=
HyperdataRowDocument
(
fromMaybe
""
b
)
(
fromMaybe
""
d
)
(
fromMaybe
""
u
)
(
fromMaybe
""
ui
)
(
fromMaybe
""
ub
)
(
fromMaybe
0
p
)
(
fromMaybe
"Title"
t
)
(
fromMaybe
""
a
)
(
fromMaybe
""
i
)
(
fromMaybe
""
s
)
(
fromMaybe
""
abs'
)
(
fromMaybe
""
pd
)
(
fromMaybe
2020
py
)
(
fromMaybe
1
pm
)
(
fromMaybe
1
pda
)
(
fromMaybe
1
ph
)
(
fromMaybe
1
pmin
)
(
fromMaybe
1
psec
)
(
fromMaybe
"EN"
l
)
{
_hr_abstract
=
fromMaybe
""
abstract
,
_hr_authors
=
fromMaybe
""
authors
,
_hr_bdd
=
fromMaybe
""
bdd
,
_hr_doi
=
fromMaybe
""
doi
,
_hr_institutes
=
fromMaybe
""
institutes
,
_hr_language_iso2
=
fromMaybe
"EN"
language
,
_hr_page
=
fromMaybe
0
page
,
_hr_publication_date
=
fromMaybe
""
pdate
,
_hr_publication_day
=
fromMaybe
1
pday
,
_hr_publication_hour
=
fromMaybe
1
phour
,
_hr_publication_minute
=
fromMaybe
1
pminute
,
_hr_publication_month
=
fromMaybe
1
pmonth
,
_hr_publication_second
=
fromMaybe
1
psecond
,
_hr_publication_year
=
fromMaybe
2020
pyear
,
_hr_source
=
fromMaybe
""
source
,
_hr_title
=
fromMaybe
"Title"
t
,
_hr_url
=
fromMaybe
""
url'
,
_hr_uniqId
=
fromMaybe
""
uniqId
,
_hr_uniqIdBdd
=
fromMaybe
""
uniqIdBdd
}
instance
ToHyperdataRow
HyperdataContact
where
toHyperdataRow
(
HyperdataContact
_
(
Just
(
ContactWho
_
fn
ln
_
_
))
ou
_
_
_
_
_
)
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment