Commit 3f6abbe4 authored by Jonas Waeber's avatar Jonas Waeber

Fix date container builder

parent 0111e4c8
Pipeline #17038 passed with stages
in 5 minutes and 11 seconds
......@@ -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${
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment