Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
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
Julien Moutinho
haskell-gargantext
Commits
0090ff30
Verified
Commit
0090ff30
authored
Jun 30, 2023
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[openalex] allow author display_name to be null
parent
d428ae72
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
cabal.project
cabal.project
+5
-5
OpenAlex.hs
src/Gargantext/Core/Text/Corpus/API/OpenAlex.hs
+2
-2
stack.yaml
stack.yaml
+1
-1
No files found.
cabal.project
View file @
0090ff30
...
...
@@ -96,6 +96,11 @@ source-repository-package
location
:
https
://
gitlab
.
iscpif
.
fr
/
gargantext
/
crawlers
/
istex
.
git
tag
:
a34bb341236d82cf3d488210bc1d8448a98f5808
source
-
repository
-
package
type
:
git
location
:
https
://
gitlab
.
iscpif
.
fr
/
gargantext
/
crawlers
/
openalex
.
git
tag
:
d7aeb1144fce77f60d94a159b4c40329cb6d1960
source
-
repository
-
package
type
:
git
location
:
https
://
gitlab
.
iscpif
.
fr
/
gargantext
/
crawlers
/
pubmed
.
git
...
...
@@ -143,11 +148,6 @@ source-repository-package
location
:
https
://
github
.
com
/
rspeer
/
wikiparsec
.
git
tag
:
9637
a82344bb70f7fa8f02e75db3c081ccd434ce
source
-
repository
-
package
type
:
git
location
:
https
://
gitlab
.
iscpif
.
fr
/
gargantext
/
crawlers
/
openalex
.
git
tag
:
0083
c02d62441d73f3616409c6453c87302c698f
allow
-
older
:
*
allow
-
newer
:
*
...
...
src/Gargantext/Core/Text/Corpus/API/OpenAlex.hs
View file @
0090ff30
...
...
@@ -54,9 +54,9 @@ toDoc (OA.Work { .. } ) =
authors
::
[
OA
.
Authorship
]
->
Maybe
Text
authors
[]
=
Nothing
authors
aus
=
Just
$
T
.
intercalate
", "
(
getDisplayName
<$>
aus
)
authors
aus
=
Just
$
T
.
intercalate
", "
$
catMaybes
(
getDisplayName
<$>
aus
)
where
getDisplayName
::
OA
.
Authorship
->
Text
getDisplayName
::
OA
.
Authorship
->
Maybe
Text
getDisplayName
OA
.
Authorship
{
author
=
OA
.
DehydratedAuthor
{
display_name
=
dn
}
}
=
dn
institutes
::
[
OA
.
Authorship
]
->
Maybe
Text
...
...
stack.yaml
View file @
0090ff30
...
...
@@ -60,7 +60,7 @@ extra-deps:
-
git
:
https://gitlab.iscpif.fr/gargantext/crawlers/arxiv-api.git
commit
:
2d7e5753cbbce248b860b571a0e9885415c846f7
-
git
:
https://gitlab.iscpif.fr/gargantext/crawlers/openalex.git
commit
:
0083c02d62441d73f3616409c6453c87302c698f
commit
:
d7aeb1144fce77f60d94a159b4c40329cb6d1960
# NP libs
-
git
:
https://github.com/alpmestan/servant-job.git
commit
:
b4182487cfe479777c11ca19f3c0d47840b376f6
...
...
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