Changes for page All Theses
From version 3.2
edited by Andrea Omicini
on 08/12/2021 01:56
on 08/12/2021 01:56
Change comment:
There is no comment for this version
To version 2.1
edited by Andrea Omicini
on 19/11/2021 17:47
on 19/11/2021 17:47
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,11 +1,12 @@ 1 1 ={{stringEngIta eng="All Theses in " ita="Tutti le tesi in "/}}{{apice/}}= 2 - 3 3 {{velocity}} 4 -#set( $sql = ", BaseObject as obj, DateProperty as prop where obj.name = doc.fullName and obj.className = 'Theses.ThesisClass' and obj.name <> 'Theses.ThesisTemplate' and prop.id.id = obj.id and prop.name = 'endDate' order by prop.value desc" ) 5 -#set( $theses Found= $xwiki.searchDocuments($sql) )6 -#set( $thesisNo = $theses Found.size() )7 ->**$thesisNo** {{stringEngIta eng='theses'ita='tesi'/}}in {{apice /}}3 +#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" ) 4 +#set( $theses = $xwiki.searchDocuments($sql) ) 5 +#set( $thesisNo = $theses.size() ) 6 +{{english}}>There are currently **$thesisNo** theses recorded in {{apice /}}{{/english}}{{italian}}>Ci sono attualmente **$thesisNo** tesi registrate in {{apice /}}{{/italian}} 8 8 9 -#foreach ( $thesis in $thesesFound ) 10 -#if( $velocityCount > 1 ) (% style="color:$theme.textSecondaryColor" %)|(%%) #end{{thesis linked='title'}}$thesis{{/thesis}}#end 8 +#foreach ( $thesis in $theses ) 9 + #set( $thesisDoc = $xwiki.getDocument($thesis) ) 10 + #set( $thesisObj = $thesisDoc.getObject('Theses.ThesisClass') ) 11 +#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}}