Changes for page All Theses

From version 9.1
edited by Andrea Omicini
on 29/06/2023 17:26
Change comment: There is no comment for this version
To version 1.1
edited by Andrea Omicini
on 07/11/2021 22:57
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,0 +1,1 @@
1 +#if($xcontext.language=="it")Tutte le tesi in APICe#{else}All Theses in APICe#end
Content
... ... @@ -1,11 +1,11 @@
1 -= {{stringEngIta eng="All" ita="Tutte"/}} =
1 +{{include reference="Theses.Environment"/}}{{velocity}}
2 +#set( $sql = ", BaseObject as obj, DateProperty as prop where obj.name = doc.fullName and obj.className = 'Theses.ThesisClass' and obj.name <> 'Theses.ThesisClassTemplate' and obj.name <> 'Theses.ThesisTemplate' and prop.id.id = obj.id and prop.name = 'endDate' order by prop.value desc" )
3 +#set( $theses = $xwiki.searchDocuments($sql) )
4 +#set( $thesisNo = $theses.size() )
5 +{{english}}>There are currently **$thesisNo** theses recorded in {{apice /}}{{/english}}{{italian}}>Ci sono attualmente **$thesisNo** tesi registrate in {{apice /}}{{/italian}}
2 2  
3 -{{include reference="Theses.Environment" excludeFirstHeading="true"/}}{{velocity}}
4 -#set( $sql = ", BaseObject as obj, DateProperty as prop where obj.name = doc.fullName and obj.className = '${objectPool}.${objectClass}' and obj.name <> '${objectSpace}.${objectTemplate}' and prop.id.id = obj.id and prop.name = 'end' order by prop.value desc" )
5 -#set( $thesesFound = $xwiki.searchDocuments($sql) )
6 -#set( $thesisNo = $thesesFound.size() )
7 ->**$thesisNo** {{stringEngIta eng='theses' ita='tesi'/}}
8 -
9 -#foreach ( $thesis in $thesesFound )
10 -#if( $foreach.index > 0 ) {{themeTextSecondary}}•{{/themeTextSecondary}} #end{{thesis linked='title'}}$thesis{{/thesis}}#end
7 +#foreach ( $thesis in $theses )
8 + #set( $thesisDoc = $xwiki.getDocument($thesis) )
9 + #set( $thesisObj = $thesisDoc.getObject('Theses.ThesisClass') )
10 +#if ($velocityCount > 1) | #end[[$thesisObj.title>>$thesisDoc]]#if( $thesisObj.endDate != "" ) //($thesisObj.endDate)//#end#if( $thesisDoc.getValue('studentUserName') != "" ) – [[$xwiki.getUserName($thesisDoc.getValue('studentUserName'), false)>>$thesisDoc.getValue('studentUserName')]]#elseif( $thesisObj.studentFirstName != "" && $thesisObj.studentLastName != "" ) – $thesisObj.studentFirstName $thesisObj.studentLastName#end#end
11 11  {{/velocity}}