Changes for page Supervisors
From version 95.2
edited by Andrea Omicini
on 30/01/2023 15:29
on 30/01/2023 15:29
Change comment:
There is no comment for this version
To version 101.1
edited by Andrea Omicini
on 30/06/2023 00:51
on 30/06/2023 00:51
Change comment:
There is no comment for this version
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,0 +1,1 @@ 1 +#if($request.tag)$services.localization.render('supervisor').toLowerCase() : $xwiki.getUserName($request.tag,false)#else$services.localization.render('supervisors')#end - Default language
-
... ... @@ -1,1 +1,0 @@ 1 -en - Content
-
... ... @@ -1,20 +1,13 @@ 1 -= {{velocity}}#if( $request.tag )(% style="color:$theme.textSecondaryColor" %)supervisor : (%%){{namesFromUsers linked='false'}}$request.tag{{/namesFromUsers}}#{else}{{stringEngIta eng="Supervisors" ita= "Supervisori"/}}#{end}{{/velocity}} = 2 - 3 -{{include reference="Theses.Environment" excludeFirstHeading="true"/}}{{velocity}} 4 -## thesis page with menus 5 -#set( $thesisMenu = true ) 1 +{{velocity}} 2 +{{html clean="false" wiki="true"}} 3 +#template('apice_theses.vm') 6 6 ## 7 7 #### tag parameter possibly brings name to be used as tag 8 -## no tag parameter --> just the cloud 9 -## yes tag parameter --> the item list 10 -## 11 -## NO TAG PARAMETER 12 12 #if( !$request.tag ) 13 -## subtitle 14 ->{{stringEngIta eng="$objectEngPlural" ita= "$objectItaPlural"/}}#if( $oneUser ) / $userFirstName $userLastName#{end} 7 +## no tag parameter --> just the cloud 15 15 ## set query 16 - #set( $query = ", BaseObject as obj, LargeStringProperty as prop 0, StringProperty as prop1, DateProperty as prop217 - 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 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" ) 18 18 ## execute query 19 19 #set( $itemFound = $xwiki.searchDocuments($query) ) 20 20 #set( $itemFoundNo = $itemFound.size() ) ... ... @@ -45,8 +45,11 @@ 45 45 ## END EACH ITEM IN MAP 46 46 ## final values: $nameMap 47 47 #set( $nameFoundNo = $nameMap.keySet().size() ) 48 -## tag cloud 49 -(% 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'> 50 50 #foreach( $name in $nameMap.keySet() ) 51 51 #set( $nameItemNo = $nameMap[$name].size() ) 52 52 #if( $nameItemNo > 40 )#set( $tagSize = "140%" ) ... ... @@ -59,29 +59,38 @@ 59 59 #elseif( $nameItemNo == 2 )#set( $tagSize = "100%" ) 60 60 #else#set( $tagSize = "90%" ) 61 61 #end 62 -[[(% 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 63 -))) 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> 64 64 ## cloud bottom 65 - (%style='font-style:oblique;font-size:smaller;text-align:right;color:$theme.textSecondaryColor' %)(((66 -[ $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 ]67 - )))68 -### #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 69 69 #else 70 -## set query 71 - #set( $query = ", BaseObject as obj, LargeStringProperty as prop0, StringProperty as prop1, DateProperty as prop2 72 - 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" ) 73 73 ## execute query 74 74 #set( $itemFound = $xwiki.searchDocuments($query) ) 75 75 #set( $itemFoundNo = $itemFound.size() ) 76 76 ## subtitle 77 ->$itemFoundNo #if( $itemFoundNo == 1 ){{stringEngIta eng="$objectEngSingular.toLowerCase()" ita="$objectItaSingular.toLowerCase()"/}}#else{{stringEngIta eng="$objectEngPlural.toLowerCase()" ita="$objectItaPlural.toLowerCase()"/}}#end#if( $request.user ) / {{namesFromUsers linked='false'}}$request.user{{/namesFromUsers}}#end#if( $request.name && $request.surname ) / {{namesFromUsers linked='false'}}$request.name $request.surname{{/namesFromUsers}}#end 78 -## talk list 79 -((( 76 +<div class="mainheader"> 77 +$itemNo #if( $itemNo > 1)$services.localization.render('theses').toLowerCase()#{else}$services.localization.render('thesis').toLowerCase()#{end} 78 +</div> 79 +## thesis list 80 + #template('apice_thesis_macros.vm') 80 80 #foreach( $item in $itemFound ) 81 -[[image:icon:book]] {{thesis linked="title"}}$item{{/thesis}} 82 +<div> 83 +[[image:icon:book]] #thesislinked($item) 84 +</div> 82 82 #end 83 -))) 84 84 ## thesis list bottom 85 -(% style='font-style:oblique;font-size:smaller;text-align:right;color:$theme.textSecondaryColor' %)((([ [[{{stringEngIta eng="supervisor cloud" ita="nuvola supervisori" /}}>>$doc||]] / {{stringEngIta eng = "$objectEngPlural.toLowerCase()" ita = "$objectItaPlural.toLowerCase()"/}} ])))(%%) 87 +<div class="menuqualifier" style="text-align: right"> 88 +[ [[{{stringEngIta eng="supervisor cloud" ita="nuvola relatori" /}}>>$doc.name]] / $services.localization.render('theses').toLowerCase() ] 89 +</div> 86 86 #end 87 -{{/velocity}} 91 +{{/html}} 92 +{{/velocity}}{{pageDisplay sort="objectservice"/}}