Changes for page Home
Last modified by Benjamin Fischer on 2025/06/04 14:20
From version 67.1
edited by Benjamin Fischer
on 2024/10/24 16:37
on 2024/10/24 16:37
Change comment:
Renamed back-links.
To version 72.44
edited by Benjamin Fischer
on 2024/11/06 16:58
on 2024/11/06 16:58
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (0 modified, 2 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,57 +1,34 @@ 1 - 1 +{{box cssClass="floatinginfobox" image="https://wiki.test.erumdatahub.de/bin/download/Main/WebHome/logo_horizontal_23_neu.png?width=200"}} 2 +{{displayIcon name="application_view_tile"/}} [[Indico>>https://indico.desy.de/category/984/]] 3 +{{displayIcon name="email"/}} [[Mailing Lists]] 4 +{{displayIcon name="world"/}} [[Website>>https://erumdatahub.de/]] 5 +{{/box}} 2 2 3 - [[image:logo_horizontal_23_neu.png||height="100"width="200"]]7 +Welcome to the new ErUM-Data-Hub Wiki - a place for all ErUM-Data communities, to interact and share information with one another. 4 4 5 -(% class="box infomessage" %) 6 -((( 7 -**Welcome to the new ErUM-Data-Hub Wiki ** 8 -))) 9 +If you have any ideas for new features or content that you would want to find here, feel free to get in contact with us. 10 +Otherwise, you can always create an account and contribute improvements or novel content yourself. For now, the registration is not open to the puplic. 9 9 12 += What is new? = 10 10 11 - == **GettingStarted**==14 +Have a look at our new comprehensive: 12 12 13 -For any questions, access and editing rights, please contact {{displayIcon name="email"/}}[[ webmaster@erumdatahub.de>>mailto:webmaster@erumdatahub.de]] 16 +* [[Material collection]] of learning and teaching materials, and 17 +* [[People in ErUM-Data]] list of research groups and contact information of people who work in ErUM-Data. 14 14 15 -- ---19 += ErUM-Data Calendar = 16 16 17 -=== **{{displayIcon name="email"/}} Mailing Lists** === 21 +{{velocity output="false"}} 22 +$xwiki.ssx.use("Calendar.FullCalendar") 23 +$xwiki.jsx.use("Calendar.FullCalendar", {'defer': false}) 24 +$xwiki.jsx.use("Main.WebHome", {'defer': false, 'minify': false}) 25 +{{/velocity}} 18 18 19 -Subscribe to our Mailing-Lists: [[https:~~/~~/wiki.erumdatahub.de/de/mailing-list>>url:https://wiki.erumdatahub.de/de/mailing-lists]] 20 - 21 ----- 22 - 23 -=== **{{displayIcon name="world"/}} Further Information** === 24 - 25 -For more information have a look at our website: [[https:~~/~~/wiki.erumdatahub.de>>url:https://wiki.erumdatahub.de/de/mailing-lists]] 26 - 27 ----- 28 - 29 -=== ** {{displayIcon name="application_view_tile"/}} Events** === 30 - 31 -Upcoming next: [[Federated Infrastructure (Coordination Meeting) - 04.11.2024>>https://indico.desy.de/event/46669/]] 32 - 33 -All events: [[https:~~/~~/indico.desy.de/category/984/ >>https://indico.desy.de/category/984/]] 34 - 35 ----- 36 - 37 -{{info}} 38 -**What is new?** 39 - 40 - 41 -Have a look at our [[Material Collection>>doc:Material collection.WebHome]] and [[People in ErUM-Data>>doc:People in ErUM-Data.WebHome]]. 42 - 43 - 44 -Both lists contain a comprehensive collection of information on (1) learning and teaching materials as well as (2) research groups and contact information of people who work in ErUM-Data and are intended to to facilitate your search for suitable ErUM-Data information. 45 - 27 +(% id="calendarCustom" %) 28 +((( 46 46 47 - {{/info}}30 +))) 48 48 49 - 50 - 51 -{{calendar classname="Event.Code.EventClass" startfield="startDate" endfield="endDate" right="month,listYear" editable="false"/}} 52 - 53 - 54 - 55 55 {{velocity}} 56 56 #set ($showcomments = false) 57 57 #set ($showannotations = false)
- XWiki.JavaScriptExtension[0]
-
- Caching policy
-
... ... @@ -1,0 +1,1 @@ 1 +default - Code
-
... ... @@ -1,0 +1,136 @@ 1 +require(["jquery", "fullcalendar"], function (jq) { 2 + const FC = jq.fullCalendar; 3 + const E = (tag, ...childs) => { 4 + const attrs = childs[0]?.constructor === Object ? childs.shift() : {}; 5 + const ret = Element(tag, attrs); 6 + ret.append(...childs.flat()); 7 + return ret; 8 + }; 9 + FC.defineView('monthCols', { 10 + class: FC.View.extend({ 11 + render() { 12 + const chf = this.opt("columnFormat") ?? "MMM"; 13 + const start = this.start ?? FC.moment({year: FC.moment().year()}); 14 + const months = Array(12).fill().map((_, month) => start.clone().add({month})); 15 + 16 + this.el.addClass("fc-month-cols-view").html( 17 + E( 18 + "table", 19 + E("thead", {class: "fc-head"}, 20 + E("tr", E("th"), months.map(m => E("th", m.format(chf))))), 21 + E("tbody", {class: "fc-body"}, 22 + Array(31).fill().map((_, day) => E("tr", 23 + E("th", {class: "fc-axis"}, `${day + 1}`), 24 + months.map(m => m.clone().add({day})).map(d => 25 + d.date() === day + 1 26 + ? E("td", {class: this.getDayClasses(d).join(" ")}, [d.format("dd")]) 27 + : E("td") 28 + ))) 29 + ), 30 + ) 31 + ); 32 + }, 33 + renderEvents(ev) { 34 + const todo = ev.slice().sort((a,b) => a.start.diff(b.start) || a.end.diff(b.end)); 35 + const cols = []; 36 + 37 + for( 38 + let s = this.start.clone(), e = s.clone().add({day: 1}), col = [], occ = [], bgc, bgt, bgn = 0, sim; 39 + s.isBefore(this.end); 40 + s.add({day: 1}), e.add({day: 1}), bgn--, occ = occ.map(o => o--).filter(o => o > 0) 41 + ) { 42 + // calculate maximum number of simultaneous events 43 + if (s.date() == 1) { 44 + const e2 = s.clone().add({month: 1}); 45 + sim = Math.max(0, ...todo 46 + .filter(t => s.isBefore(t.end) && t.start.isBefore(e2)) 47 + .map((t, i, arr) => arr.slice(i).filter(o => o.start.isBefore(t.end)).length) 48 + ); 49 + } 50 + const cells = [E("td", s.format("dd"))]; 51 + // new events 52 + while (todo && todo[0].start.isBefore(e)) { 53 + const t = todo.shift(); 54 + const d = Math.ceil(t.end.diff(t.start, "days", true)); 55 + if (t.rendering == "background") { 56 + bgc = t.color; 57 + bgt = t.title; 58 + bgn = d; 59 + } else { 60 + const e = E("td", t.title); 61 + if (t.color) e.style.borderColor = e.style.backgroundColor = t.color; 62 + if (t.textColor) e.style.color = t.textColor; 63 + if (d > 1) e.rowspan = d; 64 + occ.push(d); 65 + } 66 + } 67 + // fill the rest 68 + const m = sim - occ.length; 69 + if (m) cells.push(E("td", {colspan: m})); 70 + cells.push(E("td", s.weekday() ? "" : s.weekYear())); 71 + // apply background color 72 + if (bgn && bgc) { 73 + for (const c of cells) { 74 + e.style.backgroundColor ||= bgc; 75 + if (bgr) e.title ||= bgt; 76 + } 77 + } 78 + // flush month 79 + if (s.month() != e.month()) { 80 + while(col.length < 31) col.push(); 81 + cols.push(col); 82 + col = []; 83 + } 84 + } 85 + 86 + debugger; 87 + }, 88 + }), 89 + duration: { year: 1 }, 90 + }); 91 + 92 + const init = () => { 93 + jq("#calendarCustom").fullCalendar({ 94 + views: { 95 + month: { 96 + columnFormat: "ddd", 97 + titleFormat: "MMMM YYYY", 98 + buttonText: "month", 99 + }, 100 + monthCols: { 101 + columnFormat: "MMM", 102 + titleFormat: "YYYY", 103 + buttonText: "year", 104 + }, 105 + }, 106 + timeFormat: "h(:mm)t", 107 + axisFormat: "h(:mm)t", 108 + allDayText: "All day", 109 + eventSources: [ 110 + "/bin/get/MoccaCalendar/Code/JSONService?xpage=plain&outputSyntax=plain&calendarDoc=Main.WebHome&filter=wiki&classname=MoccaCalendar.MoccaCalendarEventClass&startfield=startDate&endfield=endDate&durationfield=&xpage=plain&outputSyntax=plain&classname=&startfield=datetime&endfield=&durationfield=&extraFields=", 111 + ], 112 + header: { 113 + left: "prev,next today", 114 + center: "title", 115 + right: "month,monthCols", 116 + }, 117 + timeFormat: "H:mm", 118 + defaultView: "month", 119 + firstDay: "1", 120 + minTime: "8:00", 121 + maxTime: "23:00", 122 + defaultDate: "2024-11-06", 123 + editable: false, 124 + eventDataTransform: event => { 125 + if (event.url.split("/")[4] === "Holidays") event.rendering = "background"; 126 + return event; 127 + }, 128 + eventRender: function (event, element) { 129 + // Render augmentation hook, use: event.html 130 + }, 131 + }); 132 + }; 133 + 134 + jq(document).ready(init); 135 +}); 136 + - Name
-
... ... @@ -1,0 +1,1 @@ 1 +Customized Calendar View - Parse content
-
... ... @@ -1,0 +1,1 @@ 1 +No - Use this extension
-
... ... @@ -1,0 +1,1 @@ 1 +onDemand
- XWiki.StyleSheetExtension[0]
-
- Caching policy
-
... ... @@ -1,0 +1,1 @@ 1 +default - Code
-
... ... @@ -1,0 +1,5 @@ 1 +#calendarCustom { 2 + td.fc-sat, td.fc-sun { 3 + background-color: #f5f5f5; 4 + } 5 +} - Content Type
-
... ... @@ -1,0 +1,1 @@ 1 +LESS - Parse content
-
... ... @@ -1,0 +1,1 @@ 1 +No - Use this extension
-
... ... @@ -1,0 +1,1 @@ 1 +currentPage