Changes for page Deadlines
From version 72.1
edited by Andrea Omicini
on 12/05/2023 18:09
on 12/05/2023 18:09
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 (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,0 @@ 1 -$services.localization.render('deadlines') - Content
-
... ... @@ -1,3 +1,5 @@ 1 += {{italiano}}Scadenze{{/italiano}}{{english}}Deadlines{{/english}} = 2 + 1 1 {{include reference="Events.Environment" excludeFirstHeading="true"/}}{{velocity}} 2 2 #if( !$userName || $userName == "" || !$userSpace || $userSpace == "" ) 3 3 #set( $oneUser = false ) ... ... @@ -6,13 +6,13 @@ 6 6 #set( $userString = "%$userName%" ) 7 7 #end 8 8 ## overall incoming deadlines 9 -#set( $query = ", BaseObject objEvent, DateProperty as propDate #if( $oneUser), BaseObject as objRole, LargeStringProperty as propWho #end 10 - 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 ") 11 11 ## execute query 12 -#set( $eventsFound = $xwiki.search Documents($query) )14 +#set( $eventsFound = $xwiki.search($query) ) 13 13 ## 14 14 #if( $eventsFound.size() > 0 ) 15 ->{{stringEngIta eng=" incomingdeadlines" ita="prossime scadenze"/}}17 +>{{stringEngIta eng="Incoming Deadlines" ita="Prossime scadenze"/}} 16 16 17 17 #foreach($event in $eventsFound) 18 18 #set( $eventDoc = $xwiki.getDocument($event) ) ... ... @@ -19,4 +19,4 @@ 19 19 #if( !$foreach.first ) {{themeTextSecondary}}•{{/themeTextSecondary}} #end## 20 20 {{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 21 21 #end 22 -{{/velocity}}{{noShortcuts/}} {{noTagFooter/}}24 +{{/velocity}}{{noShortcuts/}}