Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-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
Grégoire Locqueville
purescript-gargantext
Commits
a78cc594
Commit
a78cc594
authored
Dec 13, 2021
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
ssh://gitlab.iscpif.fr:20022/gargantext/purescript-gargantext
into dev
parents
9ec6fb07
4b0605b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
FacetsTable.purs
src/Gargantext/Components/FacetsTable.purs
+12
-11
No files found.
src/Gargantext/Components/FacetsTable.purs
View file @
a78cc594
...
@@ -83,9 +83,9 @@ newtype DocumentsView =
...
@@ -83,9 +83,9 @@ newtype DocumentsView =
, pairs :: Array Pair
, pairs :: Array Pair
, delete :: Boolean
, delete :: Boolean
, category :: Category
, category :: Category
, publication_year :: Int
, publication_year ::
Maybe
Int
, publication_month :: Int
, publication_month ::
Maybe
Int
, publication_day :: Int
, publication_day ::
Maybe
Int
}
}
derive instance Generic DocumentsView _
derive instance Generic DocumentsView _
...
@@ -245,16 +245,16 @@ doc2view ( Document { id
...
@@ -245,16 +245,16 @@ doc2view ( Document { id
}
}
) = DocumentsView { id
) = DocumentsView { id
, date
, date
, title
: title
, title
, source: showSource source
, source: showSource source
, score
, score
, authors: fromMaybe "Authors" authors
, authors: fromMaybe "Authors" authors
, category: decodeCategory category
, category: decodeCategory category
, pairs: []
, pairs: []
, delete: false
, delete: false
, publication_year
: fromMaybe 2020 publication_year
, publication_year
, publication_month
: fromMaybe 1 publication_month
, publication_month
, publication_day
: fromMaybe 1 publication_day
, publication_day
}
}
contact2view :: Contact -> ContactsView
contact2view :: Contact -> ContactsView
...
@@ -281,9 +281,9 @@ err2view _message =
...
@@ -281,9 +281,9 @@ err2view _message =
, category: decodeCategory 1
, category: decodeCategory 1
, pairs: []
, pairs: []
, delete: false
, delete: false
, publication_year: 2020
, publication_year:
Just
2020
, publication_month: 10
, publication_month:
Just
10
, publication_day: 1
, publication_day:
Just
1
}
}
type PageLayoutProps =
type PageLayoutProps =
...
@@ -392,9 +392,10 @@ pageCpt = here.component "page" cpt
...
@@ -392,9 +392,10 @@ pageCpt = here.component "page" cpt
| otherwise = H.div {}
| otherwise = H.div {}
publicationDate :: DocumentsView -> String
publicationDate :: DocumentsView -> String
publicationDate (DocumentsView { publication_year
,
publication_month }) =
publicationDate (DocumentsView { publication_year
: Just publication_year, publication_month: Just
publication_month }) =
(zeroPad 2 publication_year) <> "-" <> (zeroPad 2 publication_month)
(zeroPad 2 publication_year) <> "-" <> (zeroPad 2 publication_month)
-- <> "-" <> (zeroPad 2 publication_day)
-- <> "-" <> (zeroPad 2 publication_day)
publicationDate _ = "-"
---------------------------------------------------------
---------------------------------------------------------
...
...
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