Changes for page Available

From version 62.1
edited by Andrea Omicini
on 30/06/2023 11:35
Change comment: There is no comment for this version
To version 62.2
edited by Andrea Omicini
on 30/06/2023 12:04
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,7 +1,60 @@
1 -{{include reference="Theses.Environment" excludeFirstHeading="true"/}}{{velocity}}
2 -#set( $thesisMenu = true )
1 +{{velocity}}
2 +{{html clean="false" wiki="true"}}
3 +#template('apice_theses.vm')
4 +#template('apice_macros.vm')
3 3  ##
4 -#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}.${objectSpace}.Clouds.WebHome") )
40 +* {{english}}thesis{{/english}} [[{{stringEngIta eng="clouds" ita="nuvole"/}}>>${userSpace}.${objectSpace}.Clouds.WebHome]] {{italiano}}delle tesi{{/italiano}}
41 + #if( $xwiki.exists("${userSpace}.${objectSpace}.Clouds.Tags") )
42 +** [[$services.localization.render('tags')>>${userSpace}.${objectSpace}.Clouds.Tags]]
43 + #end
44 + #end
45 +## CLOUDS / END
46 +##
47 +## PER STATUS / START
48 + #if( $xwiki.exists("${userSpace}.${objectSpace}.PerStatus") )
49 +* {$services.localization.render('theses') [[$services.localization.render('perstatus')>>${userSpace}.${objectSpace}.PerStatus]]
50 + #foreach( $status in $statuses )
51 +#if( !$foreach.first ), #{else}** #end[[{{thesisStatus plural="true" uppercase="false" short='true'}}$status{{/thesisStatus}}>>${userSpace}.${objectSpace}.PerStatus||queryString='status=$status']]#end
52 +
53 + #end
54 +## PER STATUS / END
55 +##
56 +#### USER SHOWCASE / END
57 +#else
5 5  #### GENERAL SHOWCASE / START
6 6  ##
7 7  ## set control variables
... ... @@ -61,83 +61,6 @@
61 61  ## BY CONTENT / END
62 62  ##
63 63  #### GENERAL SHOWCASE / END
64 -#else
65 -#### USER SHOWCASE / START
66 -##
67 -## set control varibles
68 -##
69 -#if( $showAvailableTheses )
70 - #set( $statuses = $allThesisStatuses )
71 -#else
72 - #set( $statuses = $workingThesisStatuses )
73 73  #end
74 -#if( $showPhDTheses )
75 - #set( $cycles = $allThesisCycles )
76 -#else
77 - #set( $cycles = $lowThesisCycles )
78 -#end
79 -##
80 -### APICE / START
81 -#if( $apiceTheses )
82 -##
83 -## CLOUDS / START
84 - #if( $xwiki.exists("${userSpace}.${objectSpace}.Clouds.WebHome") )
85 -* {{english}}thesis{{/english}} [[{{stringEngIta eng="clouds" ita="nuvole"/}}>>${userSpace}.${objectSpace}.Clouds.WebHome]] {{italiano}}delle tesi{{/italiano}}
86 - #if( $xwiki.exists("${userSpace}.${objectSpace}.Clouds.Tags") )
87 -** [[{{stringEngIta eng="tags" ita="tag" /}}>>${userSpace}.${objectSpace}.Clouds.Tags]]
88 - #end
89 - #end
90 -## CLOUDS / END
91 -##
92 -## PER STATUS / START
93 - #if( $xwiki.exists("${userSpace}.${objectSpace}.PerStatus") )
94 -* {{stringEngIta eng="theses" ita="tesi"/}} [[{{stringEngIta eng="per status" ita="per stato"/}}>>${userSpace}.${objectSpace}.PerStatus]]
95 - #foreach( $status in $statuses )
96 -#if( !$foreach.first ), #{else}** #end[[{{thesisStatus plural="true" uppercase="false" short='true'}}$status{{/thesisStatus}}>>${userSpace}.${objectSpace}.PerStatus||queryString='status=$status']]#end
97 -
98 - #end
99 -## PER STATUS / END
100 -##
101 -## PER YEAR / START
102 - #if( $xwiki.exists("${userSpace}.${objectSpace}.PerYear") )
103 -* {{thesisStatus plural="true" upperCase="false" short="false"}}completed{{/thesisStatus}} [[{{stringEngIta eng="per year" ita="per anno"/}}>>${userSpace}.${objectSpace}.PerYear]]
104 -** #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
105 -
106 - #end
107 -## PER YEAR / END
108 -##
109 -## PER CYCLE / START
110 - #if( $xwiki.exists("${userSpace}.${objectSpace}.PerCycle") )
111 -* {{thesisStatus plural="true" upperCase="false" short="false"}}completed{{/thesisStatus}} [[{{stringEngIta eng="per cycle" ita="per livello"/}}>>${userSpace}.${objectSpace}.PerCycle]]
112 -** #foreach( $cycle in $cycles )
113 -#if( !$foreach.first ), #end[[{{thesisCycle plural="true" uppercase="false" short='true'}}$cycle{{/thesisCycle}}>>${userSpace}.${objectSpace}.PerCycle||queryString='cycle=$cycle']]#end
114 -
115 - #end
116 -## PER CYCLE / END
117 -##
118 -## PER ROLE / START
119 - #if( $xwiki.exists("${userSpace}.${objectSpace}.PerStatus") )
120 -##* {{stringEngIta eng="theses" ita="tesi"/}} [[{{stringEngIta eng="per status & role" ita="per stato e ruolo"/}}>>${userSpace}.${objectSpace}.PerStatus]]
121 -* {{stringEngIta eng="theses" ita="tesi"/}} {{stringEngIta eng="per role" ita="per ruolo"/}}
122 - #foreach( $role in $allThesisRoles )
123 -#if( !$foreach.first ), #{else}** #end[[{{thesisRole plural="false" uppercase="false" short='true'}}$role{{/thesisRole}}>>${userSpace}.${objectSpace}.PerStatus||queryString='role=$role']]#end
124 -
125 - #end
126 -## PER ROLE / END
127 - #end
128 -### APICE / END
129 -##
130 -## OTHER / START
131 - #if( $amsTheses )
132 -> In AMS
133 -##
134 -* [[AMS Laurea>>http://amslaurea.unibo.it/view/relatore/$userLastName=3A$userFirstName=3A=3A/||target="_blank"]]
135 - #if( $showPhDTheses )
136 -* [[AMS Dottorato>>http://amsdottorato.unibo.it/view/relatore/$userLastName=3A$userFirstName=3A=3A.html||target="_blank"]]
137 - #end
138 - #end
139 -## OTHER / END
140 -##
141 -#### USER SHOWCASE / END
142 -#end
143 -{{/velocity}}
118 +{{/html}}
119 +{{/velocity}}{{pageDisplay sort="objectservice"/}}