Show last authors
1 {{velocity}}
2 #set( $talkMenu = true )
3 #if( !$request.tag )
4 ## no tag specified in the query
5 >**Tag Cloud** / {{stringEngIta eng="Talks" ita="Presentazioni" /}}
6 #set( $from = ", BaseObject as obj0" )
7 #set( $where = "obj0.name = doc.fullName and obj0.className = 'Talks.TalkClass' and obj0.name <> 'Talks.TalkClassTemplate' and obj0.name <> 'Talks.TalkTemplate'" )
8 #set( $tagCount = $xwiki.tag.getTagCountForQuery($from, $where) )
9 #set( $tagInstanceNo = 0 )
10 #set( $tagNo = 0 )
11 (% style='text-align: center' %)(((
12 #foreach( $talkTag in $tagCount.keySet() )
13 #set ( $talkCount = $tagCount.get($talkTag) )
14 #set( $tagInstanceNo = $tagInstanceNo + $talkCount )
15 #set( $tagNo = $tagNo + 1 )
16 #if( $talkCount > 20 )#set( $tagSize = "140%" )
17 #elseif( $talkCount > 10 )#set( $tagSize = "130%" )
18 #elseif( $talkCount > 5 )#set( $tagSize = "120%" )
19 #elseif( $talkCount > 3 )#set( $tagSize = "110%" )
20 #elseif( $talkCount == 3 )#set( $tagSize = "105%" )
21 #elseif( $talkCount == 2 )#set( $tagSize = "100%" )
22 #else#set($tagSize = "90%" )
23 #end
24 #set($urlEscapedTag = $escapetool.url($talkTag))
25 #set($htmlEscapedTag = $escapetool.xml($talkTag))
26 (% style='font-size:$tagSize' %) [[$talkTag>>Talks.Tags||queryString="tag=$urlEscapedTag"]](% style='font-style:oblique;color:silver;font-size:75%' %),,($talkCount),,(%%) (%%)#end
27 )))
28 (% style='font-style:oblique;font-size:smaller;text-align:right;color:gray' %)((([ $tagInstanceNo / $tagNo {{stringEngIta eng = "tags" ita = "tag"/}} ])))(%%)
29 #else
30 ## one tag specified in the query
31 #set( $from = ", BaseObject as obj0, DBStringListProperty as prop0 join prop0.list item, BaseObject as obj1, DateProperty as prop1" )
32 #set( $where = "obj0.className='XWiki.TagClass' and obj0.name=doc.fullName and obj0.id=prop0.id.id and prop0.id.name='tags' and lower(item)=lower('$request.tag') and obj1.name=doc.fullName and obj1.className='Talks.TalkClass' and obj1.name<>'Talks.TalkClassTemplate' and obj1.name<>'Talks.TalkTemplate' and prop1.id.id=obj1.id and prop1.name = 'date' order by prop1.value desc" )
33 #set( $sql = $from + " where " + $where )
34 #set( $talkFound = $xwiki.searchDocuments($sql) )
35 #set( $talkNo = $talkFound.size() )
36 >Tag “**$request.tag**” / $talkNo #if( $talkNo == 1 ){{stringEngIta eng = "Talk" ita = "presentazione" /}}#else{{stringEngIta eng = "Talks" ita = "presentazioni" /}}#end
37 (((
38 #foreach ($talk in $talkFound)
39 * {{talk linked='title'}}$talk{{/talk}}
40 #end
41 )))
42 (% style='font-style:oblique;font-size:smaller;text-align:right;color:gray' %)((([ [[tag cloud>>Tags]] / {{stringEngIta eng = "talks" ita = "presentazioni"/}} ])))(%%)
43
44 #end
45 {{/velocity}}
Partita IVA: 01131710376 - Copyright © 2008-2021 APICe@DISI Research Group - PRIVACY