Changes for page Intersection table of ML Elements with glossary terms
Last modified by Artur K. on 2026/06/01 15:50
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,7 +1,8 @@ 1 -{{velocity output="false"}}1 +{{velocity}} 2 2 #set($rootDocFullName = $doc.getParent()) 3 3 #set($rootDoc = $xwiki.getDocument($rootDocFullName)) 4 4 #set($fullNamePrefix = "${rootDoc.space}.%") 5 + 5 5 ## ---------------------------- 6 6 ## 1. Получаем Ontology Elements 7 7 ## ---------------------------- ... ... @@ -15,7 +15,9 @@ 15 15 and doc.fullName <> :rootDocFullName 16 16 and doc.fullName like :fullNamePrefix 17 17 order by doc.fullName") 19 + 18 18 #set($elementRows = $services.query.hql($hqlElements).bindValue('rootDocFullName', $rootDocFullName).bindValue('fullNamePrefix', $fullNamePrefix).execute()) 21 + 19 19 ## --------------------------- 20 20 ## 2. Получаем термины глоссария 21 21 ## ---------------------------- ... ... @@ -29,10 +29,12 @@ 29 29 order by doc.fullName") 30 30 31 31 #set($glossaryRows = $services.query.hql($hqlGlossary).execute()) 35 + 32 32 ## --------------------------- 33 33 ## 3. Строим map глоссария по нормализованному title 34 34 ## ---------------------------- 35 35 #set($glossaryMap = {}) 40 + 36 36 #foreach($row in $glossaryRows) 37 37 #set($glossaryFullName = $row[0]) 38 38 #set($glossaryTitle = "$!row[1]") ... ... @@ -48,6 +48,7 @@ 48 48 #end 49 49 #end 50 50 #end 56 + 51 51 ## ---------------------------- 52 52 ## 4. Ищем совпадения 53 53 ## ---------------------------- ... ... @@ -75,7 +75,7 @@ 75 75 #end 76 76 #end 77 77 #end 78 - {{/velocity}}{{velocity output="true"}}84 + 79 79 ## --------------------------- 80 80 ## 5. Выводим таблицу совпадений 81 81 ## ---------------------------- ... ... @@ -83,7 +83,7 @@ 83 83 <table class="wikitable" border="1"> 84 84 <thead> 85 85 <tr> 86 - <th> MLelements</th>92 + <th>Ontology elements</th> 87 87 <th>Glossary terms</th> 88 88 </tr> 89 89 </thead>