Changes for page Per A.Y.
From version 21.1
edited by Andrea Omicini
on 22/11/2021 01:18
on 22/11/2021 01:18
Change comment:
There is no comment for this version
To version 22.1
edited by Andrea Omicini
on 22/11/2021 01:24
on 22/11/2021 01:24
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -108,6 +108,7 @@ 108 108 (% 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=$ayearr]]#end))) 109 109 #end 110 110 ## 111 +#set( $courseNo = 0 ) 111 111 #foreach( $yearr in $yearList)#set($yearr1 = $yearr + 1)#set($ayearr = $yearr + "/" + $yearr1 ) 112 112 #set ($sql = ", BaseObject as obj, StringProperty as prop, LargeStringProperty as prop1, LargeStringProperty as prop2, LargeStringProperty as prop3 113 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 ") ... ... @@ -114,6 +114,7 @@ 114 114 #set( $courseFound = $xwiki.searchDocuments($sql) ) 115 115 #set( $courseYearNo = $courseFound.size() ) 116 116 #if( $$courseYearNo >0 ) 118 + #set( $courseNo = $courseNo + $courseYearNo ) 117 117 #if( !$oneYear ) 118 118 (% 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']] 119 119 #end ... ... @@ -122,7 +122,8 @@ 122 122 #set( $nome = $xwiki.getDocument($courseDoc).display("nomeCorso")) 123 123 * [[#if( $nome == "" )$name#elseif( $name == "" )$nome#elseif( $context.language.contains('it') )$nome#else$name#end>>$courseDoc]] 124 124 #end 125 -(% style= 'font-style:oblique;font-size:smaller;text-align:right;color:gray;margin-top:-0.5em;margin-bottom:0em'%)((( ($courseFound.size()#if( $courseFound.size()>1 ){{stringEngItaita="corsi"eng="courses"/}}#else{{stringEngItaita="corso"eng="course"/}}#end/$ayearr) [[[top]>>||anchor="top"]])))(%%)127 +(% 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 $year) [[[{{stringEngIta eng='top' ita='in cima'/}}]>>||anchor="top"]] [[[{{stringEngIta eng='bottom' ita='in fondo'/}}]>>||anchor="bottom"]] 126 126 #end 127 127 #end 130 +#if( !$oneYear )(% style="text-align:right; font-style:oblique; font-size:smaller" %)|($courseNo #if( $courseNo == 1 ){{stringEngIta eng='course' ita='corso'/}}#else{{stringEngIta eng='courses' ita='corsi'/}}#end)#end 128 128 {{/velocity}}