Changes for page Deadlines
From version 66.2
edited by Andrea Omicini
on 26/04/2023 19:34
on 26/04/2023 19:34
Change comment:
There is no comment for this version
To 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
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,0 +1,1 @@ 1 +$services.localization.render('deadlines') - Content
-
... ... @@ -1,19 +3,18 @@ 1 -= {{italiano}}Scadenze{{/italiano}}{{english}}Deadlines{{/english}} = 2 - 3 3 {{include reference="Events.Environment" excludeFirstHeading="true"/}}{{velocity}} 4 -#if( !$userName || $userName == "" || !$userSpace || $userSpace == "" || !$userFullname || $userFullname == "" ) 5 -## overall incoming deadlines 6 - #set( $query = "select doc.fullName from XWikiDocument doc, BaseObject obj, DateProperty as prop 7 - where doc.fullName = obj.name and obj.className = '${objectSpace}.${objectClass}' and obj.name <> '${objectPool}.${objectTemplate}' and prop.id.id = obj.id and prop.name = 'paper_submission' and ( ( year(prop.value) > year(current_date()) ) or ( year(prop.value) = year(current_date()) and month(prop.value) > month(current_date()) ) or ( year(prop.value) = year(current_date()) and month(prop.value) = month(current_date()) and day(prop.value) > day(current_date()) ) ) order by date(prop.value) asc ") 2 +#if( !$userName || $userName == "" || !$userSpace || $userSpace == "" ) 3 + #set( $oneUser = false ) 8 8 #else 9 - #set( $ query = "select doc.fullName from XWikiDocument doc, BaseObject obj, BaseObject as obj1, LargeStringPropertyasprop1, DatePropertyas prop10 - where doc.fullName = obj.name and obj.className= '${objectSpace}.${objectClass}'and obj.name <> '${objectPool}.${objectTemplate}' and prop.id.id = obj.id and prop.name = 'paper_submission' and (( year(prop.value) > year(current_date()) ) or ( year(prop.value) = year(current_date()) and month(prop.value) > month(current_date()) ) or ( year(prop.value) = year(current_date()) and month(prop.value) = month(current_date()) and day(prop.value) > day(current_date()) ) ) and obj1.name = doc.fullName and obj1.className = '${objectSpace}.Roles.${objectClass}' and prop1.id.id = obj1.id andprop1.name='who' and prop1.value like '%$userName%' order by date(prop.value) asc" )5 + #set( $oneUser = true ) 6 + #set( $userString = "%$userName%" ) 11 11 #end 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 = 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 ") 12 12 ## execute query 13 -#set( $eventsFound = $xwiki.search($query) ) 12 +#set( $eventsFound = $xwiki.searchDocuments($query) ) 14 14 ## 15 15 #if( $eventsFound.size() > 0 ) 16 ->{{stringEngIta eng=" IncomingDeadlines" ita="Prossime scadenze"/}}15 +>{{stringEngIta eng="incoming deadlines" ita="prossime scadenze"/}} 17 17 18 18 #foreach($event in $eventsFound) 19 19 #set( $eventDoc = $xwiki.getDocument($event) ) ... ... @@ -20,4 +20,4 @@ 20 20 #if( !$foreach.first ) {{themeTextSecondary}}•{{/themeTextSecondary}} #end## 21 21 {{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 22 22 #end 23 -{{/velocity}}{{noShortcuts/}} 22 +{{/velocity}}{{noShortcuts/}}{{noTagFooter/}}