Skip to content

Commit

Permalink
Merge pull request #1351 from guardian/db-sat-mag
Browse files Browse the repository at this point in the history
Proposal for including Saturday magazine in the "Life" front
  • Loading branch information
blishen authored Sep 6, 2021
2 parents b712530 + 01eaffb commit 9c2757c
Showing 1 changed file with 68 additions and 1 deletion.
69 changes: 68 additions & 1 deletion app/model/editions/templates/DailyEdition.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,22 @@ object DailyEdition extends RegionalEdition {
// Culture fronts and special
FrontCulture -> WeekDays(List(WeekDay.Mon, WeekDay.Tues, WeekDay.Wed, WeekDay.Thurs)),
FrontCultureFilmMusic -> WeekDays(List(WeekDay.Fri)),
// New for Saturday Magazine
FrontLifeSaturdayMagazineFeatures -> WeekDays(List(WeekDay.Sat)),
FrontLifeSaturdayMagazineCuttings -> WeekDays(List(WeekDay.Sat)),
FrontLifeSaturdayMagazineLifestyle -> WeekDays(List(WeekDay.Sat)),
//TO DO KILL FrontCultureGuide after 25/9
FrontCultureGuide -> WeekDays(List(WeekDay.Sat)),
// New for the Saturday Magazine
FrontCultureSaturdayMagazineCulture -> WeekDays(List(WeekDay.Sat)),
FrontCultureSaturdayMagazineBooks -> WeekDays(List(WeekDay.Sat)),
FrontCultureNewReview -> WeekDays(List(WeekDay.Sun)),
//TO DO KILL FrontBooks ON SATURDAY after 25/9 (this is the old one using Sat Review)
FrontBooks -> WeekDays(List(WeekDay.Sat, WeekDay.Sun)),
FrontCultureSpecial -> Daily(),
// Life fronts and special
FrontLife -> WeekDays(List(WeekDay.Mon, WeekDay.Tues, WeekDay.Wed, WeekDay.Thurs)),
//TO DO KILL FrontLifeWeekend after 25/9
FrontLifeWeekend -> WeekDays(List(WeekDay.Sat)),
FrontTravelGuardian -> WeekDays(List(WeekDay.Sat)),
FrontLifeMagazineObserver -> WeekDays(List(WeekDay.Sun)),
Expand Down Expand Up @@ -188,6 +198,41 @@ object DailyEdition extends RegionalEdition {
.swatch(Opinion)

def FrontOpinionSpecial = specialFront("Journal Special", Opinion)

// New for Saturday Life Magazine, we're making temporarily a special to be hidden by default.

def FrontLifeSaturdayMagazineFeatures = front(
"Features",
collection("Features").printSentAnyTag("theguardian/saturday/features"),
collection("Features"),
collection("Features"),
collection("Features"),
collection("Features").hide
)
.special
.swatch(Lifestyle)

def FrontLifeSaturdayMagazineCuttings = front(
"Cuttings",
collection("Cuttings").printSentAnyTag("theguardian/saturday/cuttings"),
collection("Cuttings"),
collection("Cuttings"),
collection("Cuttings"),
collection("Cuttings").hide
)
.special
.swatch(Lifestyle)

def FrontLifeSaturdayMagazineLifestyle = front(
"Lifestyle",
collection("Lifestyle").printSentAnyTag("theguardian/saturday/lifestyle"),
collection("Lifestyle"),
collection("Lifestyle"),
collection("Lifestyle"),
collection("Lifestyle").hide
)
.special
.swatch(Lifestyle)

def FrontCulture = front(
"Culture",
Expand All @@ -208,7 +253,7 @@ object DailyEdition extends RegionalEdition {
collection("Culture").hide
)
.swatch(Culture)

def FrontCultureGuide = front(
"Culture",
collection("Features").printSentAnyTag("theguardian/theguide/features"),
Expand All @@ -218,6 +263,28 @@ object DailyEdition extends RegionalEdition {
collection("Culture").hide
)
.swatch(Culture)

// New for the Saturday Magazine

def FrontCultureSaturdayMagazineCulture = front(
"Culture",
collection("Culture").printSentAnyTag("theguardian/saturday/culture"),
collection("Culture"),
collection("Culture"),
collection("Culture"),
collection("Culture").hide
)
.swatch(Culture)

def FrontCultureSaturdayMagazineBooks = front(
"Books",
collection("Books"),
collection("Books"),
collection("Books"),
collection("Books"),
collection("Books").hide
)
.swatch(Culture)

def FrontCultureNewReview = front(
"Culture",
Expand Down

0 comments on commit 9c2757c

Please sign in to comment.