From f2424d097078595374e32804e22a4e29530d0838 Mon Sep 17 00:00:00 2001 From: vv01f Date: Mon, 7 Nov 2016 12:12:19 +0100 Subject: [PATCH] added calendar week as in ISO 8601 to mondays in calendar --- content/static/style/default.css | 4 ++ xsl/calendar.xsl | 11 ++- xsl/date.week-in-year.function.xsl | 103 +++++++++++++++++++++++++++++ 3 files changed, 116 insertions(+), 2 deletions(-) create mode 100644 xsl/date.week-in-year.function.xsl diff --git a/content/static/style/default.css b/content/static/style/default.css index 6738d78c0..b25824e48 100644 --- a/content/static/style/default.css +++ b/content/static/style/default.css @@ -939,3 +939,7 @@ h3 + div { .cookiebar h2 { font-size: 100%; } +.calweek { + float: right; + color: #f99; +} diff --git a/xsl/calendar.xsl b/xsl/calendar.xsl index badc7c452..7849e5967 100644 --- a/xsl/calendar.xsl +++ b/xsl/calendar.xsl @@ -6,6 +6,7 @@ exclude-result-prefixes="xsl date"> + @@ -90,10 +91,16 @@ + id="calendar-{date:year($date)}-{date:month-in-year($date)}-{date:day-in-month($date)}"> + + + + + + +
    diff --git a/xsl/date.week-in-year.function.xsl b/xsl/date.week-in-year.function.xsl new file mode 100644 index 000000000..ea94540d7 --- /dev/null +++ b/xsl/date.week-in-year.function.xsl @@ -0,0 +1,103 @@ + + + + + + 31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + 31 + + + + + + + + + + + + + + + + + + + + + + + + + + + + Z + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 7 + + + + + + + + + + + + + + + + + + + + + +