Changes for page Per Year

From version 118.1
edited by Andrea Omicini
on 30/10/2021 18:14
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
... ... @@ -135,8 +135,8 @@
135 135   #set ($sql = ", BaseObject as obj, StringProperty as prop0, DateProperty as prop1, StringProperty as prop2
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 - $sql
139 139   #set( $thesisFound = $xwiki.searchDocuments($sql) )
139 +$sql
140 140   #set( $thesisFoundNo = $thesisFound.size() )
141 141   #set( $thesisYearCycleNo = $thesisYearCycleNo + $thesisFoundNo )
142 142   #if( $thesisFoundNo > 0 && !$oneCycle )