Changes for page Supervisors

From version 2.1
edited by Andrea Omicini
on 09/04/2021 15:20
Change comment: Document converted from syntax xwiki/2.0 to syntax xwiki/2.1
To version 13.1
edited by Andrea Omicini
on 25/06/2021 00:11
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,0 @@
1 -Tags
Content
... ... @@ -1,7 +1,6 @@
1 -{{velocity filter="none"}}
2 -{{html clean="false" wiki="true"}}
1 +{{velocity filter="none"}}{{html clean="false" wiki="true"}}
3 3  #if(!$request.tag) ## no tag specified in the query
4 -= Thesis Space / Tag Cloud =
3 += {{stringEngIta eng="Theses" ita="Tesi" /}} / Tag Cloud =
5 5  
6 6  #set ($from = ", BaseObject as obj0")
7 7  #set ($where = "obj0.name=doc.fullName and obj0.className='Theses.ThesisClass' and obj0.name<>'Theses.ThesisClassTemplate'")
... ... @@ -20,24 +20,24 @@
20 20   #end
21 21   #set($urlEscapedTag = $escapetool.url($thesisTag))
22 22   #set($htmlEscapedTag = $escapetool.xml($thesisTag))
23 - (% style='display:inline-block; padding:0px 2px; font-size:$tagSize' %)((([[$htmlEscapedTag>>Theses.Tags?tag=$urlEscapedTag]])))
22 + (% style='display:inline-block; padding:0px 2px; font-size:$tagSize' %)((([[$htmlEscapedTag>>Theses.Tags||queryString="tag=$urlEscapedTag"]])))
24 24  #end
25 25  )))
26 26  
27 27  #else ## one tag specified in the query
28 -= Theses / Tag &ldquo;$request.tag&rdquo; =
29 29  
30 30  #set ( $from = ", BaseObject as obj0, DBStringListProperty as prop0 join prop0.list item, BaseObject as obj1, DateProperty as prop1" )
31 31  #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='Theses.ThesisClass' and obj1.name<>'Theses.ThesisClassTemplate' and prop1.id.id=obj1.id and prop1.name = 'endDate' order by prop1.value desc" )
32 32  #set ( $sql = $from + " where " + $where )
33 -#set($thesisFound = $xwiki.searchDocuments($sql))
34 -#foreach ($thesis in $thesisFound)
35 -* [[$thesis]]
36 -#end
31 +#set($thesisFound = $xwiki.searchDocuments($sql)) // //
32 +> Tag “**$request.tag**” / {{stringEngIta eng = "Theses" ita = "Tesi" /}} // //
33 +#foreach ($thesis in $thesisFound)#set($thesisDoc = $xwiki.getDocument($thesis))
34 +* #thesisTitleLink($thesis)#if( $thesisDoc.getValue("studentUserName") != "" || $thesisDoc.getValue("studentName") != "" ) //(#thesisAuthorLink($thesis)#if( $thesisDoc.display("endDate") != "" ), #thesisYear($thesis)#end)//#end
37 37  
38 -----
36 +#end
39 39  
40 -[[Back to All Theses Tags>>Tags]]
38 +(% style='text-align: right' %)((( //[{{stringEngIta eng="back to" ita="torna alla" /}} [[tag cloud>>ThesisTags]]]// )))(%%)
39 +
41 41  #end
42 42  {{/html}}
43 43  {{/velocity}}