Changes for page Deadlines

From version 66.1
edited by Andrea Omicini
on 25/04/2023 02:56
Change comment: There is no comment for this version
To version 67.1
edited by Andrea Omicini
on 27/04/2023 08:28
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -4,7 +4,8 @@
4 4  #if( !$userName || $userName == "" || !$userSpace || $userSpace == "" || !$userFullname || $userFullname == "" )
5 5  ## overall incoming deadlines
6 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 ")
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 date(prop.value) > current_date() order by date(prop.value) asc ")
8 +## 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 ")
8 8  #else
9 9   #set( $query = "select doc.fullName from XWikiDocument doc, BaseObject obj, BaseObject as obj1, LargeStringProperty as prop1, DateProperty as prop
10 10   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 and prop1.name = 'who' and prop1.value like '%$userName%' order by date(prop.value) asc " )
... ... @@ -18,6 +18,6 @@
18 18   #foreach($event in $eventsFound)
19 19   #set( $eventDoc = $xwiki.getDocument($event) )
20 20   #if( !$foreach.first ) {{themeTextSecondary}}•{{/themeTextSecondary}} #end##
21 -{{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
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
22 22  #end
23 23  {{/velocity}}{{noShortcuts/}}