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