<
Depuis la version < 5.1 >
modifié par superadmin
sur 2019/10/13 21:36
À la version < 7.1
modifié par superadmin
sur 2021/12/12 21:56
Commentaire de modification : Install extension [org.xwiki.platform:xwiki-platform-tag-ui/13.10]

Résumé

Détails

Icon XWiki.WikiMacroClass[0]
Code de la macro
... ... @@ -31,7 +31,7 @@
31 31  #if ($tagCount.size() > 0)
32 32   ##
33 33   ## Store the minimum and maximum number of occurrences.
34 - #set ($sortedTagCounts = $sorttool.sort($tagCount.values()))
34 + #set ($sortedTagCounts = $collectiontool.sort($tagCount.values()))
35 35   #set ($maxIndex = $sortedTagCounts.size() - 1)
36 36   #set ($minCount = $sortedTagCounts[0])
37 37   #set ($maxCount = $sortedTagCounts[$maxIndex])
... ... @@ -48,12 +48,12 @@
48 48   #set ($secondHalfIntervalSize = $mathtool.div($mathtool.sub($maxCount, $countAverage), $levelsHalf))
49 49   ##
50 50   ## Use a sorted map
51 - #set ($popularityMap = $collectionstool.getSortedMap())
51 + #set ($popularityMap = $collectiontool.sortedMap)
52 52   #set ($previousPopularityMax = $minCount)
53 53   #set ($intervalSize = $firstHalfIntervalSize)
54 54   #set ($halfPassed = false)
55 55   #foreach ($popularityLevel in $popularityLevels)
56 - #if ($velocityCount > $levelsHalf && !$halfPassed)
56 + #if ($foreach.count > $levelsHalf && !$halfPassed)
57 57   #set ($intervalSize = $secondHalfIntervalSize)
58 58   #set ($halfPassed = true)
59 59   #end
This wiki is licensed under a Creative Commons 2.0 license
XWiki 13.10 - Documentation - Conditions