Changes for page Per Year

From version 137.1
edited by Andrea Omicini
on 30/06/2023 16:56
Change comment: There is no comment for this version
To version 134.1
edited by Andrea Omicini
on 09/02/2023 01:02
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,5 +1,7 @@
1 -{{velocity}}
2 -#template('apice_theses.vm')
1 += {{italiano}}Per anno{{/italiano}}{{english}}Per Year{{/english}} =
2 +
3 +{{include reference="Main.Environment" excludeFirstHeading="true"/}}{{include reference="Theses.Environment" excludeFirstHeading="true"/}}{{velocity}}
4 +#set( $thesisMenu = true )
3 3  #### HANDLE PARAMETERS / START
4 4  ##
5 5  ## inline display
... ... @@ -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) )
71 + #if( $allThesisCycles.contains($cyclePar) )
70 70  ## 'cycle' parameter is an admissible thesis cycle value
71 71   #set( $cycleList = [$cyclePar])
72 72   #set( $oneCycle = true )
... ... @@ -78,7 +78,11 @@
78 78   #end
79 79  #else
80 80  ## default: all cycles
81 - #set( $cycleList = $showcaseThesisCycles )
83 + #if( $showPhDTheses )
84 + #set( $cycleList = $allThesisCycles )
85 + #else
86 + #set( $cycleList = $lowThesisCycles )
87 + #end
82 82   #set( $oneCycle = false )
83 83   #set( $cycle = "" )
84 84  #end
... ... @@ -167,7 +167,7 @@
167 167  ## output results
168 168  ## page subtitle
169 169  {{id name="top"/}}
170 ->(%%)$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}(%%)
176 +>(%%)$itemNo #if( $itemNo == 1 )#if( $oneCycle ){{thesisCycle plural="false" uppercase="false"}}$cycle{{/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}(%%)
171 171  
172 172  ## stop if no thesis is found
173 173  #if( $itemNo == 0 || $itemMap.keySet().size() == 0 )
... ... @@ -191,7 +191,7 @@
191 191  * #else(% style="border-style:hidden hidden hidden hidden; font-style:normal" %)|#end{{thesis inline=$showInline linked='title'}}$item{{/thesis}}
192 192   #end
193 193   #set( $itemYearNo = $itemMap[$year].size() )
194 -(% 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"]]
200 +(% 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"]]
195 195  #end
196 196  {{/velocity}}
197 197  {{id name="bottom"/}}