Changes for page Per A.Y.

From version 51.10
edited by Andrea Omicini
on 27/08/2023 18:38
Change comment: There is no comment for this version
To version 51.15
edited by Andrea Omicini
on 27/08/2023 18:52
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -39,7 +39,7 @@
39 39   #set( $year1 = $year + 1 )
40 40   #set( $ayear = $year + "/" + $year1 )
41 41   #set( $query = ", BaseObject as objCourse, StringProperty as propName, StringProperty as propYear, LargeStringProperty as propProfessor, LargeStringProperty as propOtherprofessors, LargeStringProperty as propTutors
42 - where objCourse.name = doc.fullName and objCourse.className = '${mainSpace}.Class' and objCourse.name <> '${objectPool}.Template' and propName.id.id = objCourse.id and propYear.id.id = objCourse.id and propProfessor.id.id = objCourse.id and propOtherprofessors.id.id = objCourse.id and propTutors.id.id = objCourse.id and propDate.propName = #if( $services.localization.currentLocale == 'it' )'ita'#{else}'eng'#end and propYear.name = 'ay' and propProfessor.name = 'professor' and propOtherprofessors.name = 'otherProfessors' and propTutors.name = 'tutors' and propYear.value = '$ayear' #if( $oneUser )and ( propProfessor.value like '%$userName%' or propOtherprofessors.value like '%$userName%' or propTutors.value like '%$userName%' )#end order by propName.value asc")
42 + where objCourse.name = doc.fullName and objCourse.className = '${mainSpace}.Class' and objCourse.name <> '${objectPool}.Template' and propName.id.id = objCourse.id and propYear.id.id = objCourse.id and propProfessor.id.id = objCourse.id and propOtherprofessors.id.id = objCourse.id and propTutors.id.id = objCourse.id and propName.name = #if( $services.localization.currentLocale == 'it' )'ita'#{else}'eng'#end and propYear.name = 'ay' and propProfessor.name = 'professor' and propOtherprofessors.name = 'otherProfessors' and propTutors.name = 'tutors' and propYear.value = '$ayear' #if( $oneUser )and ( propProfessor.value like '%$userName%' or propOtherprofessors.value like '%$userName%' or propTutors.value like '%$userName%' )#end order by propName.value asc")
43 43  ## execute query
44 44   #set( $itemFound = $xwiki.searchDocuments($query) )
45 45  ## set counters
... ... @@ -110,21 +110,16 @@
110 110  ## year top / end
111 111  ##
112 112  ## year display / start
113 - #if( $oneUser)
114 - <div class='menumainbody'>
115 - #foreach( $item in $itemMap[$year] )
113 + <div class='menumainbody' style='margin-top: .25em'>
114 + #foreach( $item in $itemMap[$year] )
115 + #if( $oneUser)
116 116   #coursename($item)&ensp;(#coursecycle($item))
117 - #if( !$foreach.last )
118 - &ensp;&bull;&ensp;
119 - #end
117 + #else
118 + #coursename($item)&ensp;<span class='textsecondary'>(#coursecycle($item)) &mdash; </span>#courseprofessor($item)
120 120   #end
121 - </div>
122 - #else
123 - <div style="font-style: normal"><ul>
124 - #foreach( $item in $itemMap[$year] )
125 - <li>#coursename($item)&ensp;<span class='textsecondary'>(#coursecycle($item))&ensp;&mdash;&ensp;</span>#courseprofessor($item)</li>
120 + #if( !$foreach.last )
121 + &ensp;&bull;&ensp;
126 126   #end
127 -</ul></div>
128 128   #end
129 129  ## year display / end
130 130  ##