Changes for page Per Year

From version 139.1
edited by Andrea Omicini
on 30/06/2023 17:01
Change comment: There is no comment for this version
To version 131.2
edited by Andrea Omicini
on 29/01/2023 16:55
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,0 @@
1 -$services.localization.render('peryear')
Content
... ... @@ -1,9 +1,9 @@
1 -{{velocity}}
2 -#template('apice_theses.vm')
1 += {{italiano}}Per anno{{/italiano}}{{english}}Per Year{{/english}} =
2 +
3 +{{include reference="Theses.Environment" excludeFirstHeading="true"/}}{{velocity}}
4 +#set( $thesisMenu = true )
3 3  #### HANDLE PARAMETERS / START
4 4  ##
5 -## inline display
6 -#set( $inlinePar = $request.inline.trim() )
7 7  ## who
8 8  #set( $userNamePar = $request.user.trim() )
9 9  #set( $firstNamePar = $request.name.trim() )
... ... @@ -66,7 +66,7 @@
66 66  ## $oneCycle true if just one cycle to be shown
67 67  #if( $request.cycle && $request.cycle.trim() != "" )
68 68   #set( $cyclePar = $request.cycle.trim().toUpperCase() )
69 - #if( $thesisCycles.contains($cyclePar) )
69 + #if( $allThesisCycles.contains($cyclePar) )
70 70  ## 'cycle' parameter is an admissible thesis cycle value
71 71   #set( $cycleList = [$cyclePar])
72 72   #set( $oneCycle = true )
... ... @@ -73,12 +73,16 @@
73 73   #set( $cycle = $cyclePar )
74 74   #else
75 75  ## 'cycle' parameter is not an admissible thesis cycle value
76 -{{warning}}$cyclePar is not an admissible cycle for APICe theses{{/warning}}
76 +{{warning}}$cyclePar is not an admissible cycle for APICE theses{{/warning}}
77 77   #stop
78 78   #end
79 79  #else
80 80  ## default: all cycles
81 - #set( $cycleList = $showcaseThesisCycles )
81 + #if( $showPhDTheses )
82 + #set( $cycleList = $allThesisCycles )
83 + #else
84 + #set( $cycleList = $lowThesisCycles )
85 + #end
82 82   #set( $oneCycle = false )
83 83   #set( $cycle = "" )
84 84  #end
... ... @@ -156,7 +156,7 @@
156 156  ## output results
157 157  ## page subtitle
158 158  {{id name="top"/}}
159 ->(%%)$itemNo #if( $itemNo == 1 )#if( $oneCycle ){{thesisCycle plural="false" uppercase="false"}}$cycle{{/thesisCycle}}#else$services.localization.render('thesis').toLowerCase()#end#{else}#if( $oneCycle ){{thesisCycle plural="true" uppercase="false"}}$cycle{{/thesisCycle}}#else$services.localization.render('theses').toLowerCase()#end#{end} / #if( $oneYear )$year#else$firstYear–$lastYear#{end}#if( $oneUser ) / $userFirstName $userLastName#{end}(%%)
163 +>(%%)$itemNo #if( $itemNo == 1 )#if( $oneCycle ){{thesisCycle plural="false" uppercase="false"}}$cyclePar{{/thesisCycle}}#else{{stringEngIta eng="$objectEngSingular.toLowerCase()" ita="$objectItaSingular.toLowerCase()"/}}#end#{else}#if( $oneCycle ){{thesisCycle plural="true" uppercase="false"}}$cycle{{/thesisCycle}}#else{{stringEngIta eng="$objectEngPlural.toLowerCase()" ita="$objectItaPlural.toLowerCase()"/}}#end#{end} / #if( $oneYear )$year#else$firstYear–$lastYear#{end}#if( $oneUser ) / $userFirstName $userLastName#{end}(%%)
160 160  
161 161  ## stop if no thesis is found
162 162  #if( $itemNo == 0 || $itemMap.keySet().size() == 0 )
... ... @@ -168,19 +168,16 @@
168 168  #if( $itemMap.keySet().size() > 1 )
169 169  ## found more than one year
170 170  {{id name="index"/}}
171 -(% style="font-size:smaller; text-align:right; padding:1em 1.5em 0.25em 1.5em; background-color:$theme.highlightColor" %)(((#foreach( $year in $itemMap.keySet() )#if( !$foreach.first ) | #end[[$year>>$doc||anchor=$year]]#end)))
175 +(% style="font-size:smaller; text-align:right; padding:1em 1.5em 0.25em 1.5em; background-color:$theme.highlightColor" %)(((#foreach( $year in $itemMap.keySet() )#if( !$foreach.first ) | #end[[$year>>||anchor=$year]]#end)))
172 172  #end
173 173  ## theses displayed per year
174 -##
175 -#template('apice_thesis_macros.vm')
176 -##
177 177  #foreach( $year in $itemMap.keySet() )
178 178  (% style="border-style:solid hidden hidden solid; border-color:$theme.borderColor; text-align:left; font-style:oblique" %)|{{id name='$year'/}}[[$year>>$doc||style="text-decoration:none; color:$theme.textPrimaryColor" queryString='year=$year#if( $oneUser )#if( $apiceUser )&user=$userName#{else}&name=$userFirstName&surname=$userLastName#end#end#if( $oneCycle )&cycle=$cycle#end']]
179 -#foreach( $item in $itemMap[$year] )
180 -* #thesislinked($item)
180 +(% style="border-style:hidden hidden hidden hidden; font-style:normal" %)#foreach( $item in $itemMap[$year] )
181 +|{{thesis inline='false' linked='title'}}$item{{/thesis}}
181 181  #end
182 182   #set( $itemYearNo = $itemMap[$year].size() )
183 -(% style="border-style:hidden solid solid hidden; border-color:$theme.borderColor; text-align:right; font-style:oblique; font-size:smaller" %)|($itemYearNo #if( $oneCycle )#if( $itemYearNo == 1 ){{thesisCycle plural="false" uppercase="false"}}$cycle{{/thesisCycle}}#{else}{{thesisCycle plural="true" uppercase="false"}}$cycle{{/thesisCycle}}#end#else#if( $itemYearNo == 1 )$services.localization.render('thesis').toLowerCase()#else$services.localization.render('theses').toLowerCase()#end#end / $year) [[[{{stringEngIta eng='top' ita='in cima'/}}]>>||anchor="top"]] [[[{{stringEngIta eng='bottom' ita='in fondo'/}}]>>||anchor="bottom"]]
184 +(% style="border-style:hidden solid solid hidden; border-color:$theme.borderColor; text-align:right; font-style:oblique; font-size:smaller" %)|($itemYearNo #if( $oneCycle )#if( $itemYearNo == 1 ){{thesisCycle plural="false" uppercase="false"}}$cycle{{/thesisCycle}}#{else}{{thesisCycle plural="true" uppercase="false"}}$cycle{{/thesisCycle}}#end#else#if( $itemYearNo == 1 ){{stringEngIta eng=$objectEngSingular.toLowerCase() ita=$objectItaSingular.toLowerCase()/}}#else{{stringEngIta eng=$objectEngPlural.toLowerCase() ita=$objectItaPlural.toLowerCase()/}}#end#end / $year) [[[{{stringEngIta eng='top' ita='in cima'/}}]>>||anchor="top"]] [[[{{stringEngIta eng='bottom' ita='in fondo'/}}]>>||anchor="bottom"]]
184 184  #end
185 185  {{/velocity}}
186 186  {{id name="bottom"/}}