Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
istex
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
istex
Commits
a34bb341
Commit
a34bb341
authored
Jun 15, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default max page number
parent
6821f416
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
ISTEX.hs
src/ISTEX.hs
+1
-1
Client.hs
src/ISTEX/Client.hs
+7
-7
No files found.
src/ISTEX.hs
View file @
a34bb341
...
@@ -29,7 +29,7 @@ runIstexScrollAPIClient cmd = do
...
@@ -29,7 +29,7 @@ runIstexScrollAPIClient cmd = do
runClientM
cmd
(
mkClientEnv
manager'
$
BaseUrl
Https
"api.istex.fr"
443
"document"
)
runClientM
cmd
(
mkClientEnv
manager'
$
BaseUrl
Https
"api.istex.fr"
443
"document"
)
maxScrollPages
::
Int
maxScrollPages
::
Int
maxScrollPages
=
10
maxScrollPages
=
10
00
getMetadataScroll
::
Text
->
Text
->
Maybe
Text
->
Int
->
IO
(
Either
ClientError
Documents
)
getMetadataScroll
::
Text
->
Text
->
Maybe
Text
->
Int
->
IO
(
Either
ClientError
Documents
)
getMetadataScroll
q
scroll
scrollId
page
=
do
getMetadataScroll
q
scroll
scrollId
page
=
do
...
...
src/ISTEX/Client.hs
View file @
a34bb341
...
@@ -62,15 +62,15 @@ L.makeLenses ''Document
...
@@ -62,15 +62,15 @@ L.makeLenses ''Document
instance
FromJSON
Document
where
instance
FromJSON
Document
where
parseJSON
(
Object
o
)
=
do
parseJSON
(
Object
o
)
=
do
_document_id
<-
o
.:
"id"
_document_id
<-
o
.:
"id"
_document_title
<-
o
.:?
"title"
_document_title
<-
o
.:?
"title"
_document_authors
<-
o
.:
"author"
<|>
pure
[]
_document_authors
<-
o
.:
"author"
<|>
pure
[]
_document_abstract
<-
o
.:?
"abstract"
_document_abstract
<-
o
.:?
"abstract"
_document_sources
<-
o
.:
"refBibs"
<|>
pure
[]
_document_sources
<-
o
.:
"refBibs"
<|>
pure
[]
mPubDate
<-
o
.:?
"publicationDate"
mPubDate
<-
o
.:?
"publicationDate"
pure
$
Document
{
_document_publicationDate
=
parsePubDate
mPubDate
pure
$
Document
{
_document_publicationDate
=
parsePubDate
mPubDate
,
..
}
,
..
}
data
Documents
=
Documents
data
Documents
=
Documents
{
_documents_total
::
Int
{
_documents_total
::
Int
,
_documents_hits
::
[
Document
]
,
_documents_hits
::
[
Document
]
...
...
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