Changes for page Deadlines
From version 71.3
edited by Andrea Omicini
on 12/05/2023 18:08
on 12/05/2023 18:08
Change comment:
There is no comment for this version
To version 69.1
edited by Andrea Omicini
on 27/04/2023 08:35
on 27/04/2023 08:35
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -8,13 +8,13 @@ 8 8 #set( $userString = "%$userName%" ) 9 9 #end 10 10 ## overall incoming deadlines 11 -#set( $query = ", BaseObject objEvent, DateProperty as propDate #if( $oneUser), BaseObject as objRole, LargeStringProperty as propWho #end 12 - where doc.fullName = objEvent.name and objEvent.className = '${objectSpace}.${objectClass}' and objEvent.name <> '${objectPool}.${objectTemplate}' and propDate.id.id = obj Event.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 ")11 +#set( $query = "select doc.fullName from XWikiDocument doc, BaseObject objEvent, DateProperty as propDate #if( $oneUser), BaseObject as objRole, LargeStringProperty as propWho #end 12 + where doc.fullName = objEvent.name and objEvent.className = '${objectSpace}.${objectClass}' and objEvent.name <> '${objectPool}.${objectTemplate}' and propDate.id.id = obj.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 ") 13 13 ## execute query 14 -#set( $eventsFound = $xwiki.search Documents($query) )14 +#set( $eventsFound = $xwiki.search($query) ) 15 15 ## 16 16 #if( $eventsFound.size() > 0 ) 17 ->{{stringEngIta eng=" incomingdeadlines" ita="prossime scadenze"/}}17 +>{{stringEngIta eng="Incoming Deadlines" ita="Prossime scadenze"/}} 18 18 19 19 #foreach($event in $eventsFound) 20 20 #set( $eventDoc = $xwiki.getDocument($event) ) ... ... @@ -21,4 +21,4 @@ 21 21 #if( !$foreach.first ) {{themeTextSecondary}}•{{/themeTextSecondary}} #end## 22 22 {{eventAcronymAt}}$eventDoc{{/eventAcronymAt}} {{themeTextPrimary}}({{eventWhen}}$eventDoc{{/eventWhen}}){{/themeTextPrimary}}#if( $eventDoc.display("paper_submission") != "" ){{themeTextSecondary}} – {{/themeTextSecondary}}#if( $eventDoc.display("abstract_submission") != "" )$eventDoc.display("abstract_submission") {{themeTextPrimary}}//(abstract)//{{/themeTextPrimary}}{{themeTextSecondary}} / {{/themeTextSecondary}}#end$eventDoc.display("paper_submission") {{themeTextPrimary}}//(submission)//{{/themeTextPrimary}}#end(%%)#end 23 23 #end 24 -{{/velocity}}{{noShortcuts/}} {{noTagFooter/}}24 +{{/velocity}}{{noShortcuts/}}