Changes for page Available

From version 86.16
edited by Andrea Omicini
on 28/09/2023 23:48
Change comment: There is no comment for this version
To version 86.18
edited by Andrea Omicini
on 28/09/2023 23:54
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -23,8 +23,17 @@
23 23  ##
24 24  ## APICE / START
25 25  #if( $showAvailable == 1 )
26 -<div>
27 --
26 +## query
27 + #set( $query = ", BaseObject as objThesis, DateProperty as propDate, StringProperty as propStatus, StringProperty as propSort, LargeStringProperty as propSupervisor, LargeStringProperty as propCosupervisor, LargeStringProperty as propContact
28 + where objThesis.name = doc.fullName and objThesis.className = '${mainSpace}.Class' and objThesis.name <> '${objectPool}.Template' and propDate.id.id = objThesis.id and propDate.name = 'end' and propStatus.id.id = objThesis.id and propStatus.name = 'status' and propStatus.value = 'available' and propSupervisor.id.id = objThesis.id and propSupervisor.name = 'supervisors' and propCosupervisor.id.id = objThesis.id and propCosupervisor.name = 'cosupervisors' and propContact.id.id = objThesis.id and propContact.name = 'contacts' and ( propSupervisor.value like '%$userName%' or propCosupervisor.value like '%$userName%' or propContact.value like '%$userName%' ) order by propDate.value desc" )
29 + #set( $itemFound = $xwiki.searchDocuments($query) )
30 + #set( $itemFoundNo = $itemFound.size() )
31 +<div class="mainheader">
32 +{{stringEngIta eng="available theses" ita="tesi disponibili"/}}
33 +</div><div>
34 + #foreach( $item in $itemFound )
35 +* $item
36 + #end
28 28  </div>
29 29  #end
30 30  ##