Changes for page Supervisors
From version 69.4
edited by Andrea Omicini
on 08/11/2021 14:28
on 08/11/2021 14:28
Change comment:
There is no comment for this version
To version 72.1
edited by Andrea Omicini
on 08/11/2021 14:38
on 08/11/2021 14:38
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,5 +1,5 @@ 1 1 {{include reference='Theses.Environment'/}}{{include reference='Environment'/}}{{velocity}} 2 -## publicationpage with menus2 +## thesis page with menus 3 3 #set( $thesisMenu = true ) 4 4 ## 5 5 #set( $userSelected = false ) ... ... @@ -79,23 +79,18 @@ 79 79 #set( $embodiedPage = false ) 80 80 #end 81 81 #if( $request.user ) 82 +> Tag “**$request.tag**” / {{stringEngIta eng = "Theses" ita = "Tesi" /}} / $userFirstName $userLastName // // 83 + 82 82 #set( $from = ", BaseObject as obj0, DBStringListProperty as prop0 join prop0.list item, BaseObject as obj1, StringProperty as prop1, LargeStringProperty as prop2, LargeStringProperty as prop3, LargeStringProperty as prop4, DateProperty as prop5" ) 83 83 #set ( $where = "obj0.className = 'XWiki.TagClass' and obj0.name = doc.fullName and obj0.id = prop0.id.id and prop0.id.name = 'tags' and lower(item) = lower('$request.tag') and obj1.name = doc.fullName and obj1.className = 'Theses.ThesisClass' and obj1.name <> 'Theses.ThesisClassTemplate' and obj1.name <> 'Theses.ThesisTemplate' and prop1.id.id = obj1.id and prop2.id.id = obj1.id and prop3.id.id = obj1.id and prop4.id.id = obj1.id and prop5.id.id = obj1.id and prop1.name = 'status' and prop2.name = 'supervisors' and prop3.name = 'cosupervisors' and prop4.name = 'contacts' and prop5.name = 'endDate' and lower(prop1.value) = 'completed' and ( prop2.value like '%$request.user%' or prop3.value like '%$request.user%' or prop4.value like '%$request.user%' ) order by prop5.value desc" ) 84 84 #else 85 - #set( $from = ", BaseObject as obj0, DBStringListProperty as prop0 join prop0.list item, BaseObject as obj1, DateProperty as prop1, StringProperty as prop2" ) 86 -#set( $where = "obj0.className = 'XWiki.TagClass' and obj0.name = doc.fullName and obj0.id = prop0.id.id and prop0.id.name = 'tags' and lower(item) = lower('$request.tag') and obj1.name = doc.fullName and obj1.className = 'Theses.ThesisClass' and obj1.name <> 'Theses.ThesisClassTemplate' and obj1.name <> 'Theses.ThesisTemplate' and prop1.id.id = obj1.id and prop2.id.id = obj1.id and prop1.name = 'endDate' and prop2.name = 'status' and lower(prop2.value) <> 'out-of-date' order by prop1.value desc" ) 87 - 88 - 89 - 90 - 91 - 92 - 93 - 94 - 95 95 >Tag “**$request.tag**” / {{stringEngIta eng = "Theses" ita = "Tesi" /}} 96 96 97 -#set( $sql = $from + " where " + $where ) 98 -#set( $thesisFound = $xwiki.searchDocuments($sql) ) 89 + #set( $from = ", BaseObject as obj0, DBStringListProperty as prop0 join prop0.list item, BaseObject as obj1, DateProperty as prop1, StringProperty as prop2" ) 90 +#set( $where = "obj0.className = 'XWiki.TagClass' and obj0.name = doc.fullName and obj0.id = prop0.id.id and prop0.id.name = 'tags' and lower(item) = lower('$request.tag') and obj1.name = doc.fullName and obj1.className = 'Theses.ThesisClass' and obj1.name <> 'Theses.ThesisClassTemplate' and obj1.name <> 'Theses.ThesisTemplate' and prop1.id.id = obj1.id and prop2.id.id = obj1.id and prop1.name = 'endDate' and prop2.name = 'status' and lower(prop2.value) = 'completed' order by prop1.value desc" ) 91 + #end 92 + #set( $sql = $from + " where " + $where ) 93 + #set( $thesisFound = $xwiki.searchDocuments($sql) ) 99 99 ## show tag 100 100 ((( 101 101 #foreach( $thesis in $thesisFound) ... ... @@ -103,8 +103,15 @@ 103 103 * {{thesis}}$thesisDoc{{/thesis}} 104 104 #end 105 105 ))) 101 + #if( $embodiedPage ) 102 +(% style="font-style:oblique;font-size:smaller;text-align:right;color:$theme.textSecondaryColor" %)((([ [[{{stringEngIta eng="tag cloud" ita="nuvola tag" /}}>>$doc.name]] / {{stringEngIta eng = "theses" ita = "tesi"/}} ])))(%%) 103 + #else 104 + #if( $request.user ) 105 +(% style="font-style:oblique;font-size:smaller;text-align:right;color:$theme.textSecondaryColor" %)((([ [[{{stringEngIta eng="tag cloud" ita="nuvola tag" /}}>>$doc.name||queryString="user=$request.user"]] / $userFirstName $userLastName / {{stringEngIta eng = "theses" ita = "tesi"/}} ])))(%%) 106 + #else 107 +(% style="font-style:oblique;font-size:smaller;text-align:right;color:$theme.textSecondaryColor" %)((([ [[{{stringEngIta eng="tag cloud" ita="nuvola tag" /}}>>$doc.name||]] / {{stringEngIta eng = "theses" ita = "tesi"/}} ])))(%%) 108 + #end 109 + #end 106 106 107 -(% style='font-style:oblique;font-size:smaller;text-align:right;color:gray' %)((([ [[tag cloud>>Tags]] / {{stringEngIta eng = "theses" ita = "tesi"/}} ])))(%%) 108 - 109 109 #end 110 110 {{/velocity}}