Changes for page People in ErUM-Data

Last modified by Benjamin Fischer on 2025/03/26 13:22

From version 35.1
edited by Benjamin Fischer
on 2025/01/06 10:55
Change comment: There is no comment for this version
To version 29.4
edited by admin
on 2024/10/23 14:24
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.fischer
1 +XWiki.admin
Content
... ... @@ -1,10 +2,8 @@
1 -{{locationSearch width="clamp(200px, 20%, 500px);float:right;margin:6px 0 6px 12px;" box="true" className="Research Groups.Code.Research GroupsClass" kind="content"/}}
2 2  (% class="box infomessage" %)
3 3  (((
4 4  With this collection we want to provide an overview of of various research groups and people in ErUM (data).
5 5  
6 -The list thrives on being filled. If you want to be subscribed or unsubscribed from this list please contact [[judith.steinfeld@erumdatahub.de>>mailto:judith.steinfeld@erumdatahub.de]].
7 -Feel free to add or modify your workinggroup yourself. For help, see this [[video>>attach:people_in_erum_final.mp4]].
5 +The list thrives on being filled. If you want to be subscribed or unsubscribed from this list please contact [[judith.steinfeld@erumdatahub.de>>mailto:judith.steinfeld@erumdatahub.de]]
8 8  )))
9 9  
10 10  {{velocity}}
... ... @@ -13,7 +13,6 @@
13 13   'URL': {"type": "hidden"},
14 14   "content": {"type": "hidden"},
15 15   "tags": {"sortable": false, "filterable": false, "html": true, "headerClass": "tagsCol"},
16 - "doc.date": {"filterable": false, "displayName": "Last Updated"},
17 17   '_actions': {"actions":["view","edit"]}
18 18  })
19 19  #set ($options = {
... ... @@ -20,11 +20,11 @@
20 20   'className': 'Research Groups.Code.Research GroupsClass',
21 21   'translationPrefix': 'research groups.livetable.',
22 22   'tagCloud': true,
23 - 'rowCount': 25,
20 + 'rowCount': 15,
24 24   'maxPages': 10,
25 - 'selectedColumn': 'doc.date',
26 - 'defaultOrder': 'desc'
22 + 'selectedColumn': 'affiliation',
23 + 'defaultOrder': 'asc'
27 27  })
28 -#set ($columns = ['affiliation', 'URL', "content", "tags", "tags", "tags", "doc.date", '_actions'])
25 +#set ($columns = ['affiliation', 'URL', "content", "tags", "tags", "tags", '_actions'])
29 29  #livetable('research_groups' $columns $columnsProperties $options)
30 30  {{/velocity}}
people_in_erum_final.mp4
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.JanBurger
Size
... ... @@ -1,1 +1,0 @@
1 -1.8 MB
Content
XWiki.JavaScriptExtension[0]
Code
... ... @@ -1,7 +1,7 @@
1 1  const tabName = "research_groups";
2 2  const tagCols = [
3 3   ["Community", "KAT", "KET", "KfB", "KFN", "KFS", "KFSI", "KHuK", "RDS", "beyond ErUM"],
4 - ["Experiment", "CMS", "ATLAS", "Belle2", "CTA", "Pierre Auger Observatory", "SKA", "IceCube", "KATRIN", "KASCADE", "GREGOR", "STELLA", "LOFAR", "LHCb", "LHC", "PETRA III", "PETRA IV", "PANDA", "Gaia", "Euclid", "BESSY II", "ANTARES", "H.E.S.S.", "KM3NeT", "FLASH", "Einstein Telescope"],
4 + ["Experiment", "CMS", "ATLAS", "Belle2", "CTA", "Auger"],
5 5   ["Tags", true],
6 6  ]
7 7  
... ... @@ -55,9 +55,8 @@
55 55   }
56 56  
57 57   row.affiliation = a.outerHTML;
58 + delete a;
58 58  
59 - row.doc_date = row.doc_date.split(" ")[0].split("/").slice(0, 2).join("/");
60 -
61 61   // tags
62 62   const tags = new Set(row.tags_value.slice(1, -1).split(", "));
63 63   tagCols.forEach(([name, ...want], i) =>
... ... @@ -71,12 +71,12 @@
71 71  });
72 72  
73 73  require(['jquery', 'bootstrap'], function($) {
74 - document.styleSheets[0].insertRule(`#mainContentArea .popover {max-width: 50%;}`)
73 + document.styleSheets[0].insertRule(`#${tabName} .popover {max-width: 50%;}`)
75 75  
76 76   const ttApply = () => {
77 77   $(`#${tabName} [data-toggle="popover"]`).popover({
78 78   html: true,
79 - container: `#mainContentArea`,
78 + container: `#${tabName}`,
80 80   trigger: "hover",
81 81   });
82 82   };