Changes for page Per Year

From version 117.1
edited by Andrea Omicini
on 30/10/2021 17:45
Change comment: There is no comment for this version
To version 116.1
edited by Andrea Omicini
on 30/10/2021 17:42
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -136,6 +136,7 @@
136 136   where obj.name = doc.fullName and obj.className = 'Theses.ThesisClass' and obj.name <> 'Theses.ThesisClassTemplate' and obj.name <> 'Theses.ThesisTemplate' and prop0.id.id = obj.id and prop1.id.id = obj.id and prop2.id.id = obj.id and prop0.name = 'cycle' and prop1.name = 'endDate' and prop2.name = 'status' and prop0.value = '$cycle' and year(prop1.value) = '$year 'and prop2.value = 'Completed' order by prop1.value desc" )
137 137   #end
138 138   #set( $thesisFound = $xwiki.searchDocuments($sql) )
139 +$sql
139 139   #set( $thesisFoundNo = $thesisFound.size() )
140 140   #set( $thesisYearCycleNo = $thesisYearCycleNo + $thesisFoundNo )
141 141   #if( $thesisFoundNo > 0 && !$oneCycle )