Changes for page Supervisors

From version 82.2
edited by Andrea Omicini
on 15/03/2022 16:25
Change comment: There is no comment for this version
To version 81.1
edited by Andrea Omicini
on 09/03/2022 23:37
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -36,10 +36,12 @@
36 36   #end
37 37   #if( $userSelected )
38 38  >{{stringEngIta eng = "Theses" ita = "Tesi" /}} / **$userFirstName $userLastName**
39 +
39 39   #set( $from = ", BaseObject as obj0, StringProperty as prop0, LargeStringProperty as prop1, LargeStringProperty as prop2, LargeStringProperty as prop3" )
40 40   #set( $where = "obj0.name = doc.fullName and obj0.className = 'Theses.ThesisClass' and obj0.name <> 'Theses.ThesisTemplate' and prop0.id.id = obj0.id and prop1.id.id = obj0.id and prop2.id.id = obj0.id and prop3.id.id = obj0.id and prop0.name = 'status' and lower(prop0.value) = 'completed' and prop1.name = 'supervisors' and prop2.name = 'cosupervisors' and prop3.name = 'contacts' and ( prop1.value like '%$userName%' or prop2.value like '%$userName%' or prop3.value like '%$userName%' )" )
41 41   #else
42 42  >{{stringEngIta eng="Theses" ita="Tesi" /}}
44 +
43 43   #set( $from = ", BaseObject as obj0, StringProperty as prop0" )
44 44   #set( $where = "obj0.name = doc.fullName and obj0.className = 'Theses.ThesisClass' and obj0.name <> 'Theses.ThesisTemplate' and prop0.id.id = obj0.id and prop0.name = 'status' and lower(prop0.value) = 'completed'" )
45 45   #end
... ... @@ -91,7 +91,7 @@
91 91   #end
92 92   #set( $sql = $from + " where " + $where )
93 93   #set( $thesisFound = $xwiki.searchDocuments($sql) )
94 - #set( $thesisFoundNo = $thesisFound.size() )
96 + #set( $thesisFoundNo = $thesisFound.size() )
95 95  >$thesisFoundNo #if( $thesisFoundNo == 1 ){{stringEngIta eng = "Thesis" ita = "tesi" /}}#else{{stringEngIta eng = "Theses" ita = "tesi" /}}#end#if( $request.user ) / **$userFirstName $userLastName**#end
96 96  ## show tag
97 97  (((