Changes for page Supervisors

From version 109.1
edited by Andrea Omicini
on 03/07/2023 18:41
Change comment: There is no comment for this version
To version 111.1
edited by Andrea Omicini
on 06/07/2023 19:17
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,14 +1,14 @@
1 1  {{velocity}}
2 2  {{html clean="false" wiki="true"}}
3 3  #template('apice_macros.vm')
4 -#objectspace()
5 -##
4 +#setobjectspace("Theses")
5 +#template('apice_thesis_macros.vm')
6 6  #### tag parameter possibly brings name to be used as tag
7 7  #if( !$request.tag )
8 8  ## no tag parameter --> just the cloud
9 9  ## set query
10 10   #set( $query = ", BaseObject as objThesis, LargeStringProperty as propSupervisors, StringProperty as propStatus, DateProperty as propEnddate
11 - where objThesis.name = doc.fullName and objThesis.className = '${objectSpace}.Class' and objThesis.name <> '${objectSpace}.Template' and propSupervisors.id.id = objThesis.id and propStatus.id.id = objThesis.id and propEnddate.id.id = objThesis.id and propSupervisors.name = 'supervisors' and propSupervisors.value <> '' and propStatus.name = 'status' and lower(propStatus.value) = 'completed' and propEnddate.name = 'end' order by propEnddate.value desc" )
11 + where objThesis.name = doc.fullName and objThesis.className = '${mainSpace}.Class' and objThesis.name <> '${objectPool}.Template' and propSupervisors.id.id = objThesis.id and propStatus.id.id = objThesis.id and propEnddate.id.id = objThesis.id and propSupervisors.name = 'supervisors' and propSupervisors.value <> '' and propStatus.name = 'status' and lower(propStatus.value) = 'completed' and propEnddate.name = 'end' order by propEnddate.value desc" )
12 12  ## execute query
13 13   #set( $itemFound = $xwiki.searchDocuments($query) )
14 14   #set( $itemFoundNo = $itemFound.size() )
... ... @@ -70,7 +70,7 @@
70 70  ##
71 71  #### TAG PAGE / START
72 72   #set( $query = ", BaseObject as objThesis, LargeStringProperty as propSupervisors, StringProperty as propStatus, DateProperty as propEnddate
73 - where objThesis.name = doc.fullName and objThesis.className = '${objectSpace}.Class' and objThesis.name <> '${objectSpace}.Template' and propSupervisors.id.id = objThesis.id and propStatus.id.id = objThesis.id and propEnddate.id.id = objThesis.id and propSupervisors.name = 'supervisors' and propSupervisors.value like '%$request.tag%' and propStatus.name = 'status' and lower(propStatus.value) = 'completed' and propEnddate.name = 'end' order by propEnddate.value desc" )
73 + where objThesis.name = doc.fullName and objThesis.className = '${mainSpace}.Class' and objThesis.name <> '${objectPool}.Template' and propSupervisors.id.id = objThesis.id and propStatus.id.id = objThesis.id and propEnddate.id.id = objThesis.id and propSupervisors.name = 'supervisors' and propSupervisors.value like '%$request.tag%' and propStatus.name = 'status' and lower(propStatus.value) = 'completed' and propEnddate.name = 'end' order by propEnddate.value desc" )
74 74  ## execute query
75 75   #set( $itemFound = $xwiki.searchDocuments($query) )
76 76   #set( $itemNo = $itemFound.size() )
... ... @@ -84,7 +84,6 @@
84 84   #end
85 85  </div>
86 86  ## thesis list
87 - #template('apice_thesis_macros.vm')
88 88   #foreach( $item in $itemFound )
89 89  <div>
90 90  [[image:icon:book]] #thesislinked($item)