Changes for page Deadlines

From version 62.1
edited by Andrea Omicini
on 24/04/2023 01:08
Change comment: There is no comment for this version
To version 59.3
edited by Andrea Omicini
on 01/04/2023 20:01
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,9 +1,6 @@
1 -= {{italiano}}Scadenze{{/italiano}}{{english}}Deadlines{{/english}} =
1 += {{italiano}}Prossime scadenze{{/italiano}}{{english}}Incoming Deadlines{{/english}} =
2 2  
3 -{{include reference="Macros.Velocity" excludeFirstHeading="true"/}}{{include reference="Events.Environment" excludeFirstHeading="true"/}}{{velocity}}
4 -## set page display
5 -#set( $eventMenu = true )
6 -##
3 +{{include reference="Events.Environment" excludeFirstHeading="true"/}}{{velocity}}
7 7  #if( !$userName || $userName == "" || !$userSpace || $userSpace == "" || !$userFullname || $userFullname == "" )
8 8  ## overall incoming deadlines
9 9   #set( $query = "select doc.fullName from XWikiDocument doc, BaseObject obj, DateProperty as prop
... ... @@ -10,7 +10,7 @@
10 10   where doc.fullName = obj.name and obj.className = '$objectSpace.$objectClass' and obj.name <> '$objectSpace.$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 ")
11 11  #else
12 12   #set( $query = "select doc.fullName from XWikiDocument doc, BaseObject obj, BaseObject as obj1, LargeStringProperty as prop1, DateProperty as prop
13 - where doc.fullName = obj.name and obj.className = '$objectSpace.$objectClass' and obj.name <> '$objectSpace.$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 and prop1.name = 'who' and prop1.value like '%$userName%' order by date(prop.value) asc " )
10 + where doc.fullName = obj.name and obj.className = '$objectSpace.$objectClass' and obj.name <> '$objectSpace.$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 and prop1.name = 'who' and prop1.value like '%$userName%' order by date(prop2.value) asc " )
14 14  #end
15 15  ## execute query
16 16  #set( $eventsFound = $xwiki.search($query) )
... ... @@ -21,6 +21,6 @@
21 21   #foreach($event in $eventsFound)
22 22   #set( $eventDoc = $xwiki.getDocument($event) )
23 23   #if( !$foreach.first ) {{themeTextSecondary}}•{{/themeTextSecondary}} #end##
24 -{{eventAcronymAt}}$eventDoc{{/eventAcronymAt}} {{themeTextPrimary}}({{eventDates}}$eventDoc{{/eventDates}}){{/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 +{{eventAcronym}}$eventDoc{{/eventAcronym}} {{themeTextPrimary}}({{eventDates}}$eventDoc{{/eventDates}}){{/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
25 25  #end
26 -{{/velocity}}{{noShortcuts/}}
23 +{{/velocity}}