Modifiche per il documento Per anno
Dalla versione 17.2
modificato da Andrea Omicini
il 22/10/2021 23:29
il 22/10/2021 23:29
Cambia il commento:
Nessun commento per questa versione
Alla versione 17.3
modificato da Andrea Omicini
il 25/10/2021 16:19
il 25/10/2021 16:19
Cambia il commento:
Nessun commento per questa versione
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Titolo
-
... ... @@ -1,0 +1,1 @@ 1 +Theses per Status - Content
-
... ... @@ -1,22 +1,32 @@ 1 -{{include reference=" Main.MacroSheet"/}}{{include reference="Theses.Environment"/}}{{include reference="Environment"/}}{{velocity}}1 +{{include reference="Theses.Environment"/}}{{include reference="Environment"/}}{{velocity}} 2 2 #set( $thesisMenu = true ) 3 3 #### get parameters 4 4 ## hypothesis: $thesisStatus set, default "Completed" 5 -## to do: get from parameter 6 -#if( $thesisStatus == "Available" ) 5 +## status parameter 6 +#set( $statusPar = $request.status.trim().toLowerCase() ) 7 +#if( $statusPar != '' && $allThesisStatuses.contains($statusPar) ) 8 + #set( $selectedStatus = $statusPar ) 9 +#else 10 + #set( $selectedStatus = 'all' ) 11 +#end 12 +##check velocity variable, takes precedence 13 +#if( $thesisStatus && $thesisStatus != '' && $allThesisStatuses.contains($thesisStatus.trim().toLowerCase()) ) 14 + #set( $selectedStatus = $thesisStatus.trim().toLowerCase() ) 15 +#end 16 +## set ordering field 17 +#if( $selectedStatus == "available" ) 7 7 #set( $orderingDateFieldName = "availabilityDate" ) 8 -#elseif( $t hesisStatus == "Ongoing" )19 +#elseif( $selectedStatus == "ongoing" ) 9 9 #set( $orderingDateFieldName = "startDate" ) 10 10 #else 11 - #set( $thesisStatus = "Completed" ) 12 12 #set( $orderingDateFieldName = "endDate" ) 13 13 #end 14 14 ## invariant: $thesisStatus set, $orderingDateFieldName set correspondingly 15 15 ## who 16 -#set( $userNamePar = $ context.getRequest().getParameter("user"))17 -#set( $supervisorNamePar = $ context.getRequest().getParameter("supervisor"))18 -#set( $cosupervisorNamePar = $ context.getRequest().getParameter("cosupervisor"))19 -#set( $contactNamePar = $ context.getRequest().getParameter("contact"))26 +#set( $userNamePar = $request.user ) 27 +#set( $supervisorNamePar = $request.supervisor ) 28 +#set( $cosupervisorNamePar = $request.cosupervisor ) 29 +#set( $contactNamePar = $request.contact ) 20 20 #### set default values 21 21 #set( $userSelected = false ) 22 22 #set( $roleSelected = false )