Changes for page Per A.Y.

From version 18.1
edited by Andrea Omicini
on 22/11/2021 01:09
Change comment: There is no comment for this version
To version 19.1
edited by Andrea Omicini
on 22/11/2021 01:13
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -114,15 +114,15 @@
114 114   #set( $courseFound = $xwiki.searchDocuments($sql) )
115 115   #set( $courseYearNo = $courseFound.size() )
116 116   #if( $$courseYearNo >0 )
117 - #if(!$oneYear)
118 -
119 -=== $ayearr ===
120 -{{id name="$ayearr"/}}
121 -#end#foreach ($courseDoc in $courseFound)
122 - #set( $name = $xwiki.getDocument($courseDoc).display("courseName"))
123 - #set( $nome = $xwiki.getDocument($courseDoc).display("nomeCorso"))
117 + #if( !$oneYear )
118 +(% style="border-style:solid hidden hidden solid; border-color:$theme.borderColor; text-align:left; font-style:oblique" %)|{{id name='$year'/}}[[$year>>$doc||queryString='year=$year#if( $userName != "" )&user=$userName#elseif( $professorName != "" )&professor=$professorName#elseif( $tutorName != "" )&tutor=$tutorName#end']]
119 + #end
120 + #foreach( $courseDoc in $courseFound )
121 + #set( $name = $xwiki.getDocument($courseDoc).display("courseName"))
122 + #set( $nome = $xwiki.getDocument($courseDoc).display("nomeCorso"))
124 124  * [[#if( $nome == "" )$name#elseif( $name == "" )$nome#elseif( $context.language.contains('it') )$nome#else$name#end>>$courseDoc]]
125 -#end
124 + #end
126 126  (% 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 ){{stringEngIta ita="corsi" eng="courses"/}}#else{{stringEngIta ita="corso" eng="course"/}}#end / $ayearr) [[[top]>>||anchor="top"]] )))(%%)
127 -#end#end
126 + #end
127 +#end
128 128  {{/velocity}}