aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala
diff options
context:
space:
mode:
authorJoris2017-01-20 20:39:42 +0100
committerJoris2017-01-20 20:39:42 +0100
commit501d4ef57edb9e9c7744fd5c8162b716816f93e6 (patch)
tree453c535ee4745cfe79ee8f2e311895559e89ae78 /src/main/scala
parente7c270ef8970a87923b80175d60e265cdb94c2db (diff)
Add some covers
Diffstat (limited to 'src/main/scala')
-rw-r--r--src/main/scala/reading/Books.scala34
-rw-r--r--src/main/scala/reading/component/index/Books.scala10
2 files changed, 22 insertions, 22 deletions
diff --git a/src/main/scala/reading/Books.scala b/src/main/scala/reading/Books.scala
index 7695b19..bb8f32b 100644
--- a/src/main/scala/reading/Books.scala
+++ b/src/main/scala/reading/Books.scala
@@ -45,7 +45,7 @@ object Books {
),
Book(
- title = "Les Filles au chocolat",
+ title = "Les filles au chocolat",
author = "Cathy CASSIDY",
year = "2011-2016",
parts = 9,
@@ -170,7 +170,7 @@ object Books {
),
Book(
- title = "Les Aventures de Tom Sawyer",
+ title = "Les aventures de Tom Sawyer",
author = "Mark TWAIN",
year = "1876",
period = Some(Siecle19),
@@ -181,7 +181,7 @@ object Books {
),
Book(
- title = "Carnets de Cerise",
+ title = "les carnets de Cerise",
author = "Joris CHAMBLAIN et Aurélie NEYRET",
year = "2012-2016",
parts = 4,
@@ -205,7 +205,7 @@ object Books {
),
Book(
- title = "Le Journal intime de Georgia NICOLSON",
+ title = "Le journal intime de Georgia Nicolson",
author = "Louise RENNISON",
year = "2000-2014",
parts = 10,
@@ -217,7 +217,7 @@ object Books {
),
Book(
- title = "Journal d’une grosse nouille",
+ title = "Journal d'une grosse nouille",
author = "RR RUSSELL",
year = "2012-2016",
parts = 10,
@@ -240,7 +240,7 @@ object Books {
),
Book(
- title = "A la Poursuite d’Olympe",
+ title = "À la poursuite d'Olympe",
author = "Annie JAY",
year = "1995",
period = Some(Louis14),
@@ -373,7 +373,7 @@ object Books {
),
Book(
- title = "Le Crime de l’Orient-Express",
+ title = "Le Crime de l'Orient-Express",
author = "Agatha Christie",
year = "1934",
period = Some(Siecle20),
@@ -417,7 +417,7 @@ object Books {
),
Book(
- title = "Le Chien des Baskerville",
+ title = "Le chien des Baskerville",
author = "Arthur CONAN DOYLE",
year = "1902",
period = Some(Siecle20),
@@ -510,7 +510,7 @@ object Books {
),
Book(
- title = "Harry POTTER",
+ title = "Harry Potter",
author = "J.K ROWLING",
year = "1999-2007",
period = None,
@@ -533,7 +533,7 @@ object Books {
),
Book(
- title = "Le Hobbit",
+ title = "Bilbo Le Hobbit",
author = "J.R.R TOLKIEN",
year = "1937",
period = None,
@@ -566,7 +566,7 @@ object Books {
),
Book(
- title = "A la Croisée des mondes",
+ title = "À la Croisée des mondes",
author = "Philip PULLMAN",
year = "1998-2001",
period = None,
@@ -600,7 +600,7 @@ object Books {
),
Book(
- title = "Les Héros de l’Olympe",
+ title = "Les Héros de l'Olympe",
author = "Rick RIORDAN",
year = "2010-2014",
period = None,
@@ -635,7 +635,7 @@ object Books {
),
Book(
- title = "Journal d’un noob",
+ title = "Journal d'un noob",
author = "Cube Kid",
year = "2016-2017",
parts = 4,
@@ -647,7 +647,7 @@ object Books {
),
Book(
- title = "Journal d’un dégonflé",
+ title = "Journal d'un dégonflé",
author = "Jeff KINNEY",
year = "2009-2016",
parts = 10,
@@ -703,7 +703,7 @@ object Books {
),
Book(
- title = "Les Héritiers d’Enkidiev",
+ title = "Les Héritiers d'Enkidiev",
author = "Anne ROBILLARD",
year = "2011-2016",
period = None,
@@ -826,7 +826,7 @@ object Books {
),
Book(
- title = "Le Journal d’Aurélie Laflamme",
+ title = "Le journal d'Aurélie Laflamme",
author = "India DESJARDINS",
year = "2013-2015",
period = Some(Contemporain),
@@ -884,7 +884,7 @@ object Books {
),
Book(
- title = "Gardiens des cites perdues",
+ title = "Gardiens des cités perdues",
author = "Shannon MESSENGER",
year = "2014-2016",
parts = 4,
diff --git a/src/main/scala/reading/component/index/Books.scala b/src/main/scala/reading/component/index/Books.scala
index 19c1f99..79a7f07 100644
--- a/src/main/scala/reading/component/index/Books.scala
+++ b/src/main/scala/reading/component/index/Books.scala
@@ -34,12 +34,12 @@ object Books {
src := s"cover/${book.title}.jpg"
),
div(
- div(BooksStyle.item, s"classe : ${book.programs.map(Program.grade).distinct.sorted.mkString(", ")}"),
- div(BooksStyle.item, s"programme : ${book.programs.map(p => "« " ++ p.toString ++ " »").sorted.mkString(", ")}"),
- div(BooksStyle.item, s"thème : ${book.themes.sorted.mkString(", ")}"),
- div(BooksStyle.item, s"genre : ${book.genres.sorted.mkString(", ")}"),
+ div(BooksStyle.item, s"classe : ${book.programs.map(Program.grade).map(_.prettyPrint).distinct.sorted.mkString(", ")}"),
+ div(BooksStyle.item, s"programme : ${book.programs.map(p => "« " ++ p.prettyPrint ++ " »").sorted.mkString(", ")}"),
+ div(BooksStyle.item, s"thème : ${book.themes.sorted.map(_.prettyPrint).mkString(", ")}"),
+ div(BooksStyle.item, s"genre : ${book.genres.sorted.map(_.prettyPrint).mkString(", ")}"),
book.period.map { period =>
- div(BooksStyle.item, s"période : $period")
+ div(BooksStyle.item, s"période : ${period.prettyPrint}")
}
)
)