Changes for page Material Collection
Last modified by Judith Steinfeld on 2025/06/03 11:13
From version 73.1
edited by Judith Steinfeld
on 2024/11/15 13:49
on 2024/11/15 13:49
Change comment:
There is no comment for this version
To version 74.1
edited by Benjamin Fischer
on 2024/11/19 14:53
on 2024/11/19 14:53
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. JudithSteinfeld1 +XWiki.fischer
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -48,7 +48,12 @@ 48 48 const ol = new DOMParser().parseFromString(row.doc_location, "text/xml").documentElement; 49 49 const li = ol.children; 50 50 51 - li[0].remove(); // remove "Event" 51 + switch (li[0].textContent) { 52 + case "MoccaCalendar": 53 + li[1].remove(); // the sub calendar 54 + case "Material collection": 55 + li[0].remove(); // the "app" 56 + } 52 52 for (let i = 1; i < li.length - 1; i++) // intermediate 53 53 li[i].textContent = li[i].textContent; // remove link 54 54