Changes for page Deadlines
From version 85.1
edited by Andrea Omicini
on 25/06/2023 10:47
on 25/06/2023 10:47
Change comment:
There is no comment for this version
To version 87.1
edited by Andrea Omicini
on 03/07/2023 23:54
on 03/07/2023 23:54
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,11 +1,13 @@ 1 1 {{velocity}} 2 2 {{html clean="false" wiki="true"}} 3 -#template('apice_events.vm') 3 +#template('apice_macros.vm') 4 +#setobjectspace("Events") 5 +#template('apice_event_macros.vm') 4 4 #template('apice_user_param.vm') 5 5 ## user forthcoming events 6 6 ## incoming deadlines 7 7 #set( $query = ", BaseObject objEvent, DateProperty as propDate #if( $oneUser), BaseObject as objRole, LargeStringProperty as propWho #end 8 - where doc.fullName = objEvent.name and objEvent.className = '${objectSpace}. ${objectClass}' and objEvent.name <> '${objectPool}.${objectTemplate}' and propDate.id.id = objEvent.id and propDate.name = 'paper_submission' and date(propDate.value) > current_date() #if( $oneUser) and objRole.name = doc.fullName and objRole.className = '${objectSpace}.Roles.${objectClass}' and propWho.id.id = objRole.id and propWho.name = 'who' and propWho.value like '$userString' #end order by date(propDate.value) asc ")10 + where doc.fullName = objEvent.name and objEvent.className = '${objectSpace}.Class' and objEvent.name <> '${objectPool}.Template' and propDate.id.id = objEvent.id and propDate.name = 'paper_submission' and date(propDate.value) > current_date() #if( $oneUser) and objRole.name = doc.fullName and objRole.className = '${objectSpace}.Roles.Class' and propWho.id.id = objRole.id and propWho.name = 'who' and propWho.value like '$userString' #end order by date(propDate.value) asc ") 9 9 ## execute query 10 10 #set( $itemFound = $xwiki.searchDocuments($query) ) 11 11 ## ... ... @@ -13,7 +13,6 @@ 13 13 <div class="mainheader"> 14 14 $services.localization.render('incomingdeadlines').toLowerCase() 15 15 </div> 16 -#template('apice_event_macros.vm') 17 17 <div> 18 18 #foreach( $item in $itemFound ) 19 19 #set( $itemDoc = $xwiki.getDocument($item) )