Changes for page Supervisors
From version 97.2
edited by Andrea Omicini
on 30/06/2023 00:29
on 30/06/2023 00:29
Change comment:
There is no comment for this version
To version 99.1
edited by Andrea Omicini
on 30/06/2023 00:44
on 30/06/2023 00:44
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,14 +1,13 @@ 1 1 {{velocity}} 2 2 {{html clean="false" wiki="true"}} 3 -#template('apice_publications.vm') 4 -#template('apice_user_param.vm') 3 +#template('apice_theses.vm') 5 5 ## 6 6 #### tag parameter possibly brings name to be used as tag 7 7 #if( !$request.tag ) 8 8 ## no tag parameter --> just the cloud 9 9 ## set query 10 - #set( $query = ", BaseObject as obj, LargeStringProperty as prop 0, StringProperty as prop1, DateProperty as prop211 - where obj.name = doc.fullName and obj.className = '${objectSpace}.${objectClass}' and obj.name <> '${objectSpace}.${objectTemplate}' and prop 0.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" )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 prop2.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" ) 12 12 ## execute query 13 13 #set( $itemFound = $xwiki.searchDocuments($query) ) 14 14 #set( $itemFoundNo = $itemFound.size() ) ... ... @@ -39,8 +39,11 @@ 39 39 ## END EACH ITEM IN MAP 40 40 ## final values: $nameMap 41 41 #set( $nameFoundNo = $nameMap.keySet().size() ) 42 -## tag cloud 43 -(% style='text-align:center' %)((( 41 +### CLOUD PAGE / START 42 +<div class="mainheader"> 43 + $services.localization.render('theses').toLowerCase() 44 +</div> 45 +<div style='text-align: center'> 44 44 #foreach( $name in $nameMap.keySet() ) 45 45 #set( $nameItemNo = $nameMap[$name].size() ) 46 46 #if( $nameItemNo > 40 )#set( $tagSize = "140%" ) ... ... @@ -53,17 +53,20 @@ 53 53 #elseif( $nameItemNo == 2 )#set( $tagSize = "100%" ) 54 54 #else#set( $tagSize = "90%" ) 55 55 #end 56 -[[(% style='font-size:$tagSize; white-space: nowrap' %){{namesFromUsers linked='false'}}$name{{/namesFromUsers}}(%%)>>$doc||queryString='tag=$name']](% style='font-style:normal;color:$theme.textPrimaryColor;font-size:75%' %),,$nameItemNo,, (%%) #end 57 -))) 58 +<span style='font-size:$tagSize; white-space: nowrap'> [[#if( $name.startsWith("XWiki.") )$xwiki.getUserName($name,false)#else$name#end>>$doc]]</span><sub class='textprimary' style="font-size: .75em">$nameItemNo</sub>  59 + #end 60 +</div> 58 58 ## cloud bottom 59 - (%style='font-style:oblique;font-size:smaller;text-align:right;color:$theme.textSecondaryColor' %)(((60 -[ $nameFoundNo #if( $nameFoundNo == 1 ) {{stringEngItag="supervisor" ita="supervisore"/}}#else{{stringEngItag="supervisors" ita="supervisori"/}}#end / $itemFoundNo #if( $itemFoundNo == 1 ){{stringEngItaeng="$objectEngSingular.toLowerCase()" ita="$objectItaSingular.toLowerCase()"/}}#else{{stringEngItaeng = "$objectEngPlural.toLowerCase()" ita="$objectItaPlural.toLowerCase()"/}}#end ]61 - )))62 -### #YESTAGPARAMETER62 +<div class="menuqualifier" style="text-align: right"> 63 +[ $nameFoundNo #if( $nameFoundNo == 1 )$services.localization.render('supervisor').toLowerCase()#{else}$services.localization.render('supervisors').toLowerCase()#end / $itemFoundNo #if( $itemFoundNo == 1 )$services.localization.render('thesis').toLowerCase()#{else}$services.localization.render('theses').toLowerCase()#end ] 64 +</div> 65 +### CLOUD PAGE / END 63 63 #else 64 -## set query 65 - #set( $query = ", BaseObject as obj, LargeStringProperty as prop0, StringProperty as prop1, DateProperty as prop2 66 - 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 like '%$request.tag%' and prop1.name = 'status' and lower(prop1.value) = 'completed' and prop2.name = 'end' order by prop2.value desc" ) 67 +## yes tag parameter --> the item list 68 +## 69 +#### TAG PAGE / START 70 + #set( $query = ", BaseObject as objThesis, LargeStringProperty as propSupervisors, StringProperty as propStatus, DateProperty as propEnddate 71 + 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" ) 67 67 ## execute query 68 68 #set( $itemFound = $xwiki.searchDocuments($query) ) 69 69 #set( $itemFoundNo = $itemFound.size() )