Changes for page Drug_list

Last modified by Marco Weber on 2026/10/20 14:49

From version 1.1
edited by Marco Weber
on 2026/10/20 11:44
Change comment: Update LiveTable
To version 14.1
edited by Marco Weber
on 2026/10/20 14:06
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,23 +1,171 @@
1 -{{velocity}}
2 -#set ($columnsProperties = {
3 - 'atc_code': {},
4 - 'drug_name': {},
5 - 'trade_name': {},
6 - 'chop_code': {},
7 - 'chop_text_de': {},
8 - 'chop_text_fr': {},
9 - 'chop_text_it': {},
10 - 'incidence_year': {}
11 -})
12 -#set ($options = {
13 - 'className': 'Drug_list.Code.Drug_listClass',
14 - 'translationPrefix': 'drug_list.livetable.',
15 - 'tagCloud': true,
16 - 'rowCount': 15,
17 - 'maxPages': 10,
18 - 'selectedColumn': 'atc_code',
19 - 'defaultOrder': 'asc'
20 -})
21 -#set ($columns = ['atc_code', 'drug_name', 'trade_name', 'chop_code', 'chop_text_de', 'chop_text_fr', 'chop_text_it', 'incidence_year'])
22 -#livetable('drug_list' $columns $columnsProperties $options)
23 -{{/velocity}}
1 +{{html clean="false"}}
2 +<style>
3 +
4 +/* =========================================================
5 + Morphology LiveData – Tabellenformatierung
6 + ========================================================= */
7 +
8 +/* Gesamte Tabelle */
9 +table.layout-table-root.responsive-table {
10 + width: 100%;
11 + border-collapse: collapse;
12 + table-layout: fixed;
13 +}
14 +
15 +/* =========================================================
16 + Kopfzeile
17 + ========================================================= */
18 +
19 +table.layout-table-root.responsive-table thead th {
20 + font-weight: bold;
21 + font-size: 1.0em;
22 + background-color: #00BFFF;
23 + border: 1px solid #999;
24 + padding: 7px 6px;
25 + vertical-align: middle;
26 +}
27 +
28 +/* Eigentliche Spaltenbezeichnung */
29 +table.layout-table-root.responsive-table thead .property-name {
30 + font-weight: bold;
31 +}
32 +
33 +/* Sortier-Button nicht unnötig hervorheben */
34 +table.layout-table-root.responsive-table thead .handle {
35 + font-weight: bold;
36 +}
37 +
38 +/* =========================================================
39 + Filterzeile
40 + ========================================================= */
41 +
42 +
43 +table.layout-table-root.responsive-table thead tr.column-filters th {
44 + background-color: #fafafa;
45 + border: 1px solid #bbb;
46 + padding: 4px 5px;
47 +}
48 +
49 +/* Filter-Eingabefelder */
50 +table.layout-table-root.responsive-table .livedata-filter {
51 + width: 100%;
52 + box-sizing: border-box;
53 +}
54 +
55 +table.layout-table-root.responsive-table .filter-text,
56 +table.layout-table-root.responsive-table .filter-date {
57 + width: 100%;
58 + box-sizing: border-box;
59 + min-height: 28px;
60 +}
61 +
62 +/* Selectize-Filter */
63 +table.layout-table-root.responsive-table .selectize-control {
64 + width: 100%;
65 +}
66 +
67 +table.layout-table-root.responsive-table .selectize-input {
68 + min-height: 28px;
69 + padding: 4px 6px;
70 + box-sizing: border-box;
71 +}
72 +
73 +/* =========================================================
74 + Datenzellen
75 + ========================================================= */
76 +
77 +table.layout-table-root.responsive-table tbody td {
78 + border: 1px solid #bbb;
79 + padding: 6px 6px;
80 + vertical-align: top;
81 + overflow-wrap: break-word;
82 + word-wrap: break-word;
83 +}
84 +
85 +/* =========================================================
86 + Spaltenbreiten
87 + ========================================================= */
88 +
89 +/* =========================================================
90 + Spaltenbreiten
91 + Reihenfolge:
92 + 1 atc_code
93 + 2 drug_name
94 + 3 trade_name
95 + 4 chop_code
96 + 5 text_de
97 + 6 text_fr
98 + 7 text_it
99 + 8 incidence_year
100 + ========================================================= */
101 +
102 +table.layout-table-root.responsive-table th:nth-child(1),
103 +table.layout-table-root.responsive-table td:nth-child(1) {
104 + width: 5%;
105 +}
106 +
107 +table.layout-table-root.responsive-table th:nth-child(2),
108 +table.layout-table-root.responsive-table td:nth-child(2) {
109 + width: 14%;
110 +}
111 +
112 +table.layout-table-root.responsive-table th:nth-child(3),
113 +table.layout-table-root.responsive-table td:nth-child(3) {
114 + width: 14%;
115 +}
116 +
117 +table.layout-table-root.responsive-table th:nth-child(4),
118 +table.layout-table-root.responsive-table td:nth-child(4) {
119 + width: 5%;
120 +}
121 +
122 +table.layout-table-root.responsive-table th:nth-child(5),
123 +table.layout-table-root.responsive-table td:nth-child(5) {
124 + width: 19%;
125 +}
126 +
127 +table.layout-table-root.responsive-table th:nth-child(6),
128 +table.layout-table-root.responsive-table td:nth-child(6) {
129 + width: 19%;
130 +}
131 +
132 + table.layout-table-root.responsive-table th:nth-child(7),
133 +table.layout-table-root.responsive-table td:nth-child(7) {
134 + width: 19%;
135 +}
136 +
137 +table.layout-table-root.responsive-table th:nth-child(8),
138 +table.layout-table-root.responsive-table td:nth-child(8) {
139 + width: 5%;
140 +}
141 +
142 +
143 +/* =========================================================
144 + Header-Ausrichtung
145 + ========================================================= */
146 +
147 +table.layout-table-root.responsive-table th[data-title="atc_code"],
148 +table.layout-table-root.responsive-table th[data-title="drug_name"],
149 +table.layout-table-root.responsive-table th[data-title="trade_name"],
150 +table.layout-table-root.responsive-table th[data-title="text_de"],
151 +table.layout-table-root.responsive-table th[data-title="text_fr"],
152 +table.layout-table-root.responsive-table th[data-title="text_it"]
153 +table.layout-table-root.responsive-table th[data-title="incidence_year",{
154 + text-align: center;
155 +}
156 +
157 +</style>
158 +{{/html}}
159 +
160 +
161 +{{liveData
162 + id="drug_list.livetable"
163 + properties="atc_code,drug_name,trade_name,chop_code,chop_text_de,chop_text_fr,chop_text_it,incidence_year"
164 + source="liveTable"
165 + sourceParameters="className=Drug_list.Code.Drug_listClass&translationPrefix=drug_list.livetable."
166 + sort="incidence_year:asc"
167 + limit="50"
168 + layouts="table"
169 + showPageSizeDropdown="true"
170 + pageSizes="25,50,75,100"
171 +}}
drug list_ready.csv
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.MarcoWeber
Size
... ... @@ -1,0 +1,1 @@
1 +142.1 KB
Content
XWiki.UIExtensionClass[0]
Extension ID
... ... @@ -1,0 +1,1 @@
1 +platform.panels.Drug_listApplication
Extension Parameters
... ... @@ -1,0 +1,3 @@
1 +label=Drug_list
2 +target=Drug_list.WebHome
3 +icon=icon:application
BatchImport.BatchImportClass[0]
classname
... ... @@ -1,0 +1,1 @@
1 +Drug_list.Code.Drug_listClass
Clear file names
... ... @@ -1,0 +1,1 @@
1 +Yes
List Separator
... ... @@ -1,0 +1,1 @@
1 +,
mapping
... ... @@ -1,0 +1,9 @@
1 +drug_name=drug_name
2 +atc_code=atc_code
3 +incidence_year=incidence_year
4 +chop_text_fr=chop_text_fr
5 +ID=doc.name
6 +chop_text_it=chop_text_it
7 +chop_text_de=chop_text_de
8 +chop_code=chop_code
9 +trade_name=trade_name
metadatafilename
... ... @@ -1,0 +1,1 @@
1 +drug list_ready.csv
space
... ... @@ -1,0 +1,1 @@
1 +Drug_list