Modifiche per il documento Scadenze
Dalla versione 75.1
modificato da Andrea Omicini
il 16/06/2023 13:54
il 16/06/2023 13:54
Cambia il commento:
Nessun commento per questa versione
Alla versione 67.1
modificato da Andrea Omicini
il 27/04/2023 08:28
il 27/04/2023 08:28
Cambia il commento:
Nessun commento per questa versione
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Titolo
-
... ... @@ -1,1 +1,0 @@ 1 -$services.localization.render('deadlines') - Content
-
... ... @@ -1,31 +1,24 @@ 1 -{{velocity}} 2 -{{html wiki="true" clean="false"}} 3 -#template('apice_events.vm') 4 -#template('apice_macros.vm') 5 -#isuserspace() 6 -## 7 -#if( $isUserSpace ) 8 - #userspace() 9 - #set( $oneUser = true ) 10 - #set( $userString = "%$userName%" ) 1 += {{italiano}}Scadenze{{/italiano}}{{english}}Deadlines{{/english}} = 2 + 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 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 ") 11 11 #else 12 - #set( $oneUser = false ) 10 + #set( $query = "select doc.fullName from XWikiDocument doc, BaseObject obj, BaseObject as obj1, LargeStringProperty as prop1, DateProperty as prop 11 + 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 " ) 13 13 #end 14 -## incoming deadlines 15 -#set( $query = ", BaseObject objEvent, DateProperty as propDate #if( $oneUser), BaseObject as objRole, LargeStringProperty as propWho #end 16 - 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 ") 17 17 ## execute query 18 -#set( $eventsFound = $xwiki.search Documents($query) )14 +#set( $eventsFound = $xwiki.search($query) ) 19 19 ## 20 -#template('apice_event_macros.vm') 21 -<div> 22 -#foreach( $event in $eventsFound ) 23 - #set( $eventDoc = $xwiki.getDocument($event) ) 24 - #if( !$foreach.first ) 25 - <span class="textsecondary"> • </span> 26 - #end 27 - #eventlinked($event) <span class="textprimary">#if( $eventDoc.display("paper_submission") != "" )<span class="textsecondary">—</span>#if( $eventDoc.display("abstract_submission") != "" )$eventDoc.display("abstract_submission") <em>(abstract)</em><span class="textsecondary"> / </span>#end$eventDoc.display("paper_submission") <em>(submission)</em>#end</span> 16 +#if( $eventsFound.size() > 0 ) 17 +>{{stringEngIta eng="Incoming Deadlines" ita="Prossime scadenze"/}} 18 + 19 + #foreach($event in $eventsFound) 20 + #set( $eventDoc = $xwiki.getDocument($event) ) 21 + #if( !$foreach.first ) {{themeTextSecondary}}•{{/themeTextSecondary}} #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 28 28 #end 29 -</div> 30 -{{/html}} 31 -{{/velocity}}{{pageDisplay sort="objectservice"/}} 24 +{{/velocity}}{{noShortcuts/}}