Changes for page Supervisors

From version 91.1
edited by Andrea Omicini
on 29/01/2023 21:23
Change comment: There is no comment for this version
To version 95.2
edited by Andrea Omicini
on 30/01/2023 15:29
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -14,7 +14,7 @@
14 14  >{{stringEngIta eng="$objectEngPlural" ita= "$objectItaPlural"/}}#if( $oneUser ) / $userFirstName $userLastName#{end}
15 15  ## set query
16 16   #set( $query = ", BaseObject as obj, LargeStringProperty as prop0, StringProperty as prop1, DateProperty as prop2
17 - where obj.name = doc.fullName and obj.className = '${objectSpace}.${objectClass}' and obj.name <> '${objectSpace}.${objectTemplate}' and prop0.id.id = obj.id and prop1.id.id = obj.id and prop2.id.id = obj.id and prop0.name = 'supervisors' #if( $oneUser )and prop0.value like '$userString'#end and prop1.name = 'status' and lower(prop1.value) = 'completed' and prop2.name = 'end' order by prop2.value desc" )
17 + where obj.name = doc.fullName and obj.className = '${objectSpace}.${objectClass}' and obj.name <> '${objectSpace}.${objectTemplate}' and prop0.id.id = obj.id and prop1.id.id = obj.id and prop2.id.id = obj.id and prop0.name = 'supervisors' and prop0.value <> '' and prop1.name = 'status' and lower(prop1.value) = 'completed' and prop2.name = 'end' order by prop2.value desc" )
18 18  ## execute query
19 19   #set( $itemFound = $xwiki.searchDocuments($query) )
20 20   #set( $itemFoundNo = $itemFound.size() )
... ... @@ -24,8 +24,7 @@
24 24   #foreach( $item in $itemFound )
25 25  ## set $doc & $obj
26 26   #set( $itemDoc = $xwiki.getDocument($item) )
27 - #set( $itemObj = $itemDoc.getObject("${objectSpace}.${objectClass}") )
28 - #set( $nameList = $itemObj.getValue("supervisors").split(",") )
27 + #set( $nameList = $itemDoc.getValue("supervisors").split(",") )
29 29  ## set user-item map
30 30   #foreach( $name in $nameList )
31 31  #### build name lists
... ... @@ -79,7 +79,7 @@
79 79  ## talk list
80 80  (((
81 81   #foreach( $item in $itemFound )
82 -[[image:icon:book]] {{thesis}}$item{{/thesis}}
81 +[[image:icon:book]] {{thesis linked="title"}}$item{{/thesis}}
83 83   #end
84 84  )))
85 85  ## thesis list bottom