Modifiche per il documento Per stato
Dalla versione 63.1
modificato da Andrea Omicini
il 16/10/2021 01:00
il 16/10/2021 01:00
Cambia il commento:
Nessun commento per questa versione
Alla versione 60.18
modificato da Andrea Omicini
il 14/10/2021 01:05
il 14/10/2021 01:05
Cambia il commento:
Nessun commento per questa versione
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -64,22 +64,21 @@ 64 64 (% style="font-size: smaller; padding:1em 1.5em 0.25em 1.5em; background-color:#if( $xwikiTheme =='dark') #3A3F44 #else whitesmoke #end" %)(((#foreach( $status in $statusList )#if( $velocityCount > 1 ) | #end[[{{pubStatus}}$status{{/pubStatus}}>>||anchor=$status]]#end))) 65 65 #end 66 66 ## 67 -#foreach( $status in $statusList ) 68 - #set( $from = ", BaseObject as obj, LargeStringProperty as prop0, StringProperty as prop1" ) 69 - #set( $where = "obj.name=doc.fullName and obj.className='Publications.PublicationClass' and obj.name<>'Publications.PublicationClassTemplate' and prop0.id.id=obj.id and prop1.id.id=obj.id and prop0.name='author' and (prop0.value like '%$authorFirstName $authorLastName%' or prop0.value like '%$authorLastName, $authorFirstName%') and prop1.name = 'status' and prop1.value = '$status'" ) 70 - #set( $sql = $from + " where " + $where ) 71 - #set( $pubFound = $xwiki.searchDocuments($sql) ) 72 - #set( $pubStatusNo = $pubFound.size() ) 73 - #if( $pubStatusNo > 0 ) 74 - #if( !$oneStatus ) 67 +#foreach ($status in $statusList) 68 +#set( $from = ", BaseObject as obj, LargeStringProperty as prop0, StringProperty as prop1" ) 69 +#set( $where = "obj.name=doc.fullName and obj.className='Publications.PublicationClass' and obj.name<>'Publications.PublicationClassTemplate' and prop0.id.id=obj.id and prop1.id.id=obj.id and prop0.name='author' and (prop0.value like '%$authorFirstName $authorLastName%' or prop0.value like '%$authorLastName, $authorFirstName%') and prop1.name = 'status' and prop1.value = '$status'" ) 70 +#set( $sql = $from + " where " + $where ) 71 +#set($pubFound = $xwiki.searchDocuments($sql)) 72 +#if ($pubFound.size()>0) 73 + #if (!$oneStatus) 75 75 (% style="border-style:solid hidden hidden solid; border-color:silver; text-align:left; font-style:oblique" %)|{{id name='$sort'/}}{{pubStatus plural='true' uppercase='true'}}$status{{/pubStatus}}{{id name="$status"/}} 76 - 77 - 75 + #end 76 + #foreach( $pub in $pubFound ) 78 78 |(% style='color:#if( $xwikiTheme == 'dark' ) silver #else dimgray #end; display:block; line-height:1.25em; margin-top:0; margin-bottom:0em'%){{pubAutheditors eds='true'}}$pub{{/pubAutheditors}} 79 79 {{pubTitle}}$pub{{/pubTitle}} 80 80 {{pubVenue}}$pub{{/pubVenue}}(%%) 81 - #end 82 -(% style="#if( !$oneStatus )border-style:hidden solid solid hidden;#end border-color:silver; text-align:right; font-style:oblique; font-weight:normal; font-size:smaller; color:gray" %)|($pubStatusNo #if( $pubStatusNo > 1 ){{pubStatus plural='true'}}$status{{/pubStatus}}#else{{pubStatus plural='false'}}$status{{/pubStatus}}#end) [[[top]>>||anchor="top"]] 83 - #end 84 84 #end 81 +(% style="#if( !$oneStatus )border-style:hidden solid solid hidden;#end border-color:silver; text-align:right; font-style:oblique; font-weight:normal; font-size:smaller; color:gray" %)|($pubFound.size() #if($pubFound.size() > 1){{pubStatus plural='true'}}$status{{/pubStatus}}#else{{pubStatus plural='false'}}$status{{/pubStatus}}#end) [[[top]>>||anchor="top"]] 82 +#end 83 +#end 85 85 {{/velocity}}