Changes for page Per A.Y.

From version 36.1
edited by Andrea Omicini
on 28/11/2021 01:27
Change comment: There is no comment for this version
To version 40.1
edited by Andrea Omicini
on 21/01/2022 23:13
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,0 @@
1 -#if($xcontext.language=='it')Corsi per A.A.#{else}Courses per A.Y.#end
Content
... ... @@ -1,4 +1,6 @@
1 -{{include reference="Courses.Environment"/}}{{include reference="Environment"/}}{{velocity}}
1 += {{italiano}}Corsi per A.A.{{/italiano}}{{english}}Courses per A.Y.{{/english}} =
2 +
3 +{{include reference="Courses.Environment" excludeFirstHeading="true"/}}{{velocity}}
2 2  #set( $courseMenu = true )
3 3  #set( $currentCourseDoc = "" )
4 4  #### get parameters
... ... @@ -66,6 +66,8 @@
66 66  ##
67 67  #if( $firstYearCou )#set( $firstYear = $firstYearCou )#end
68 68  #if( $lastYearCou )#set( $lastYear = $lastYearCou )#end
71 +#if( $firstYearCourse )#set( $firstYear = $firstYearCourse )#end
72 +#if( $lastYearCourse )#set( $lastYear = $lastYearCourse )#end
69 69  #set( $firstYear1 = $firstYear + 1 )#set( $firstAYear = $firstYear + "/" + $firstYear1 )
70 70  #set( $lastYear1 = $lastYear + 1 )#set( $lastAYear = $lastYear + "/" + $lastYear1 )
71 71  #set( $yearRange = [$lastYear..$firstYear] )
... ... @@ -112,7 +112,7 @@
112 112  #set( $courseNo = 0 )
113 113  #foreach( $yearr in $yearList)#set($yearr1 = $yearr + 1)#set($ayearr = $yearr + "/" + $yearr1 )
114 114   #set ($sql = ", BaseObject as obj, StringProperty as prop, LargeStringProperty as prop1, LargeStringProperty as prop2, LargeStringProperty as prop3, StringProperty as prop4
115 - where obj.name = doc.fullName and obj.className = 'Courses.CourseClass' and obj.name <> 'Courses.CourseTemplate' and prop.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 prop.name = 'ay' and prop1.name = 'professor' and prop2.name = 'otherProfessors' and prop3.name = 'tutors' and prop4.name = '$sortField' and prop.value like '%$yearr%' and ( prop1.value like '%$professorName%' or prop2.value like '%$professorName%' or prop3.value like '%$tutorName%' ) order by prop4.value asc ")
119 + where obj.name = doc.fullName and obj.className = 'Courses.CourseClass' and obj.name <> 'Courses.CourseTemplate' and prop.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 prop.name = 'ay' and prop1.name = 'professor' and prop2.name = 'otherProfessors' and prop3.name = 'tutors' and prop4.name = '$sortField' and prop.value = '$ayearr' and ( prop1.value like '%$professorName%' or prop2.value like '%$professorName%' or prop3.value like '%$tutorName%' ) order by prop4.value asc ")
116 116   #set( $courseFound = $xwiki.searchDocuments($sql) )
117 117   #set( $courseYearNo = $courseFound.size() )
118 118   #if( $$courseYearNo >0 )