Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 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 | ||
| 54 | ---- | ||
| 55 | [[Sandbox.Intersection table of ontology elements.WebHome||target="_blank"]] | ||
| 56 | {{/velocity}} |