Changes for page Per Status

From version 60.14
edited by Andrea Omicini
on 14/10/2021 01:00
Change comment: There is no comment for this version
To version 60.11
edited by Andrea Omicini
on 10/10/2021 18:31
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -51,15 +51,19 @@
51 51  ##
52 52  {{id name="top"/}}
53 53  #if( $oneAuthor )#if( $oneStatus )
54 +
54 54  >**{{pubStatus uppercase='true' plural='true'}}$statusPar{{/pubStatus}}** / $authorFirstName $authorLastName
55 55  #else
57 +
56 56  >**{{pubStatus uppercase='true' plural='true'}}unpublished{{/pubStatus}}** / $authorFirstName $authorLastName
57 57  #end#elseif($oneStatus)
60 +
58 58  >{{pubStatus uppercase='true' plural='true'}}$statusPar{{/pubStatus}}
59 59  #else
63 +
60 60  >{{pubStatus uppercase='true' plural='true'}}unpublished{{/pubStatus}}
61 61  #end
62 -##
66 +
63 63  #if( !$oneStatus )
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
... ... @@ -69,14 +69,15 @@
69 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 70  #set( $sql = $from + " where " + $where )
71 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"/}}
75 - #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}}
76 +#if ($pubFound.size()>0)#if (!$oneStatus)
77 +
78 +=== {{pubStatus plural='true' uppercase='true'}}$status{{/pubStatus}} ===
79 +{{id name="$status"/}}
80 +#end#foreach( $pub in $pubFound )(% style='line-height:1.25em'%)(((
81 +(% style='font-size:smaller' %){{pubAutheditors eds='true'}}$pub{{/pubAutheditors}}(%%)
78 78  {{pubTitle}}$pub{{/pubTitle}}
79 -{{pubVenue}}$pub{{/pubVenue}}(%%)
83 +(% style='font-size:smaller' %){{pubVenue}}$pub{{/pubVenue}}(%%)
84 +)))
80 80  #end
81 81  (% style='font-style:oblique;font-size:smaller;text-align:right;color:gray;margin-top:-0.5em;margin-bottom:0em' %)((( ($pubFound.size() #if($pubFound.size() > 1){{pubStatus plural='true'}}$status{{/pubStatus}}#else{{pubStatus plural='false'}}$status{{/pubStatus}}#end) [[[top]>>||anchor="top"]] )))(%%)
82 82  #end