Changes for page Per Status
From version 67.6
edited by Andrea Omicini
on 18/11/2022 00:44
on 18/11/2022 00:44
Change comment:
There is no comment for this version
To version 66.4
edited by Andrea Omicini
on 25/02/2022 11:42
on 25/02/2022 11:42
Change comment:
There is no comment for this version
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,0 +1,1 @@ 1 +#if($xcontext.language=="it")Pubblicazioni per stato#{else}Publications per Status#end - Default language
-
... ... @@ -1,0 +1,1 @@ 1 +en - Content
-
... ... @@ -1,6 +1,4 @@ 1 -= {{italiano}}Per stato{{/italiano}}{{english}}Per Status{{/english}} = 2 - 3 -{{include reference="Publications.Environment" excludeFirstHeading="true"/}}{{velocity}} 1 +{{include reference="Publications.Environment" excludeFirstHeading="true"/}}{{include reference="Environment" excludeFirstHeading="true"/}}{{velocity}} 4 4 #set( $publicationMenu = true ) 5 5 #### get parameters 6 6 ## who ... ... @@ -63,13 +63,12 @@ 63 63 #end 64 64 ## 65 65 #if( !$oneStatus ) 66 -(% style="font-size: smaller; padding:1em 1.5em 0.25em 1.5em; background-color:$theme.highlightColor" %)(((#foreach( $status in $statusList )#if( $ foreach.index>0) | #end[[{{pubStatus}}$status{{/pubStatus}}>>||anchor=$status]]#end)))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))) 67 67 #end 68 68 ## 69 -$statusList 70 70 #foreach( $status in $statusList ) 71 71 #set( $from = ", BaseObject as obj, LargeStringProperty as prop0, StringProperty as prop1" ) 72 - #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 prop0.name='author' and (prop0.value like '%$authorFirstName $authorLastName%' or prop0.value like '%$authorLastName, $authorFirstName%') and prop1.name = 'status' and prop1.value = '$status'" )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'" ) 73 73 #set( $sql = $from + " where " + $where ) 74 74 #set( $pubFound = $xwiki.searchDocuments($sql) ) 75 75 #set( $pubStatusNo = $pubFound.size() ) ... ... @@ -77,8 +77,11 @@ 77 77 #if( !$oneStatus ) 78 78 (% 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"/}} 79 79 #end 80 - #foreach( $pub in $pubFound )#if( $xwiki.exists($pub) )#set( $pubDoc = $xwiki.getDocument($pub) )#if( $pubDoc.getObject("${objectSpace}.${objectClass}") )## handling visibility at show time 81 -|{{pub inline='false' linked='true'}}$pub{{/pub}} 77 + #foreach( $pub in $pubFound )#if( $xwiki.exists($pub) )#set( $pubDoc = $xwiki.getDocument($pub) )#if( $pubDoc.getObject('Publications.PublicationClass') )## handling visibility at show time 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 82 #end#end#end 83 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"]] 84 84 #end