Changes for page Supervisors
From version 103.1
edited by Andrea Omicini
on 30/06/2023 00:53
on 30/06/2023 00:53
Change comment:
There is no comment for this version
To version 107.1
edited by Andrea Omicini
on 02/07/2023 13:40
on 02/07/2023 13:40
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -#if($request.tag)$services.localization.render('supervisor').toLowerCase() : $xwiki.getUserName($request.tag,false)#else$services.localization.render('supervisors')#end 1 +#if($request.tag)$services.localization.render('supervisor').toLowerCase() : #if($request.tag.contains('XWiki.'))$xwiki.getUserName($request.tag,false)#else$request.tag#end#else$services.localization.render('supervisors')#end - Content
-
... ... @@ -7,7 +7,7 @@ 7 7 ## no tag parameter --> just the cloud 8 8 ## set query 9 9 #set( $query = ", BaseObject as objThesis, LargeStringProperty as propSupervisors, StringProperty as propStatus, DateProperty as propEnddate 10 - where objThesis.name = doc.fullName and objThesis.className = '${objectSpace}. ${objectClass}' and objThesis.name <> '${objectSpace}.${objectTemplate}' and propSupervisors.id.id = objThesis.id and propStatus.id.id = objThesis.id and propEnddate.id.id = objThesis.id and propSupervisors.name = 'supervisors' and propSupervisors.value <> '' and propStatus.name = 'status' and lower(propStatus.value) = 'completed' and propEnddate.name = 'end' order by propEnddate.value desc" )10 + where objThesis.name = doc.fullName and objThesis.className = '${objectSpace}.Class' and objThesis.name <> '${objectSpace}.Template' and propSupervisors.id.id = objThesis.id and propStatus.id.id = objThesis.id and propEnddate.id.id = objThesis.id and propSupervisors.name = 'supervisors' and propSupervisors.value <> '' and propStatus.name = 'status' and lower(propStatus.value) = 'completed' and propEnddate.name = 'end' order by propEnddate.value desc" ) 11 11 ## execute query 12 12 #set( $itemFound = $xwiki.searchDocuments($query) ) 13 13 #set( $itemFoundNo = $itemFound.size() ) ... ... @@ -56,7 +56,7 @@ 56 56 #else#set( $tagSize = "90%" ) 57 57 #end 58 58 #set( $urlEscapedName = $escapetool.url($name) ) 59 -<span style='font-size:$tagSize; white-space: nowrap'> [[#if( $name.startsWith("XWiki.") )$xwiki.getUserName($name,false)#else$name#end>>$doc|queryString="tag=$urlEscapedName"]]</span><sub class='textprimary' style="font-size: .75em">$nameItemNo</sub>  59 +<span style='font-size:$tagSize; white-space: nowrap'> [[#if( $name.startsWith("XWiki.") )$xwiki.getUserName($name,false)#else$name#end>>$doc||queryString="tag=$urlEscapedName"]]</span><sub class='textprimary' style="font-size: .75em">$nameItemNo</sub>  60 60 #end 61 61 </div> 62 62 ## cloud bottom ... ... @@ -69,10 +69,10 @@ 69 69 ## 70 70 #### TAG PAGE / START 71 71 #set( $query = ", BaseObject as objThesis, LargeStringProperty as propSupervisors, StringProperty as propStatus, DateProperty as propEnddate 72 - where objThesis.name = doc.fullName and objThesis.className = '${objectSpace}. ${objectClass}' and objThesis.name <> '${objectSpace}.${objectTemplate}' and propSupervisors.id.id = objThesis.id and propStatus.id.id = objThesis.id and propEnddate.id.id = objThesis.id and propSupervisors.name = 'supervisors' and propSupervisors.value like '%$request.tag%' and propStatus.name = 'status' and lower(propStatus.value) = 'completed' and propEnddate.name = 'end' order by propEnddate.value desc" )72 + where objThesis.name = doc.fullName and objThesis.className = '${objectSpace}.Class' and objThesis.name <> '${objectSpace}.Template' and propSupervisors.id.id = objThesis.id and propStatus.id.id = objThesis.id and propEnddate.id.id = objThesis.id and propSupervisors.name = 'supervisors' and propSupervisors.value like '%$request.tag%' and propStatus.name = 'status' and lower(propStatus.value) = 'completed' and propEnddate.name = 'end' order by propEnddate.value desc" ) 73 73 ## execute query 74 74 #set( $itemFound = $xwiki.searchDocuments($query) ) 75 - #set( $item FoundNo = $itemFound.size() )75 + #set( $itemNo = $itemFound.size() ) 76 76 ## subtitle 77 77 <div class="mainheader"> 78 78 $itemNo #if( $itemNo > 1)$services.localization.render('theses').toLowerCase()#{else}$services.localization.render('thesis').toLowerCase()#{end}