Changes for page Available

From version 86.7
edited by Andrea Omicini
on 28/09/2023 23:42
Change comment: There is no comment for this version
To version 86.5
edited by Andrea Omicini
on 28/09/2023 23:33
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -$services.localization.render('available')
1 +$services.localization.render('showcase')
Parent
... ... @@ -1,1 +1,1 @@
1 -WebHome
1 +Theses.WebHome
Content
... ... @@ -1,3 +1,5 @@
1 +[[XWiki>>https://xwiki.org]]
2 +
1 1  {{velocity}}
2 2  {{html clean="false" wiki="true"}}
3 3  #template('apice_url.vm')
... ... @@ -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) )
16 + #if( $personalThesisDocs.size() > 0 )
17 + #set( $personalThesisDoc = $xwiki.getDocument($personalThesisDocs[0]) )
18 + #else
19 + #stop
20 + #end
21 + #if( $personalThesisDoc.maxYears && $personalThesisDoc.maxYears != "" )
22 + #set( $maxPubYears = $personalThesisDoc.display('maxYears','view') )
23 + #end
24 + #if( $personalThesisDoc.firstYear && $personalThesisDoc.firstYear != "" )
25 + #set( $firstYearThesis = $personalThesisDoc.display('firstYear','view') )
26 + #end
27 + #if( $personalThesisDoc.lastYear && $personalThesisDoc.lastYear != "" )
28 + #set( $lastYearThesis = $personalThesisDoc.display('lastYear','view') )
29 + #end
30 + #if( $personalThesisDoc.getValue('statuses').size() > 0 )
31 + #set( $thesisStatuses = $personalThesisDoc.getValue('statuses') )
32 + #end
33 + #if( $personalThesisDoc.getValue('cycles').size() > 0 )
34 + #set( $thesisCycles = $personalThesisDoc.getValue('cycles') )
35 + #end
36 + #if( $personalThesisDoc.getValue('roles').size() > 0 )
37 + #set( $thesisRoles = $personalThesisDoc.getValue('roles') )
38 + #end
14 14   #if( $personalThesisDoc.ams && $personalThesisDoc.ams != "" )
15 15   #set( $showAms = $personalThesisDoc.getValue('ams') )
16 16   #end
... ... @@ -17,13 +17,139 @@
17 17  #### USER SHOWCASE / START
18 18  ##
19 19  ## APICE / START
20 -<div>
21 -</div>
45 +<div><ul>
46 +## CLOUDS / START
47 + #if( $xwiki.exists("${userSpace}.${mainSpace}.Clouds.WebHome") )
48 + <li>
49 + [[$services.localization.render('thesisclouds').toLowerCase()>>${userSpace}.${mainSpace}.Clouds.WebHome]]
50 + </li>
51 + <ul>
52 + #if( $xwiki.exists("${userSpace}.${mainSpace}.Clouds.Tags") )
53 + <li>
54 + [[$services.localization.render('tags').toLowerCase()>>${userSpace}.${mainSpace}.Clouds.Tags]]
55 + </li>
56 + #end
57 + </ul>
58 + #end
59 +## CLOUDS / END
22 22  ##
61 +## PER STATUS / START
62 + #if( $xwiki.exists("${userSpace}.${mainSpace}.PerStatus") )
63 + <li>
64 + $services.localization.render('theses').toLowerCase() [[$services.localization.render('perstatus').toLowerCase()>>${userSpace}.${mainSpace}.PerStatus]]
65 + </li>
66 + <ul><li>
67 + #foreach( $status in $thesisStatuses )
68 + [[{{thesisStatus plural="true" uppercase="false" short='true'}}$status{{/thesisStatus}}>>${userSpace}.${mainSpace}.PerStatus||queryString='status=$status']]#if( !$foreach.last ), #end
69 + #end
70 + </li></ul>
71 + #end
72 +## PER STATUS / END
73 +##
74 +## PER YEAR / START
75 + #if( $xwiki.exists("${userSpace}.${mainSpace}.PerYear") )
76 + <li>
77 + {{thesisStatus plural="true" upperCase="false" short="false"}}completed{{/thesisStatus}} [[{{stringEngIta eng="per year" ita="per anno"/}}>>${userSpace}.${mainSpace}.PerYear]]
78 + </li>
79 + <ul><li>
80 + #foreach( $year in [$lastYearThesis..$firstYearThesis] )
81 + #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
82 + #end
83 + </li></ul>
84 + #end
85 +## PER YEAR / END
86 +##
87 +## PER CYCLE / START
88 + #if( $xwiki.exists("${userSpace}.${mainSpace}.PerCycle") )
89 + <li>
90 + {{thesisStatus plural="true" upperCase="false" short="false"}}completed{{/thesisStatus}} [[$services.localization.render('percycle').toLowerCase()>>${userSpace}.${mainSpace}.PerCycle]]
91 + </li>
92 + <ul><li>
93 + #foreach( $cycle in $thesisCycles )[[{{thesisCycle plural="true" uppercase="false" short='true'}}$cycle{{/thesisCycle}}>>${userSpace}.${mainSpace}.PerCycle||queryString='cycle=$cycle']]#if( !$foreach.last ), #end
94 + #end
95 + </li></ul>
96 + #end
97 +## PER CYCLE / END
98 +##
99 +## PER ROLE / START
100 + #if( $xwiki.exists("${userSpace}.${mainSpace}.PerStatus") )
101 + <li>
102 + $services.localization.render('theses').toLowerCase()
103 + $services.localization.render('perrole').toLowerCase()
104 + <ul><li>
105 + #foreach( $role in $thesisRoles )
106 + [[{{thesisRole plural="false" uppercase="false" short='true'}}$role{{/thesisRole}}>>${userSpace}.${mainSpace}.PerStatus||queryString='role=$role']]#if( !$foreach.last ), #end
107 + #end
108 + </li></ul>
109 + #end
110 +## PER ROLE / END
111 +</ul></div>
112 +##
23 23  #### USER SHOWCASE / END
24 24  #else
25 25  #### GENERAL SHOWCASE / START
26 -<div></div>
116 +<div><ul>
117 +## CLOUDS / START
118 + #if( $xwiki.exists("${mainSpace}.Clouds.WebHome") )
119 + <li>
120 + [[$services.localization.render('thesisclouds').toLowerCase()>>${mainSpace}.Clouds.WebHome]]
121 + </li>
122 + <ul><li>
123 + #set( $comma = false )
124 + #if( $xwiki.exists("${mainSpace}.Clouds.Tags") )
125 + #if( $comma ), #end[[$services.localization.render('tags').toLowerCase()>>${mainSpace}.Clouds.Tags]]#set( $comma = true )
126 + #end
127 + #if( $xwiki.exists("${mainSpace}.Clouds.Supervisors") )
128 + #if( $comma ), #end[[$services.localization.render('supervisors').toLowerCase()>>${mainSpace}.Clouds.Supervisors]]#set( $comma = true )
129 + #end
130 + #if( $xwiki.exists("${mainSpace}.Clouds.Cosupervisors") )
131 + #if( $comma ), #end[[$services.localization.render('cosupervisors').toLowerCase()>>${mainSpace}.Clouds.Cosupervisors]]#set( $comma = true )
132 + #end
133 + </li></ul>
134 + #end
135 +## CLOUDS / END
136 +##
137 +## PER STATUS / START
138 + #if( $xwiki.exists("${mainSpace}.PerStatus") )
139 + <li>
140 + $services.localization.render('theses').toLowerCase() [[$services.localization.render('perstatus').toLowerCase()>>${mainSpace}.PerStatus]]
141 + </li>
142 + <ul><li>
143 + #foreach( $status in $showcaseThesisStatuses )[[{{thesisStatus plural="true" uppercase="false" short='true'}}$status{{/thesisStatus}}>>${mainSpace}.PerStatus||queryString='status=$status']]#if( !$foreach.last ), #end#end
144 + </li></ul>
145 + #end
146 +## PER STATUS / END
147 +##
148 +## PER YEAR / START
149 + #if( $xwiki.exists("${mainSpace}.PerYear") )
150 + <li>
151 +{{thesisStatus plural="true" upperCase="false" short="false"}}completed{{/thesisStatus}} [[$services.localization.render('peryear').toLowerCase()>>${mainSpace}.PerYear]]
152 + </li>
153 + <ul><li>
154 + #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
155 + </li></ul>
156 + #end
157 +## PER YEAR / END
158 +##
159 +## PER CYCLE / START
160 + #if( $xwiki.exists("${mainSpace}.PerCycle") )
161 + <li>
162 + {{thesisStatus plural="true" upperCase="false" short="false"}}completed{{/thesisStatus}} [[$services.localization.render('percycle').toLowerCase()>>${mainSpace}.PerCycle]]
163 + </li>
164 + <ul><li>
165 + #foreach( $cycle in $showcaseThesisCycles )#if( !$foreach.first ), #end[[{{thesisCycle plural="true" uppercase="false" short='true'}}$cycle{{/thesisCycle}}>>${mainSpace}.PerCycle||queryString='cycle=$cycle']]#end
166 + </li></ul>
167 + #end
168 +## PER CYCLE / END
169 +##
170 +## BY CONTENT / START
171 + #if( $xwiki.exists("${mainSpace}.Search") )
172 + <li>
173 + [[$services.localization.render('search').toLowerCase()>>${mainSpace}.Search]] {{stringEngIta eng="theses by content" ita="tesi per contenuto"/}}
174 + </li>
175 + #end
176 +## BY CONTENT / END
177 +</ul></div>
27 27  #### GENERAL SHOWCASE / END
28 28  #end
29 29  {{/html}}