Wiki source code of Elements

Version 2.3 by Artur K. on 2026/03/21 11:42

Hide last authors
Artur K. 2.3 1 {{velocity output="false"}}
Artur K. 2.2 2 #set($children = $doc.getChildrenReferences())
3
4 ## Массивы по типам
5 #set($simpleTypes = [])
6 #set($complexTypes = [])
7 #set($elements = [])
8 #set($attributeGroups = [])
9
10 #foreach ($child in $children)
11 #set($rdoc = $xwiki.getDocument($child))
12 #set($xobject = $rdoc.getObject('SKMS.Ontology.Code.OntologyElementClass'))
13
14 #if($xobject)
15 #set($classType = $!xobject.get('classType'))
16 #set($link = "[[$rdoc.getTitle()>>$rdoc.getDocumentReference()]]")
17 #set($item = {"title": $rdoc.getTitle(), "link": $link})
18
19 #if($classType == 'simpleType')
20 #set($discard = $simpleTypes.add($item))
21 #elseif($classType == 'complexType')
22 #set($discard = $complexTypes.add($item))
23 #elseif($classType == 'element')
24 #set($discard = $elements.add($item))
25 #elseif($classType == 'attributeGroup')
26 #set($discard = $attributeGroups.add($item))
27 #end
28 #end
29 #end
Artur K. 2.3 30 {{/velocity}}{{velocity output="true"}}
Artur K. 2.2 31 #if($xcontext.action != 'edit')
32
33 = simpleType =
34 #foreach ($str in $collectiontool.sort($simpleTypes, ['title']))
35 * $str.link
36 #end
37
38 = complexType =
39 #foreach ($str in $collectiontool.sort($complexTypes, ['title']))
40 * $str.link
41 #end
42
43 = element =
44 #foreach ($str in $collectiontool.sort($elements, ['title']))
45 * $str.link
46 #end
47
48 = attributeGroup =
49 #foreach ($str in $collectiontool.sort($attributeGroups, ['title']))
50 * $str.link
51 #end
52
53 #end
Artur K. 1.1 54 ----
55 [[Sandbox.Intersection table of ontology elements.WebHome||target="_blank"]]
Artur K. 2.2 56 {{/velocity}}
© Semantic R&D Group, 2026