Changes for page Per Year

From version 133.2
edited by Andrea Omicini
on 09/02/2023 00:40
Change comment: There is no comment for this version
To version 137.1
edited by Andrea Omicini
on 30/06/2023 16:56
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,0 +1,1 @@
1 +$services.localization.render('peryear')
Content
... ... @@ -1,7 +1,5 @@
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 )
1 +{{velocity}}
2 +#template('apice_theses.vm')
5 5  #### HANDLE PARAMETERS / START
6 6  ##
7 7  ## inline display
... ... @@ -68,7 +68,7 @@
68 68  ## $oneCycle true if just one cycle to be shown
69 69  #if( $request.cycle && $request.cycle.trim() != "" )
70 70   #set( $cyclePar = $request.cycle.trim().toUpperCase() )
71 - #if( $allThesisCycles.contains($cyclePar) )
69 + #if( $thesisCycles.contains($cyclePar) )
72 72  ## 'cycle' parameter is an admissible thesis cycle value
73 73   #set( $cycleList = [$cyclePar])
74 74   #set( $oneCycle = true )
... ... @@ -80,11 +80,7 @@
80 80   #end
81 81  #else
82 82  ## default: all cycles
83 - #if( $showPhDTheses )
84 - #set( $cycleList = $allThesisCycles )
85 - #else
86 - #set( $cycleList = $lowThesisCycles )
87 - #end
81 + #set( $cycleList = $showcaseThesisCycles )
88 88   #set( $oneCycle = false )
89 89   #set( $cycle = "" )
90 90  #end
... ... @@ -173,7 +173,7 @@
173 173  ## output results
174 174  ## page subtitle
175 175  {{id name="top"/}}
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}(%%)
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}(%%)
177 177  
178 178  ## stop if no thesis is found
179 179  #if( $itemNo == 0 || $itemMap.keySet().size() == 0 )
... ... @@ -189,13 +189,15 @@
189 189  #end
190 190  ## theses displayed per year
191 191  #foreach( $year in $itemMap.keySet() )
192 -(% 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']](%%)(% style="border-style:hidden hidden hidden hidden; font-style:normal" %)#foreach( $item in $itemMap[$year] )
193 - #if( $showInline )#if( $foreach.first )
194 -
195 -#end* #else|#end{{thesis inline=$showInline linked='title'}}$item{{/thesis}}
186 +(% 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#if( $showInline )&inline=true#end']]
187 +#foreach( $item in $itemMap[$year] )
188 + #if( $showInline )
189 + #if( $foreach.first )
190 + #end
191 +* #else(% style="border-style:hidden hidden hidden hidden; font-style:normal" %)|#end{{thesis inline=$showInline linked='title'}}$item{{/thesis}}
196 196   #end
197 197   #set( $itemYearNo = $itemMap[$year].size() )
198 -(% 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"]]
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"]]
199 199  #end
200 200  {{/velocity}}
201 201  {{id name="bottom"/}}