Changes for page Available
From version 86.8
edited by Andrea Omicini
on 28/09/2023 23:42
on 28/09/2023 23:42
Change comment:
There is no comment for this version
To version 86.3
edited by Andrea Omicini
on 28/09/2023 23:26
on 28/09/2023 23:26
Change comment:
There is no comment for this version
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -$services.localization.render('a vailable')1 +$services.localization.render('showcase') - Parent
-
... ... @@ -1,1 +1,1 @@ 1 -WebHome 1 +Theses.WebHome - Content
-
... ... @@ -11,6 +11,29 @@ 11 11 #set( $query = ", BaseObject as objPersonalThesis, LargeStringProperty as propUser 12 12 where objPersonalThesis.name = doc.fullName and objPersonalThesis.className = '${objectSpace}.Class' and propUser.id.id = objPersonalThesis.id and propUser.name = 'user' and propUser.value = '$userName' " ) 13 13 #set( $personalThesisDocs = $xwiki.searchDocuments($query) ) 14 + #if( $personalThesisDocs.size() > 0 ) 15 + #set( $personalThesisDoc = $xwiki.getDocument($personalThesisDocs[0]) ) 16 + #else 17 + #stop 18 + #end 19 + #if( $personalThesisDoc.maxYears && $personalThesisDoc.maxYears != "" ) 20 + #set( $maxPubYears = $personalThesisDoc.display('maxYears','view') ) 21 + #end 22 + #if( $personalThesisDoc.firstYear && $personalThesisDoc.firstYear != "" ) 23 + #set( $firstYearThesis = $personalThesisDoc.display('firstYear','view') ) 24 + #end 25 + #if( $personalThesisDoc.lastYear && $personalThesisDoc.lastYear != "" ) 26 + #set( $lastYearThesis = $personalThesisDoc.display('lastYear','view') ) 27 + #end 28 + #if( $personalThesisDoc.getValue('statuses').size() > 0 ) 29 + #set( $thesisStatuses = $personalThesisDoc.getValue('statuses') ) 30 + #end 31 + #if( $personalThesisDoc.getValue('cycles').size() > 0 ) 32 + #set( $thesisCycles = $personalThesisDoc.getValue('cycles') ) 33 + #end 34 + #if( $personalThesisDoc.getValue('roles').size() > 0 ) 35 + #set( $thesisRoles = $personalThesisDoc.getValue('roles') ) 36 + #end 14 14 #if( $personalThesisDoc.ams && $personalThesisDoc.ams != "" ) 15 15 #set( $showAms = $personalThesisDoc.getValue('ams') ) 16 16 #end ... ... @@ -17,14 +17,151 @@ 17 17 #### USER SHOWCASE / START 18 18 ## 19 19 ## APICE / START 20 -<div> 21 -$showAms 43 +<div><ul> 44 +## CLOUDS / START 45 + #if( $xwiki.exists("${userSpace}.${mainSpace}.Clouds.WebHome") ) 46 + <li> 47 + [[$services.localization.render('thesisclouds').toLowerCase()>>${userSpace}.${mainSpace}.Clouds.WebHome]] 48 + </li> 49 + <ul> 50 + #if( $xwiki.exists("${userSpace}.${mainSpace}.Clouds.Tags") ) 51 + <li> 52 + [[$services.localization.render('tags').toLowerCase()>>${userSpace}.${mainSpace}.Clouds.Tags]] 53 + </li> 54 + #end 55 + </ul> 56 + #end 57 +## CLOUDS / END 58 +## 59 +## PER STATUS / START 60 + #if( $xwiki.exists("${userSpace}.${mainSpace}.PerStatus") ) 61 + <li> 62 + $services.localization.render('theses').toLowerCase() [[$services.localization.render('perstatus').toLowerCase()>>${userSpace}.${mainSpace}.PerStatus]] 63 + </li> 64 + <ul><li> 65 + #foreach( $status in $thesisStatuses ) 66 + [[{{thesisStatus plural="true" uppercase="false" short='true'}}$status{{/thesisStatus}}>>${userSpace}.${mainSpace}.PerStatus||queryString='status=$status']]#if( !$foreach.last ), #end 67 + #end 68 + </li></ul> 69 + #end 70 +## PER STATUS / END 71 +## 72 +## PER YEAR / START 73 + #if( $xwiki.exists("${userSpace}.${mainSpace}.PerYear") ) 74 + <li> 75 + {{thesisStatus plural="true" upperCase="false" short="false"}}completed{{/thesisStatus}} [[{{stringEngIta eng="per year" ita="per anno"/}}>>${userSpace}.${mainSpace}.PerYear]] 76 + </li> 77 + <ul><li> 78 + #foreach( $year in [$lastYearThesis..$firstYearThesis] ) 79 + #if( $foreach.count < $maxThesisYears || ($foreach.count == $maxThesisYears && $year == $firstYearThesis) )#if( !$foreach.first ), #end[[$year>>${userSpace}.${mainSpace}.PerYear||queryString="year=$year"]]#elseif( $foreach.count == $maxThesisYears ), [[$year–$firstYearThesis>>${userSpace}.${mainSpace}.PerYear||queryString="from=$firstYearThesis&to=$year"]]#end 80 + #end 81 + </li></ul> 82 + #end 83 +## PER YEAR / END 84 +## 85 +## PER CYCLE / START 86 + #if( $xwiki.exists("${userSpace}.${mainSpace}.PerCycle") ) 87 + <li> 88 + {{thesisStatus plural="true" upperCase="false" short="false"}}completed{{/thesisStatus}} [[$services.localization.render('percycle').toLowerCase()>>${userSpace}.${mainSpace}.PerCycle]] 89 + </li> 90 + <ul><li> 91 + #foreach( $cycle in $thesisCycles )[[{{thesisCycle plural="true" uppercase="false" short='true'}}$cycle{{/thesisCycle}}>>${userSpace}.${mainSpace}.PerCycle||queryString='cycle=$cycle']]#if( !$foreach.last ), #end 92 + #end 93 + </li></ul> 94 + #end 95 +## PER CYCLE / END 96 +## 97 +## PER ROLE / START 98 + #if( $xwiki.exists("${userSpace}.${mainSpace}.PerStatus") ) 99 + <li> 100 + $services.localization.render('theses').toLowerCase() 101 + $services.localization.render('perrole').toLowerCase() 102 + <ul><li> 103 + #foreach( $role in $thesisRoles ) 104 + [[{{thesisRole plural="false" uppercase="false" short='true'}}$role{{/thesisRole}}>>${userSpace}.${mainSpace}.PerStatus||queryString='role=$role']]#if( !$foreach.last ), #end 105 + #end 106 + </li></ul> 107 + #end 108 +## PER ROLE / END 109 +</ul></div> 110 +## AMS / START 111 + #template('apice_url.vm') 112 +<div class="mainheader"> 113 + in AMS 114 +</div><div class="menugenericbody"> 115 +## #set( $amsuserurl = $amslaureaUrl + $userLastName + "=3A$userFirstName=3A=3A/" ) 116 +## $amsuserurl 117 +## [[AMS Laurea>>$amsuserurl||target="_blank"]] 118 +## <span class="textsecondary"> • </span> 119 +## [[AMS Dottorato>>${amsdottoratoUrl}${userLastName}=3A${userFirstName}=3A=3A.html||target="_blank"]] 22 22 </div> 121 +## AMS / END 23 23 ## 24 24 #### USER SHOWCASE / END 25 25 #else 26 26 #### GENERAL SHOWCASE / START 27 -<div></div> 126 +<div><ul> 127 +## CLOUDS / START 128 + #if( $xwiki.exists("${mainSpace}.Clouds.WebHome") ) 129 + <li> 130 + [[$services.localization.render('thesisclouds').toLowerCase()>>${mainSpace}.Clouds.WebHome]] 131 + </li> 132 + <ul><li> 133 + #set( $comma = false ) 134 + #if( $xwiki.exists("${mainSpace}.Clouds.Tags") ) 135 + #if( $comma ), #end[[$services.localization.render('tags').toLowerCase()>>${mainSpace}.Clouds.Tags]]#set( $comma = true ) 136 + #end 137 + #if( $xwiki.exists("${mainSpace}.Clouds.Supervisors") ) 138 + #if( $comma ), #end[[$services.localization.render('supervisors').toLowerCase()>>${mainSpace}.Clouds.Supervisors]]#set( $comma = true ) 139 + #end 140 + #if( $xwiki.exists("${mainSpace}.Clouds.Cosupervisors") ) 141 + #if( $comma ), #end[[$services.localization.render('cosupervisors').toLowerCase()>>${mainSpace}.Clouds.Cosupervisors]]#set( $comma = true ) 142 + #end 143 + </li></ul> 144 + #end 145 +## CLOUDS / END 146 +## 147 +## PER STATUS / START 148 + #if( $xwiki.exists("${mainSpace}.PerStatus") ) 149 + <li> 150 + $services.localization.render('theses').toLowerCase() [[$services.localization.render('perstatus').toLowerCase()>>${mainSpace}.PerStatus]] 151 + </li> 152 + <ul><li> 153 + #foreach( $status in $showcaseThesisStatuses )[[{{thesisStatus plural="true" uppercase="false" short='true'}}$status{{/thesisStatus}}>>${mainSpace}.PerStatus||queryString='status=$status']]#if( !$foreach.last ), #end#end 154 + </li></ul> 155 + #end 156 +## PER STATUS / END 157 +## 158 +## PER YEAR / START 159 + #if( $xwiki.exists("${mainSpace}.PerYear") ) 160 + <li> 161 +{{thesisStatus plural="true" upperCase="false" short="false"}}completed{{/thesisStatus}} [[$services.localization.render('peryear').toLowerCase()>>${mainSpace}.PerYear]] 162 + </li> 163 + <ul><li> 164 + #foreach( $year in [$lastYearThesis..$firstYearThesis] )#if( $foreach.count < $maxThesisYears || ($foreach.count == $maxThesisYears && $year == $firstYearThesis) )#if( !$foreach.first ), #end[[$year>>${mainSpace}.PerYear||queryString="year=$year"]]#elseif( $foreach.count == $maxThesisYears ), [[$year–$firstYearThesis>>${mainSpace}.PerYear||queryString="from=$firstYearThesis&to=$year"]]#end#end 165 + </li></ul> 166 + #end 167 +## PER YEAR / END 168 +## 169 +## PER CYCLE / START 170 + #if( $xwiki.exists("${mainSpace}.PerCycle") ) 171 + <li> 172 + {{thesisStatus plural="true" upperCase="false" short="false"}}completed{{/thesisStatus}} [[$services.localization.render('percycle').toLowerCase()>>${mainSpace}.PerCycle]] 173 + </li> 174 + <ul><li> 175 + #foreach( $cycle in $showcaseThesisCycles )#if( !$foreach.first ), #end[[{{thesisCycle plural="true" uppercase="false" short='true'}}$cycle{{/thesisCycle}}>>${mainSpace}.PerCycle||queryString='cycle=$cycle']]#end 176 + </li></ul> 177 + #end 178 +## PER CYCLE / END 179 +## 180 +## BY CONTENT / START 181 + #if( $xwiki.exists("${mainSpace}.Search") ) 182 + <li> 183 + [[$services.localization.render('search').toLowerCase()>>${mainSpace}.Search]] {{stringEngIta eng="theses by content" ita="tesi per contenuto"/}} 184 + </li> 185 + #end 186 +## BY CONTENT / END 187 +</ul></div> 28 28 #### GENERAL SHOWCASE / END 29 29 #end 30 30 {{/html}}