Modifiche per il documento Relatori

Dalla versione 101.1
modificato da Andrea Omicini
il 30/06/2023 00:51
Cambia il commento: Nessun commento per questa versione
Alla versione 109.1
modificato da Andrea Omicini
il 03/07/2023 18:41
Cambia il commento: Nessun commento per questa versione

Summary

Details

Page properties
Titolo
... ... @@ -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
... ... @@ -1,6 +1,7 @@
1 1  {{velocity}}
2 2  {{html clean="false" wiki="true"}}
3 -#template('apice_theses.vm')
3 +#template('apice_macros.vm')
4 +#objectspace()
4 4  ##
5 5  #### tag parameter possibly brings name to be used as tag
6 6  #if( !$request.tag )
... ... @@ -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" )
11 + 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() )
... ... @@ -55,7 +55,8 @@
55 55   #elseif( $nameItemNo == 2 )#set( $tagSize = "100%" )
56 56   #else#set( $tagSize = "90%" )
57 57   #end
58 -<span style='font-size:$tagSize; white-space: nowrap'>&ensp;[[#if( $name.startsWith("XWiki.") )$xwiki.getUserName($name,false)#else$name#end>>$doc]]</span><sub class='textprimary' style="font-size: .75em">$nameItemNo</sub>&ensp;
59 + #set( $urlEscapedName = $escapetool.url($name) )
60 +<span style='font-size:$tagSize; white-space: nowrap'>&ensp;[[#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>&ensp;
59 59   #end
60 60  </div>
61 61  ## cloud bottom
... ... @@ -68,13 +68,18 @@
68 68  ##
69 69  #### TAG PAGE / START
70 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 + 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" )
72 72  ## execute query
73 73   #set( $itemFound = $xwiki.searchDocuments($query) )
74 - #set( $itemFoundNo = $itemFound.size() )
76 + #set( $itemNo = $itemFound.size() )
75 75  ## subtitle
76 76  <div class="mainheader">
77 -$itemNo #if( $itemNo > 1)$services.localization.render('theses').toLowerCase()#{else}$services.localization.render('thesis').toLowerCase()#{end}
79 + $itemNo
80 + #if( $itemNo > 1)
81 + $services.localization.render('theses').toLowerCase()
82 + #else
83 + $services.localization.render('thesis').toLowerCase()
84 + #end
78 78  </div>
79 79  ## thesis list
80 80   #template('apice_thesis_macros.vm')