Changes for page Theses

From version 17.1
edited by Andrea Omicini
on 11/12/2020 17:50
Change comment: There is no comment for this version
To version 14.1
edited by Andrea Omicini
on 11/12/2020 17:27
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,6 +2,8 @@
1 -{{include document="Main.MacroSheet"/}}{{include document="Alchemist.MacroSheet"/}}
2 2  {{velocity filter="none"}}{{html clean="false" wiki="true"}}
3 3  #foreach ($thesisStatus in ["Available","Ongoing","Completed"])
3 +
4 += $thesisStatus =
5 +
4 4  ##tagged research on Thesis space based on tag "Alchemist"
5 5  #set( $thesisTag = "Alchemist")
6 6  #set ( $from = ", BaseObject as obj0, DBStringListProperty as prop0 join prop0.list item, BaseObject as obj1, DateProperty as prop1, StringProperty as prop2" )
... ... @@ -7,13 +7,10 @@
7 7  #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('$thesisTag') and obj1.name=doc.fullName and obj1.className='Theses.ThesisClass' and obj1.name<>'Theses.ThesisClassTemplate' and prop1.id.id=obj1.id and prop1.name = 'endDate' and prop2.id.id=obj1.id and prop2.name = 'status' and prop2.value = '$thesisStatus' order by prop1.value desc" )
8 8  #set ( $sql = $from + " where " + $where )
9 9  #set($thesisFound = $xwiki.searchDocuments($sql))
10 -#if ($thesisFound.size()>0)
11 -= $thesisStatus =
12 12  #foreach ($thesis in $thesisFound)#set($thesisDoc = $xwiki.getDocument($thesis))
13 13  * [[$thesisDoc.getValue('title')>>$thesis]]
14 +#end
14 14  #end
15 -#end
16 -#end
17 17  {{/html}}
18 18  
19 19  

Logo