Changes for page ML Elements

Last modified by Artur K. on 2026/06/24 15:27

From version 2.2
edited by Artur K.
on 2026/03/21 11:42
Change comment: There is no comment for this version
To version 2.1
edited by Artur K.
on 2026/03/20 14:40
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,56 +1,3 @@
1 -{{velocity}}
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
30 -
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
1 +{{children/}}
54 54  ----
55 55  [[Sandbox.Intersection table of ontology elements.WebHome||target="_blank"]]
56 -{{/velocity}}
© Semantic R&D Group, 2026