Changes for page Per A.Y.
From version 52.3
edited by Andrea Omicini
on 31/08/2023 12:08
on 31/08/2023 12:08
Change comment:
There is no comment for this version
To version 51.10
edited by Andrea Omicini
on 27/08/2023 18:38
on 27/08/2023 18:38
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
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 prop Name.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")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") 43 43 ## execute query 44 44 #set( $itemFound = $xwiki.searchDocuments($query) ) 45 45 ## set counters ... ... @@ -110,18 +110,22 @@ 110 110 ## year top / end 111 111 ## 112 112 ## year display / start 113 - <divclass='menumainbody'style='margin-top: .25em'>114 - #foreach( $itemin $itemMap[$year] )115 - # if( $oneUser)113 + #if( $oneUser) 114 + <div class='menumainbody'> 115 + #foreach( $item in $itemMap[$year] ) 116 116 #coursename($item) (#coursecycle($item)) 117 - #else 118 - #courseicon #coursename($item) <span class='textsecondary'>(#coursecycle($item)) — </span>#courseprofessor($item)<br/> 117 + #if( !$foreach.last ) 118 +  •  119 + #end 119 119 #end 120 -## #if( !$foreach.last ) 121 -##  •  122 -## #end 123 - #end 124 124 </div> 122 + #else 123 + <div style="font-style: normal"><ul> 124 + #foreach( $item in $itemMap[$year] ) 125 + <li>#coursename($item) <span class='textsecondary'>(#coursecycle($item)) — </span>#courseprofessor($item)</li> 126 + #end 127 +</ul></div> 128 + #end 125 125 ## year display / end 126 126 ## 127 127 ## year bottom / start