Changes for page Per Year
From version 100.1
edited by Andrea Omicini
on 30/10/2021 16:45
on 30/10/2021 16:45
Change comment:
There is no comment for this version
To version 102.2
edited by Andrea Omicini
on 30/10/2021 16:50
on 30/10/2021 16:50
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -34,8 +34,6 @@ 34 34 #set( $yearList = [$lastYear..$firstYear] ) 35 35 #end 36 36 #end 37 -$oneYear 38 -$yearList 39 39 ### END YEAR 40 40 ## 41 41 ### START USER & CYCLE ... ... @@ -70,8 +70,15 @@ 70 70 #end 71 71 #end 72 72 ## $oneUser and $oneCycle set properly 73 -$oneUser 74 -$oneCycle 71 +#if( $oneYear ) 72 + $selectedYear 73 +#end 74 +#if( $oneUser ) 75 + $selectedUser 76 +#end 77 +#if( $oneCycle ) 78 + $selectedCycle 79 +#end 75 75 ### END USER & CYCLE 76 76 ## 77 77 ## title ... ... @@ -98,7 +98,7 @@ 98 98 ## some selected cycle or all cycles / now $cycle 99 99 #if( $oneUser) 100 100 #set ($sql = ", BaseObject as obj, StringProperty as prop0, DateProperty as prop1, LargeStringProperty as prop2, LargeStringProperty as prop3, LargeStringProperty as prop4 101 - where obj.name = doc.fullName and obj.className = 'Theses.ThesisClass' and obj.name <> 'Theses.ThesisClassTemplate' and obj.name <> 'Theses.ThesisTemplate' and prop0.id.id = obj.id and prop1.id.id = obj.id and prop2.id.id = obj.id and prop3.id.id = obj.id and prop4.id.id = obj.id and prop0.name = 'cycle' and prop1.name = 'year' and prop2.name = 'supervisors' and prop3.name = 'cosupervisors' and prop4.name = 'contacts' and prop0.value = '$cycle' and prop1.value = '$year' and ( prop2.value like '%$selectedUser%' ||prop3.value like '%$selectedUser%'||prop4.value like '%$selectedUser%' ) order by prop1.value desc" )106 + where obj.name = doc.fullName and obj.className = 'Theses.ThesisClass' and obj.name <> 'Theses.ThesisClassTemplate' and obj.name <> 'Theses.ThesisTemplate' and prop0.id.id = obj.id and prop1.id.id = obj.id and prop2.id.id = obj.id and prop3.id.id = obj.id and prop4.id.id = obj.id and prop0.name = 'cycle' and prop1.name = 'year' and prop2.name = 'supervisors' and prop3.name = 'cosupervisors' and prop4.name = 'contacts' and prop0.value = '$cycle' and prop1.value = '$year' and ( prop2.value like '%$selectedUser%' or prop3.value like '%$selectedUser%' or prop4.value like '%$selectedUser%' ) order by prop1.value desc" ) 102 102 #else 103 103 #set ($sql = ", BaseObject as obj, StringProperty as prop0, DateProperty as prop1 104 104 where obj.name = doc.fullName and obj.className = 'Theses.ThesisClass' and obj.name <> 'Theses.ThesisClassTemplate' and obj.name <> 'Theses.ThesisTemplate' and prop0.id.id = obj.id and prop1.id.id = obj.id and prop0.name = 'cycle' and prop1.name = 'year' and prop0.value = '$cycle' and prop1.value = '$year' order by prop1.value desc" )