Changes for page Available

From version 61.2
edited by Andrea Omicini
on 30/01/2023 00:57
Change comment: There is no comment for this version
To version 63.1
edited by Andrea Omicini
on 30/06/2023 12:09
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,0 +1,1 @@
1 +$services.localization.render('showcase')
Content
... ... @@ -1,9 +1,51 @@
1 -= {{italiano}}Vetrina{{/italiano}}{{english}}Showcase{{/english}} =
2 -
3 -{{include reference="Theses.Environment" excludeFirstHeading="true"/}}{{velocity}}
4 -#set( $thesisMenu = true )
1 +{{velocity}}
2 +{{html clean="false" wiki="true"}}
3 +#template('apice_theses.vm')
4 +#template('apice_macros.vm')
5 5  ##
6 -#if( !$userName || $userName == "" || !$userSpace || $userSpace == "" || !$userFullname || $userFullname == "" )
6 +#isuserspace()
7 +#if( $isUserSpace )
8 + #template('apice_thesis_personal.vm')
9 + #userspace()
10 +## user space variables
11 + #set( $query = ", BaseObject as objPersonalPub, LargeStringProperty as propUser
12 + where objPersonalPub.name = doc.fullName and objPersonalPub.className = '$objectSpace.$objectClass' and propUser.id.id = objPersonalPub.id and propUser.name = 'user' and propUser.value = '$userName' " )
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 + #set( $thesisAms = $personalThesisDoc.getValue('showAms') )
35 +#### USER SHOWCASE / START
36 +##
37 +## set control varibles
38 +## CLOUDS / START
39 + #if( $xwiki.exists("${userSpace}.${mainSpace}.Clouds.WebHome") )
40 +* {{english}}thesis{{/english}} [[{{stringEngIta eng="clouds" ita="nuvole"/}}>>${userSpace}.${mainSpace}.Clouds.WebHome]] {{italiano}}delle tesi{{/italiano}}
41 + #if( $xwiki.exists("${userSpace}.${mainSpace}.Clouds.Tags") )
42 +** [[$services.localization.render('tags')>>${userSpace}.${mainSpace}.Clouds.Tags]]
43 + #end
44 + #end
45 +## CLOUDS / END
46 +##
47 +#### USER SHOWCASE / END
48 +#else
7 7  #### GENERAL SHOWCASE / START
8 8  ##
9 9  ## set control variables
... ... @@ -63,83 +63,6 @@
63 63  ## BY CONTENT / END
64 64  ##
65 65  #### GENERAL SHOWCASE / END
66 -#else
67 -#### USER SHOWCASE / START
68 -##
69 -## set control varibles
70 -##
71 -#if( $showAvailableTheses )
72 - #set( $statuses = $allThesisStatuses )
73 -#else
74 - #set( $statuses = $workingThesisStatuses )
75 75  #end
76 -#if( $showPhDTheses )
77 - #set( $cycles = $allThesisCycles )
78 -#else
79 - #set( $cycles = $lowThesisCycles )
80 -#end
81 -##
82 -### APICE / START
83 -#if( $apiceTheses )
84 -##
85 -## CLOUDS / START
86 - #if( $xwiki.exists("${userSpace}.${objectSpace}.Clouds.WebHome") )
87 -* {{english}}thesis{{/english}} [[{{stringEngIta eng="clouds" ita="nuvole"/}}>>${userSpace}.${objectSpace}.Clouds.WebHome]] {{italiano}}delle tesi{{/italiano}}
88 - #if( $xwiki.exists("${userSpace}.${objectSpace}.Clouds.Tags") )
89 -** [[{{stringEngIta eng="tags" ita="tag" /}}>>${userSpace}.${objectSpace}.Clouds.Tags]]
90 - #end
91 - #end
92 -## CLOUDS / END
93 -##
94 -## PER STATUS / START
95 - #if( $xwiki.exists("${userSpace}.${objectSpace}.PerStatus") )
96 -* {{stringEngIta eng="theses" ita="tesi"/}} [[{{stringEngIta eng="per status" ita="per stato"/}}>>${userSpace}.${objectSpace}.PerStatus]]
97 - #foreach( $status in $statuses )
98 -#if( !$foreach.first ), #{else}** #end[[{{thesisStatus plural="true" uppercase="false" short='true'}}$status{{/thesisStatus}}>>${userSpace}.${objectSpace}.PerStatus||queryString='status=$status']]#end
99 -
100 - #end
101 -## PER STATUS / END
102 -##
103 -## PER YEAR / START
104 - #if( $xwiki.exists("${userSpace}.${objectSpace}.PerYear") )
105 -* {{thesisStatus plural="true" upperCase="false" short="false"}}completed{{/thesisStatus}} [[{{stringEngIta eng="per year" ita="per anno"/}}>>${userSpace}.${objectSpace}.PerYear]]
106 -** #foreach( $year in [$lastYearThesis..$firstYearThesis] )#if( $foreach.count < $maxThesisYears || ($foreach.count == $maxThesisYears && $year == $firstYearThesis) )#if( !$foreach.first ), #end[[$year>>${userSpace}.${objectSpace}.PerYear||queryString="year=$year"]]#elseif( $foreach.count == $maxThesisYears ), [[$year–$firstYearThesis>>${userSpace}.${objectSpace}.PerYear||queryString="from=$firstYearThesis&to=$year"]]#end#end
107 -
108 - #end
109 -## PER YEAR / END
110 -##
111 -## PER CYCLE / START
112 - #if( $xwiki.exists("${userSpace}.${objectSpace}.PerCycle") )
113 -* {{thesisStatus plural="true" upperCase="false" short="false"}}completed{{/thesisStatus}} [[{{stringEngIta eng="per cycle" ita="per livello"/}}>>${userSpace}.${objectSpace}.PerCycle]]
114 -** #foreach( $cycle in $cycles )
115 -#if( !$foreach.first ), #end[[{{thesisCycle plural="true" uppercase="false" short='true'}}$cycle{{/thesisCycle}}>>${userSpace}.${objectSpace}.PerCycle||queryString='cycle=$cycle']]#end
116 -
117 - #end
118 -## PER CYCLE / END
119 -##
120 -## PER ROLE / START
121 - #if( $xwiki.exists("${userSpace}.${objectSpace}.PerStatus") )
122 -##* {{stringEngIta eng="theses" ita="tesi"/}} [[{{stringEngIta eng="per status & role" ita="per stato e ruolo"/}}>>${userSpace}.${objectSpace}.PerStatus]]
123 -* {{stringEngIta eng="theses" ita="tesi"/}} {{stringEngIta eng="per role" ita="per ruolo"/}}
124 - #foreach( $role in $allThesisRoles )
125 -#if( !$foreach.first ), #{else}** #end[[{{thesisRole plural="false" uppercase="false" short='true'}}$role{{/thesisRole}}>>${userSpace}.${objectSpace}.PerStatus||queryString='role=$role']]#end
126 -
127 - #end
128 -## PER ROLE / END
129 - #end
130 -### APICE / END
131 -##
132 -## OTHER / START
133 - #if( $amsTheses )
134 -> In AMS
135 -##
136 -* [[AMS Laurea>>http://amslaurea.unibo.it/view/relatore/$userLastName=3A$userFirstName=3A=3A/||target="_blank"]]
137 - #if( $showPhDTheses )
138 -* [[AMS Dottorato>>http://amsdottorato.unibo.it/view/relatore/$userLastName=3A$userFirstName=3A=3A.html||target="_blank"]]
139 - #end
140 - #end
141 -## OTHER / END
142 -##
143 -#### USER SHOWCASE / END
144 -#end
145 -{{/velocity}}
109 +{{/html}}
110 +{{/velocity}}{{pageDisplay sort="objectservice"/}}