Show last authors
1 {{velocity filter="none"}}{{html clean="false" wiki="true"}}
2 #if(!$request.tag) ## no tag specified in the query
3 = Publication Space / Tag Cloud =
4
5 #set ($from = ", BaseObject as obj0, StringProperty as prop0")
6 #set ($where = "obj0.name=doc.fullName and obj0.className='Publications.PublicationClass' and obj0.name<>'Publications.PublicationClassTemplate' and prop0.id.id=obj0.id and prop0.name='status' and prop0.value='Published'")
7 #set ($tagCount = $xwiki.tag.getTagCountForQuery($from, $where))
8
9 (% style='text-align: center' %)(((
10 #foreach ($pubTag in $tagCount.keySet())
11 #set ( $pubCount = $tagCount.get($pubTag) )
12 #if ( $pubCount > 20 ) #set ( $tagSize = "140%" )
13 #elseif ( $pubCount > 10 ) #set ( $tagSize = "130%" )
14 #elseif ( $pubCount > 5 ) #set ( $tagSize = "120%" )
15 #elseif ( $pubCount > 3 ) #set ( $tagSize = "110%" )
16 #elseif ( $pubCount == 3 ) #set ( $tagSize = "105%" )
17 #elseif ( $pubCount == 2 ) #set ( $tagSize = "100%" )
18 #else #set ($tagSize = "90%" )
19 #end
20 #set($urlEscapedTag = $escapetool.url($pubTag))
21 #set($htmlEscapedTag = $escapetool.xml($pubTag))
22 (% style='display:inline-block; padding:0px 2px; font-size:$tagSize' %)((([[$htmlEscapedTag>>Publications.Tags?tag=$urlEscapedTag]])))
23 #end
24 )))
25
26 #else ## one tag specified in the query
27 = Publications / Tag &ldquo;$request.tag&rdquo; =
28
29 #set ( $from = ", BaseObject as obj0, DBStringListProperty as prop0 join prop0.list item, BaseObject as obj1, StringProperty as prop1, LongProperty as prop2" )
30 #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='Publications.PublicationClass' and obj1.name<>'Publications.PublicationClassTemplate' and prop1.id.id=obj1.id and prop1.name='status' and prop1.value='Published' and prop2.id.id=obj1.id and prop2.name = 'year' order by prop2.value desc" )
31 #set ( $sql = $from + " where " + $where )
32 #set($pubFound = $xwiki.searchDocuments($sql))
33 #foreach ($pub in $pubFound)
34 * {{pubLinks}}$pub{{/pubLinks}}
35 #end
36
37 ----
38
39 [[Back to All Publications Tags>>Tags]]
40 #end
41 {{/html}}
42 {{/velocity}}

2011 © aliCE Research Group @ DEIS, Alma Mater Studiorum-Università di Bologna
1.1