Изменения документа 01. Инструменты СУЗ

Редактировал(а) Мария Дужая 2025/07/24 15:44

От версии 2.1
отредактировано Admin Admin
на 2022/12/01 01:28
Изменить комментарий: К данной версии нет комментариев
К версии 3.1
отредактировано Admin Admin
на 2022/12/20 08:51
Изменить комментарий: Imported from XAR

Сводка

Подробности

Свойства страницы
Название
... ... @@ -1,1 +1,1 @@
1 -02. Инструменты СУЗ
1 +Инструменты СУЗ
Содержимое
... ... @@ -1,0 +1,31 @@
1 +{{velocity}}
2 +#set($sortLetter = 'A')
3 +#set($isFirstPub = true)
4 +#set($pubRefs = $doc.getChildrenReferences())
5 +#set($sortedMap = $collectiontool.getSortedMap())
6 +#foreach($pubRef in $pubRefs)
7 + #set($pub = $xwiki.getDocument($pubRef))
8 + #set($title = $pub.getTitle())
9 + #if($title)
10 + #set($foo = $sortedMap.put($title, $pubRef))
11 + #end
12 +#end
13 +#foreach($key in $sortedMap.keySet())
14 + #set($title = $key)
15 + #set($ref = $sortedMap.get($key))
16 + #if(!$title.length().equals(0))
17 + #if($title.charAt(0).equals($sortLetter))
18 + #if($isFirstPub)
19 + * $sortLetter
20 + #set($isFirstPub = false)
21 + #end
22 + ** [[$title>>$ref]]
23 + #else
24 + #set($sortLetter = $title.charAt(0))
25 + #set($isFirstPub = false)
26 + * $sortLetter
27 + ** [[$title>>$ref]]
28 + #end
29 + #end
30 +#end
31 +{{/velocity}}