Changes for page Per Status
From version 76.1
edited by Andrea Omicini
on 03/01/2023 00:02
on 03/01/2023 00:02
Change comment:
There is no comment for this version
To version 74.1
edited by Andrea Omicini
on 02/01/2023 23:59
on 02/01/2023 23:59
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -81,23 +81,19 @@ 81 81 #set( $statusList = [$statusPar] ) 82 82 #end 83 83 #end 84 -$statusList 85 85 ## 86 86 ## query to structures 87 87 #set( $pubMap = {} ) 88 88 #set( $pubNo = 0 ) 89 89 #foreach( $status in $statusList ) 90 -$status 91 91 #set( $from = ", BaseObject as obj, LargeStringProperty as prop0, LargeStringProperty as prop1, StringProperty as prop2" ) 92 92 #set( $where = "obj.name = doc.fullName and obj.className = '${objectSpace}.${objectClass}' and obj.name <> '${objectSpace}.${objectTemplate}' and prop0.id.id = obj.id and prop1.id.id = obj.id and prop2.id.id = obj.id and prop0.name = 'author' and prop1.name = 'editor' and ( prop0.value like '$userString' or ( prop0.value = '' and prop1.value like '$userString' ) ) and prop2.name = 'status' and prop2.value = '$status'" ) 93 93 #set( $sql = $from + " where " + $where ) 94 94 #set( $pubFound = $xwiki.searchDocuments($sql) ) 95 95 #set( $pubStatusNo = $pubFound.size() ) 96 -$pubFound 97 -$pubFound.size() 98 98 #if( $pubStatusNo > 0 ) 99 99 #set( $pubMap[$status] = $pubFound ) 100 - #set( $pubNo = $pubNo + $pub StatusNo )96 + #set( $pubNo = $pubNo + $pubYearNo ) 101 101 #end 102 102 #end 103 103 $pubMap