Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Elasticsearch Services
Search Doc Service
Commits
3f6abbe4
Commit
3f6abbe4
authored
Nov 13, 2020
by
Jonas Waeber
Browse files
Fix date container builder
parent
0111e4c8
Pipeline
#17038
passed with stages
in 5 minutes and 11 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/main/kotlin/helpers/DateFacetBuildHelpers.kt
View file @
3f6abbe4
...
...
@@ -77,7 +77,7 @@ object DateFacetBuildHelpers {
var
fromDecadeAsInt
=
fromDecade
.
substring
(
0
,
4
).
toInt
()
val
untilDecadeAsInt
=
untilDecade
.
substring
(
0
,
4
).
toInt
()
while
(
fromDecadeAsInt
!=
untilDecadeAsInt
)
{
while
(
fromDecadeAsInt
<
untilDecadeAsInt
)
{
fromDecadeAsInt
+=
10
results
.
add
(
"$level_2$separator$fromCentury$separator${
...
...
@@ -96,7 +96,7 @@ object DateFacetBuildHelpers {
var
fromCenturyAsInt
=
fromCentury
.
substring
(
0
,
2
).
toInt
()
val
untilCenturyAsInt
=
untilCentury
.
substring
(
0
,
2
).
toInt
()
while
(
fromCenturyAsInt
!=
untilCenturyAsInt
)
{
while
(
fromCenturyAsInt
<
untilCenturyAsInt
)
{
results
.
add
(
"$level_1$separator${
getCentury
(
...
...
@@ -112,7 +112,7 @@ object DateFacetBuildHelpers {
var
fromDecadeAsInt
=
fromDecade
.
substring
(
0
,
4
).
toInt
()
val
untilDecadeAsInt
=
untilDecade
.
substring
(
0
,
4
).
toInt
()
while
(
fromDecadeAsInt
!=
untilDecadeAsInt
)
{
while
(
fromDecadeAsInt
<
untilDecadeAsInt
)
{
fromDecadeAsInt
+=
10
results
.
add
(
"$level_2$separator${
...
...
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