Modifiche per il documento Per stato
Dalla versione 80.1
modificato da Andrea Omicini
il 03/01/2023 00:09
il 03/01/2023 00:09
Cambia il commento:
Nessun commento per questa versione
Alla versione 82.1
modificato da Andrea Omicini
il 03/01/2023 00:13
il 03/01/2023 00:13
Cambia il commento:
Nessun commento per questa versione
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -87,9 +87,10 @@ 87 87 #set( $pubNo = 0 ) 88 88 #foreach( $status in $statusList ) 89 89 #set( $from = ", BaseObject as obj, LargeStringProperty as prop0, LargeStringProperty as prop1, StringProperty as prop2" ) 90 - #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 = 90 + #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'" ) 91 91 #set( $sql = $from + " where " + $where ) 92 92 #set( $pubFound = $xwiki.searchDocuments($sql) ) 93 + #set( $pubStatusNo = $pubFound.size() ) 93 93 #if( $pubStatusNo > 0 ) 94 94 #set( $pubMap[$status] = $pubFound ) 95 95 #set( $pubNo = $pubNo + $pubStatusNo ) ... ... @@ -110,7 +110,7 @@ 110 110 #if( $pubMap.keySet().size() > 1 ) 111 111 ## found more than one status 112 112 {{id name="index"/}} 113 -(% style="font-size:smaller; text-align:right; padding:1em 1.5em 0.25em 1.5em; background-color:$theme.highlightColor" %)(((#foreach( $status in $pubMap.keySet() )#if( !$foreach.first ) | #end[[{{pubStatus uppercase='false' plural='true'}}$status Par{{/pubStatus}}>>||anchor="$status"]]#end)))114 +(% style="font-size:smaller; text-align:right; padding:1em 1.5em 0.25em 1.5em; background-color:$theme.highlightColor" %)(((#foreach( $status in $pubMap.keySet() )#if( !$foreach.first ) | #end[[{{pubStatus uppercase='false' plural='true'}}$status{{/pubStatus}}>>||anchor="$status"]]#end))) 114 114 #end 115 115 116 116