Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arxiv-api
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
gargantext
crawlers
arxiv-api
Commits
3c80b872
Commit
3c80b872
authored
Mar 02, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CLEAN] cosmetics
parent
f64cd01e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Arxiv.hs
src/Arxiv.hs
+5
-5
No files found.
src/Arxiv.hs
View file @
3c80b872
...
...
@@ -66,7 +66,6 @@ searchAxv q =
(
Status
200
_
)
->
getSoup
(
getResponseBody
rsp
)
>>=
results
q
st
->
error
$
"Error:"
++
show
st
----------------------------------------------------------------------
-- Consume page by page
----------------------------------------------------------------------
...
...
@@ -114,16 +113,17 @@ mkResult sp = let doi' = Ax.getDoi sp
authors'
=
Ax
.
getAuthors
sp
publication_date'
=
Ax
.
getPublished
sp
year'
=
Ax
.
getYear
sp
title_tmp
=
Ax
.
getTitle
sp
&
clean
[
'
\n
'
,
'
\r
'
,
'
\t
'
]
title'
=
if
null
title_tmp
then
"No title"
else
title_tmp
abstract'
=
Ax
.
getSummary
sp
title'
=
Ax
.
getTitle
sp
&
clean'
abstract'
=
Ax
.
getSummary
sp
&
clean'
in
(
Result
doi'
url'
primaryCategory'
categories'
journal'
authors'
publication_date'
year'
title'
abstract'
)
where
clean
_
[]
=
[]
where
clean'
x
=
let
x'
=
clean
[
'
\n
'
,
'
\r
'
,
'
\t
'
]
x
in
if
null
x'
then
"Not found"
else
x'
clean
_
[]
=
[]
clean
d
(
c
:
cs
)
|
c
`
elem
`
d
=
" "
<>
clean
d
cs
|
otherwise
=
c
:
clean
d
cs
...
...
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