Changes for page Per Year
From version 131.4
edited by Andrea Omicini
on 30/01/2023 13:13
on 30/01/2023 13:13
Change comment:
There is no comment for this version
To version 135.1
edited by Andrea Omicini
on 24/04/2023 13:17
on 24/04/2023 13:17
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,9 +1,11 @@ 1 1 = {{italiano}}Per anno{{/italiano}}{{english}}Per Year{{/english}} = 2 2 3 -{{include reference="Theses.Environment" excludeFirstHeading="true"/}}{{velocity}} 3 +{{include reference="Classes.Environment" excludeFirstHeading="true"/}}{{include reference="Theses.Environment" excludeFirstHeading="true"/}}{{velocity}} 4 4 #set( $thesisMenu = true ) 5 5 #### HANDLE PARAMETERS / START 6 6 ## 7 +## inline display 8 +#set( $inlinePar = $request.inline.trim() ) 7 7 ## who 8 8 #set( $userNamePar = $request.user.trim() ) 9 9 #set( $firstNamePar = $request.name.trim() ) ... ... @@ -139,6 +139,17 @@ 139 139 ## 140 140 ## $oneUser, $apiceUser, $userString, $userFirstName, $userLastName, $oneCycle, $cycleList, $oneYear, $yearList are properly set 141 141 ## 144 +## handle inline / start 145 +## 146 +## default: false 147 +#set( $showInline = false ) 148 +## check $inlinePar 149 +#if( $inlinePar != "" && $trueStringList.contains($inlinePar.toLowerCase()) ) 150 + #set( $showInline = true ) 151 +#end 152 +## 153 +## handle inline / end 154 +## 142 142 #### HANDLE PARAMETERS / END 143 143 ## 144 144 ## query to structures ... ... @@ -172,14 +172,17 @@ 172 172 #if( $itemMap.keySet().size() > 1 ) 173 173 ## found more than one year 174 174 {{id name="index"/}} 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))) 188 +(% 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))) 176 176 #end 177 177 ## theses displayed per year 178 178 #foreach( $year in $itemMap.keySet() ) 179 -(% 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']] 180 -(% style="border-style:hidden hidden hidden hidden; font-style:normal" %)#foreach( $item in $itemMap[$year] ) 181 -|{{thesis inline='false' linked='title'}}$item{{/thesis}} 182 -#end 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#if( $showInline )&inline=true#end']] 193 +#foreach( $item in $itemMap[$year] ) 194 + #if( $showInline ) 195 + #if( $foreach.first ) 196 + #end 197 +* #else(% style="border-style:hidden hidden hidden hidden; font-style:normal" %)|#end{{thesis inline=$showInline linked='title'}}$item{{/thesis}} 198 + #end 183 183 #set( $itemYearNo = $itemMap[$year].size() ) 184 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"]] 185 185 #end