Changes for page Per Status

From version 67.2
edited by Andrea Omicini
on 22/07/2022 17:54
Change comment: There is no comment for this version
To version 67.1
edited by Andrea Omicini
on 09/03/2022 23:18
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -68,7 +68,7 @@
68 68  ##
69 69  #foreach( $status in $statusList )
70 70   #set( $from = ", BaseObject as obj, LargeStringProperty as prop0, StringProperty as prop1" )
71 - #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'" )
71 + #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'" )
72 72   #set( $sql = $from + " where " + $where )
73 73   #set( $pubFound = $xwiki.searchDocuments($sql) )
74 74   #set( $pubStatusNo = $pubFound.size() )
... ... @@ -76,7 +76,7 @@
76 76   #if( !$oneStatus )
77 77  (% 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"/}}
78 78   #end
79 - #foreach( $pub in $pubFound )#if( $xwiki.exists($pub) )#set( $pubDoc = $xwiki.getDocument($pub) )#if( $pubDoc.getObject('${objectSpace}.${objectClass}') )## handling visibility at show time
79 + #foreach( $pub in $pubFound )#if( $xwiki.exists($pub) )#set( $pubDoc = $xwiki.getDocument($pub) )#if( $pubDoc.getObject('Publications.PublicationClass') )## handling visibility at show time
80 80  ##|(% style='color:$theme.textColor; display:block; line-height:1.25em; margin-top:0; margin-bottom:0em'%){{pubAutheditors eds='true'}}$pub{{/pubAutheditors}}
81 81  ##{{pubTitle}}$pub{{/pubTitle}}
82 82  ##{{pubVenue}}$pub{{/pubVenue}}(%%)