Changes for page Per Status

From version 66.2
edited by Andrea Omicini
on 20/01/2022 23:52
Change comment: There is no comment for this version
To version 60.15
edited by Andrea Omicini
on 14/10/2021 01:03
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -#if($xcontext.language=="it")Pubblicazioni per stato#{else}Publications per Status#end
1 +Per Status
Content
... ... @@ -1,4 +1,4 @@
1 -{{include reference="Publications.Environment" excludeFirstHeading="true"/}}{{include reference="Environment" excludeFirstHeading="true"/}}{{velocity}}
1 +{{include reference="Publications.Environment"/}}{{include reference="Environment"/}}{{velocity}}
2 2  #set( $publicationMenu = true )
3 3  #### get parameters
4 4  ## who
... ... @@ -61,26 +61,24 @@
61 61  #end
62 62  ##
63 63  #if( !$oneStatus )
64 -(% style="font-size: smaller; padding:1em 1.5em 0.25em 1.5em; background-color:$theme.highlightColor" %)(((#foreach( $status in $statusList )#if( $velocityCount > 1 ) | #end[[{{pubStatus}}$status{{/pubStatus}}>>||anchor=$status]]#end)))
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 )
75 -(% style="border-style:solid hidden hidden solid; border-color:$theme.borderColor; text-align:left; font-style:oblique" %)|{{id name='$sort'/}}{{pubStatus plural='true' uppercase='true'}}$status{{/pubStatus}}{{id name="$status"/}}
76 - #end
77 - #foreach( $pub in $pubFound )
78 -##|(% style='color:$theme.textColor; display:block; line-height:1.25em; margin-top:0; margin-bottom:0em'%){{pubAutheditors eds='true'}}$pub{{/pubAutheditors}}
79 -##{{pubTitle}}$pub{{/pubTitle}}
80 -##{{pubVenue}}$pub{{/pubVenue}}(%%)
81 -|{{pub inline=false linked=true}}$pub{{/pub}}
82 - #end
83 -(% style="#if( !$oneStatus )border-style:hidden solid solid hidden;#end border-color:$theme.borderColor; 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"]]
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)
74 +(% 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"/}}
84 84   #end
76 + #foreach( $pub in $pubFound )
77 +|(% 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}}
78 +{{pubTitle}}$pub{{/pubTitle}}
79 +{{pubVenue}}$pub{{/pubVenue}}(%%)
85 85  #end
81 +(% style="border-style:solid hidden hidden hidden; 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
86 86  {{/velocity}}