Changes for page People in ErUM-Data
Last modified by Benjamin Fischer on 2025/03/26 13:22
From version 33.1
edited by Jan Bürger
on 2024/12/17 13:14
on 2024/12/17 13:14
Change comment:
Uploaded new attachment "people_in_erum_final.mp4", version 1.1
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 1 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. JanBurger1 +XWiki.admin - Content
-
... ... @@ -11,7 +11,6 @@ 11 11 'URL': {"type": "hidden"}, 12 12 "content": {"type": "hidden"}, 13 13 "tags": {"sortable": false, "filterable": false, "html": true, "headerClass": "tagsCol"}, 14 - "doc.date": {"filterable": false, "displayName": "Last Updated"}, 15 15 '_actions': {"actions":["view","edit"]} 16 16 }) 17 17 #set ($options = { ... ... @@ -18,11 +18,11 @@ 18 18 'className': 'Research Groups.Code.Research GroupsClass', 19 19 'translationPrefix': 'research groups.livetable.', 20 20 'tagCloud': true, 21 - 'rowCount': 25,20 + 'rowCount': 15, 22 22 'maxPages': 10, 23 - 'selectedColumn': ' doc.date',24 - 'defaultOrder': ' desc'22 + 'selectedColumn': 'affiliation', 23 + 'defaultOrder': 'asc' 25 25 }) 26 -#set ($columns = ['affiliation', 'URL', "content", "tags", "tags", "tags", "doc.date",'_actions'])25 +#set ($columns = ['affiliation', 'URL', "content", "tags", "tags", "tags", '_actions']) 27 27 #livetable('research_groups' $columns $columnsProperties $options) 28 28 {{/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 -const tabName = "research _groups";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", " PierreAugerObservatory", "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 ... ... @@ -51,13 +51,12 @@ 51 51 a.title = row.doc_title; 52 52 if (row.content !== "-") { 53 53 a.dataset.content = row.content; 54 - a.dataset.toggle = "popover"; 54 + a.dataset.toggle = "popover"; //"tooltip"; 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,14 +71,12 @@ 71 71 }); 72 72 73 73 require(['jquery', 'bootstrap'], function($) { 74 - document.styleSheets[0].insertRule(`#mainContentArea .popover {max-width: 50%;}`) 75 - 76 76 const ttApply = () => { 77 - $(` #${tabName} [data-toggle="popover"]`).popover({74 + $(`[id='${tabName}'] [data-toggle="popover"]`).popover({ 78 78 html: true, 79 - container: `#mainContentArea`,76 + container: "body", 80 80 trigger: "hover", 81 - }); 78 + }) // tooltip({ html: true, placement: "right" }); 82 82 }; 83 83 84 84 document.observe(`xwiki:livetable:${tabName}:displayComplete`, ttApply);