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
153
Issues
153
List
Board
Labels
Milestones
Merge Requests
9
Merge Requests
9
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
haskell-gargantext
Commits
f71cdadf
Commit
f71cdadf
authored
Dec 06, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/445-dev-doc-upload-lang' into dev
parents
48700649
dcc4bd5f
Pipeline
#3448
passed with stage
in 90 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
DocumentUpload.hs
src/Gargantext/API/Node/DocumentUpload.hs
+2
-1
No files found.
src/Gargantext/API/Node/DocumentUpload.hs
View file @
f71cdadf
...
@@ -37,6 +37,7 @@ data DocumentUpload = DocumentUpload
...
@@ -37,6 +37,7 @@ data DocumentUpload = DocumentUpload
,
_du_sources
::
T
.
Text
,
_du_sources
::
T
.
Text
,
_du_title
::
T
.
Text
,
_du_title
::
T
.
Text
,
_du_date
::
T
.
Text
,
_du_date
::
T
.
Text
,
_du_language
::
T
.
Text
}
}
deriving
(
Generic
)
deriving
(
Generic
)
...
@@ -121,7 +122,7 @@ documentUpload nId doc = do
...
@@ -121,7 +122,7 @@ documentUpload nId doc = do
,
_hd_publication_hour
=
Nothing
,
_hd_publication_hour
=
Nothing
,
_hd_publication_minute
=
Nothing
,
_hd_publication_minute
=
Nothing
,
_hd_publication_second
=
Nothing
,
_hd_publication_second
=
Nothing
,
_hd_language_iso2
=
Just
$
T
.
pack
$
show
EN
}
,
_hd_language_iso2
=
Just
$
view
du_language
doc
}
docIds
<-
insertMasterDocs
(
Nothing
::
Maybe
HyperdataCorpus
)
(
Multi
EN
)
[
hd
]
docIds
<-
insertMasterDocs
(
Nothing
::
Maybe
HyperdataCorpus
)
(
Multi
EN
)
[
hd
]
_
<-
Doc
.
add
cId
docIds
_
<-
Doc
.
add
cId
docIds
...
...
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