Changes for page Per A.Y.

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

Summary

Details

Page properties
Title
... ... @@ -1,0 +1,1 @@
1 +#if($xcontext.language=='it')Corsi per A.A.#{else}Courses per A.Y.#end
Content
... ... @@ -1,7 +1,4 @@
1 -= {{italiano}}Corsi per A.A.{{/italiano}}{{english}}Courses per A.Y.{{/english}} =
2 -
3 -{{include reference="Courses.Environment" excludeFirstHeading="true"/}}{{velocity}}
4 -#set( $courseMenu = true )
1 +{{include reference="Courses.Environment"/}}{{include reference="Environment"/}}{{velocity}}
5 5  #set( $currentCourseDoc = "" )
6 6  #### get parameters
7 7  ## when
... ... @@ -68,8 +68,6 @@
68 68  ##
69 69  #if( $firstYearCou )#set( $firstYear = $firstYearCou )#end
70 70  #if( $lastYearCou )#set( $lastYear = $lastYearCou )#end
71 -#if( $firstYearCourse )#set( $firstYear = $firstYearCourse )#end
72 -#if( $lastYearCourse )#set( $lastYear = $lastYearCourse )#end
73 73  #set( $firstYear1 = $firstYear + 1 )#set( $firstAYear = $firstYear + "/" + $firstYear1 )
74 74  #set( $lastYear1 = $lastYear + 1 )#set( $lastAYear = $lastYear + "/" + $lastYear1 )
75 75  #set( $yearRange = [$lastYear..$firstYear] )
... ... @@ -112,11 +112,10 @@
112 112  (% style="font-size: smaller; padding:1em 1.5em 0.25em 1.5em; background-color:$theme.highlightColor" %)(((#foreach ($yearr in $yearList)#set($yearr1 = $yearr + 1)#set($ayearr = "$yearr/$yearr1")#if( $velocityCount > 1 ) | #end[[$ayearr>>$doc||anchor=$yearr]]#end)))
113 113  #end
114 114  ##
115 -#if( $xcontext.language== "it" )#set( $sortField = "ita")#else#set( $sortField = "eng")#end
116 116  #set( $courseNo = 0 )
117 117  #foreach( $yearr in $yearList)#set($yearr1 = $yearr + 1)#set($ayearr = $yearr + "/" + $yearr1 )
118 - #set ($sql = ", BaseObject as obj, StringProperty as prop, LargeStringProperty as prop1, LargeStringProperty as prop2, LargeStringProperty as prop3, StringProperty as prop4
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 ")
112 + #set ($sql = ", BaseObject as obj, StringProperty as prop, LargeStringProperty as prop1, LargeStringProperty as prop2, LargeStringProperty as prop3
113 + 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 prop.name = 'aY' and prop1.name = 'professor' and prop2.name = 'otherProfessors' and prop3.name = 'tutors' and prop.value like '%$yearr%' and ( prop1.value like '%$professorName%' or prop2.value like '%$professorName%' or prop3.value like '%$tutorName%' ) order by prop.value desc ")
120 120   #set( $courseFound = $xwiki.searchDocuments($sql) )
121 121   #set( $courseYearNo = $courseFound.size() )
122 122   #if( $$courseYearNo >0 )
... ... @@ -125,7 +125,7 @@
125 125  (% style="border-style:solid hidden hidden solid; border-color:$theme.borderColor; text-align:left; font-style:oblique" %)|{{id name='$yearr'/}}[[$ayearr>>$doc||queryString='year=$yearr#if( $userName != "" )&user=$userName#elseif( $professorName != "" )&professor=$professorName#elseif( $tutorName != "" )&tutor=$tutorName#end']]
126 126   #end
127 127   #foreach( $courseDoc in $courseFound )
128 -* {{courseName}}$courseDoc{{/courseName}}
122 +* {{course}}$courseDoc{{/course}}
129 129   #end
130 130  (% style="#if( !$oneYear )border-style:hidden solid solid hidden; border-color:$theme.borderColor;#end text-align:right; font-style:oblique; font-size:smaller" %)|($courseYearNo #if( $courseYearNo == 1 ){{stringEngIta eng='course in' ita='corso nel'/}}#else{{stringEngIta eng='courses in' ita='corsi nel'/}}#end $ayearr) [[[{{stringEngIta eng='top' ita='in cima'/}}]>>||anchor="top"]] [[[{{stringEngIta eng='bottom' ita='in fondo'/}}]>>||anchor="bottom"]]
131 131   #end