Changes for page Per Status

From version 6.1
edited by Andrea Omicini
on 21/12/2020 23:51
Change comment: There is no comment for this version
To version 6.3
edited by Andrea Omicini
on 22/12/2020 00:00
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -6,7 +6,7 @@
6 6  #set( $lastNamePar = $context.getRequest().getParameter("surname") )
7 7  ## which status
8 8  #set($statusPar = $context.getRequest().getParameter("status"))
9 -
9 +##
10 10  #### handle who
11 11  #if ( $userName )
12 12  ## from a personal page, "XWiki.PersonalSpace" $userName form
... ... @@ -30,7 +30,7 @@
30 30   #set( $authorFirstName = "" )
31 31   #set( $authorLastName = "" )
32 32  #end
33 -
33 +##
34 34  #### handle status
35 35  ## $oneStatus false gets a list of statuses, true just one
36 36  #set( $oneStatus = false )
... ... @@ -48,41 +48,23 @@
48 48   #set($statusList = [$statusPar])
49 49   #end
50 50  #end
51 -
51 +##
52 52  <a name="top"> </a>
53 -<p/>
54 54  #if($oneAuthor)#if($oneStatus)
55 -
56 -
57 -= //$statusPar// Papers by $authorFirstName $authorLastName =
58 -
54 +== $statusPar / $authorFirstName $authorLastName ==
59 59  #else
60 -
61 -= Unpublished Papers by $authorFirstName $authorLastName =
62 -
56 +== Unpublished / $authorFirstName $authorLastName ==
63 63  #end#elseif($oneStatus)
64 -
65 -
66 -= //$statusPar// Papers in the #apice() Space =
67 -
58 +== $statusPar ==
68 68  #else
69 -
70 -= Unpublished Papers in the #apice() Space =
71 -
60 +== Unpublished ==
72 72  #end
73 -<p/>
74 -#if (!$oneStatus)
75 -Below, unpublished works #if($oneAuthor) by $authorFirstName $authorLastName #else in the #apice() space #end ordered by their current status.
76 -<hr />
77 -
78 -(((
79 -#foreach ($status in $statusList)
80 -#if ($velocityCount > 1) ~| #end [[$status>>#$status]]
62 +##
63 +#if( !$oneStatus )(((
64 +<div style='font-size: smaller'>#foreach( $status in $statusList )#if( $velocityCount > 1 ) | #end [[$status>>#$status]]#end</div>
65 +)))#end
81 81  #end
82 -)))
83 -<hr />
84 -#end
85 -<p/>
67 +##
86 86  #foreach ($status in $statusList)
87 87  #set ($sql = ", BaseObject as obj, LargeStringProperty as prop, StringProperty as prop1
88 88   where obj.name=doc.fullName and