Changes for page Per Year

From version 150.1
edited by Andrea Omicini
on 30/06/2023 21:14
Change comment: There is no comment for this version
To version 153.1
edited by Andrea Omicini
on 30/06/2023 21:23
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,13 +1,9 @@
1 1  {{velocity}}
2 2  {{html wiki="true" clean="false"}}
3 3  #template('apice_boolean.vm')
4 -#### HANDLE PARAMETERS / START
4 +#### SET PARAMETERS / START
5 5  #template('apice_theses.vm')
6 6  #template('apice_user_param.vm')
7 -## YEARS / START
8 -#set( $yearPar = $request.year.trim() )
9 -#set( $firstYearPar = $request.from.trim() )
10 -#set( $lastYearPar = $request.to.trim() )
11 11  ## years / personal
12 12  #if( $isUserSpace )
13 13   #set( $query = ", BaseObject as objPersonalThesis, LargeStringProperty as propUser
... ... @@ -28,8 +28,9 @@
28 28  ## years / parameters takes precedence
29 29  #set( $firstYear = $firstYearThesis )
30 30  #set( $lastYear = $lastYearThesis )
31 -#template('apice_years_param.vm')
32 -#### handle cycle
27 +#template('apice_year_param.vm')
28 +##
29 +## CYCLES / START
33 33  ## $cycleList gets the list of cycles to be shown
34 34  ## $oneCycle true if just one cycle to be shown
35 35  #if( $request.cycle && $request.cycle.trim() != "" )
... ... @@ -51,8 +51,10 @@
51 51   #set( $cycle = "" )
52 52  #end
53 53  ## INVARIANT: $oneCycle and $cycleList are correctly and coherently initialised
54 -#### HANDLE PARAMETERS / END
51 +## CYCLES / END
55 55  ##
53 +#### SET PARAMETERS / END
54 +##
56 56  ## DATA STRUCTURES / START
57 57  #set( $itemMap = {} )
58 58  #set( $itemNo = 0 )
... ... @@ -107,8 +107,14 @@
107 107  ## page index
108 108  #if( $itemMap.keySet().size() > 1 )
109 109  ## found more than one year
110 -{{id name="index"/}}
111 -(% 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)))
109 +<div class="mainselectbar" id="index">
110 + #foreach( $year in $itemMap.keySet() )
111 + #if( !$foreach.first )
112 + &ensp;&bull;&ensp;
113 + #end
114 + [[$year>>||anchor="$year"]]
115 + #end
116 +</div>
112 112  #end
113 113  ## theses displayed per year
114 114  ##