Modifiche per il documento Disponibili
Dalla versione 62.2
modificato da Andrea Omicini
il 30/06/2023 12:04
il 30/06/2023 12:04
Cambia il commento:
Nessun commento per questa versione
Alla versione 56.1
modificato da Andrea Omicini
il 29/01/2023 21:59
il 29/01/2023 21:59
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('showcase') - Content
-
... ... @@ -1,67 +1,46 @@ 1 -{{velocity}} 2 -{{html clean="false" wiki="true"}} 3 -#template('apice_theses.vm') 4 -#template('apice_macros.vm') 1 += {{italiano}}Vetrina{{/italiano}}{{english}}Showcase{{/english}} = 2 + 3 +{{include reference="Theses.Environment" excludeFirstHeading="true"/}}{{velocity}} 4 +#set( $thesisMenu = true ) 5 +#set( $showAvailableTheses = true ) 5 5 ## 6 -#isuserspace() 7 -#if( $isUserSpace ) 8 - #template('apice_thesis_personal.vm') 9 - #userspace() 10 -## user space variables 11 - #set( $query = ", BaseObject as objPersonalPub, LargeStringProperty as propUser 12 - where objPersonalPub.name = doc.fullName and objPersonalPub.className = '$objectSpace.$objectClass' and propUser.id.id = objPersonalPub.id and propUser.name = 'user' and propUser.value = '$userName' " ) 13 - #set( $personalThesisDocs = $xwiki.searchDocuments($query) ) 14 - #if( $personalThesisDocs.size() > 0 ) 15 - #set( $personalThesisDoc = $xwiki.getDocument($personalThesisDocs[0]) ) 16 - #else 17 - #stop 18 - #end 19 - #if( $personalThesisDoc.maxYears && $personalThesisDoc.maxYears != "" ) 20 - #set( $maxPubYears = $personalThesisDoc.display('maxYears','view') ) 21 - #end 22 - #if( $personalThesisDoc.firstYear && $personalThesisDoc.firstYear != "" ) 23 - #set( $firstYearThesis = $personalThesisDoc.display('firstYear','view') ) 24 - #end 25 - #if( $personalThesisDoc.lastYear && $personalThesisDoc.lastYear != "" ) 26 - #set( $lastYearThesis = $personalThesisDoc.display('lastYear','view') ) 27 - #end 28 - #if( $personalThesisDoc.getValue('statuses').size() > 0 ) 29 - #set( $thesisStatuses = $personalThesisDoc.getValue('statuses') ) 30 - #end 31 - #if( $personalThesisDoc.getValue('cycles').size() > 0 ) 32 - #set( $thesisCycles = $personalThesisDoc.getValue('cycles') ) 33 - #end 34 - #set( $thesisAms = $personalThesisDoc.getValue('showAms') ) 35 -#### USER SHOWCASE / START 7 +#if( $showAvailableTheses ) 8 + #set( $statuses = $allThesisStatuses ) 9 +#else 10 + #set( $statuses = $workingThesisStatuses ) 11 +#end 12 +#if( $showPhDTheses ) 13 + #set( $cycles = $allThesisCycles ) 14 +#else 15 + #set( $cycles = $lowThesisCycles ) 16 +#end 36 36 ## 37 -## set control varibles 38 -## CLOUDS / START 39 - #if( $xwiki.exists("${userSpace}.${objectSpace}.Clouds.WebHome") ) 40 -* {{english}}thesis{{/english}} [[{{stringEngIta eng="clouds" ita="nuvole"/}}>>${userSpace}.${objectSpace}.Clouds.WebHome]] {{italiano}}delle tesi{{/italiano}} 41 - #if( $xwiki.exists("${userSpace}.${objectSpace}.Clouds.Tags") ) 42 -** [[$services.localization.render('tags')>>${userSpace}.${objectSpace}.Clouds.Tags]] 43 - #end 44 - #end 45 -## CLOUDS / END 18 +#if( !$userName || $userName == "" || !$userSpace || $userSpace == "" || !$userFullname || $userFullname == "" ) 19 +#### GENERAL SHOWCASE / START 46 46 ## 47 47 ## PER STATUS / START 48 - #if( $xwiki.exists("${userSpace}.${objectSpace}.PerStatus") ) 49 -* {$services.localization.render('theses') [[$services.localization.render('perstatus')>>${userSpace}.${objectSpace}.PerStatus]] 50 - #foreach( $status in $statuses ) 51 -#if( !$foreach.first ), #{else}** #end[[{{thesisStatus plural="true" uppercase="false" short='true'}}$status{{/thesisStatus}}>>${userSpace}.${objectSpace}.PerStatus||queryString='status=$status']]#end 22 + #if( $xwiki.exists("${objectSpace}.PerStatus") ) 23 +* {{stringEngIta eng="theses" ita="tesi"/}} [[{{stringEngIta eng="per status" ita="per stato"/}}>>${objectSpace}.PerStatus]] 24 +** #foreach( $status in $statuses )#if( $foreach.index > 0 ), #end[[{{thesisStatus plural="true" uppercase="false" short='true'}}$status{{/thesisStatus}}>>${objectSpace}.PerStatus||queryString='status=$status']]#end 52 52 53 - 26 + #end 54 54 ## PER STATUS / END 55 55 ## 56 -#### USER SHOWCASE / END 57 -#else 58 -#### GENERAL SHOWCASE / START 29 +## PER YEAR / START 30 + #if( $xwiki.exists("${objectSpace}.PerYear") ) 31 +* {{thesisStatus plural="true" upperCase="false" short="false"}}completed{{/thesisStatus}} [[{{stringEngIta eng="per year" ita="per anno"/}}>>${objectSpace}.PerYear]] 32 +** #foreach( $year in [$lastYearThesis..$firstYearThesis] )#if( $foreach.count < $maxThesisYears || ($foreach.count == $maxThesisYears && $year == $firstYearThesis) )#if( !$foreach.first ), #end[[$year>>${objectSpace}.PerYear||queryString="year=$year"]]#elseif( $foreach.count == $maxThesisYears ), [[$year–$firstYearThesis>>${objectSpace}.PerYear||queryString="from=$firstYearThesis&to=$year"]]#end#end 33 + 34 + #end 35 +## PER YEAR / END 59 59 ## 60 -## set control variables 61 -#set( $statuses = $allThesisStatuses ) 62 -##set( $statuses = $workingThesisStatuses ) 63 -#set( $cycles = $allThesisCycles ) 64 -##set( $cycles = $lowThesisCycles ) 37 +## PER CYCLE / START 38 + #if( $xwiki.exists("${objectSpace}.PerCycle") ) 39 +* {{thesisStatus plural="true" upperCase="false" short="false"}}completed{{/thesisStatus}} [[{{stringEngIta eng="per cycle" ita="per livello"/}}>>${objectSpace}.PerCycle]] 40 +** #foreach( $cycle in $allThesisCycles )#if( !$foreach.first ), #end[[{{thesisCycle plural="true" uppercase="false" short='true'}}$cycle{{/thesisCycle}}>>${objectSpace}.PerCycle||queryString='cycle=$cycle']]#end 41 + 42 + #end 43 +## PER CYCLE / END 65 65 ## 66 66 ## CLOUDS / START 67 67 #if( $xwiki.exists("${objectSpace}.Clouds.WebHome") ) ... ... @@ -75,45 +75,76 @@ 75 75 #if( $someDisplayed ), #{else}** #end[[{{stringEngIta eng="supervisors" ita="supervisori"/}}>>${objectSpace}.Clouds.Supervisors]]## 76 76 #set( $someDisplayed = true ) 77 77 #end 78 - #if( $xwiki.exists("${objectSpace}.Clouds.Cosupervisors") ) 79 -#if( $someDisplayed ), #{else}** #end[[{{stringEngIta eng="co-supervisors" ita="co-supervisori"/}}>>${objectSpace}.Clouds.Cosupervisors]]## 80 - #set( $someDisplayed = true ) 81 - #end 82 - 83 83 #end 84 84 ## CLOUDS / END 85 85 ## 60 +## BY CONTENT / START 61 + #if( $xwiki.exists("${objectSpace}.Search") ) 62 +* [[{{stringEngIta eng="search" ita="ricerca"/}}>>${objectSpace}.Search]] {{stringEngIta eng="theses by content" ita="tesi per contenuto"/}} 63 + #end 64 +## BY CONTENT / END 65 +## 66 +#### GENERAL SHOWCASE / END 67 +#else 68 +#### USER SHOWCASE / START 69 + #if( $apiceTheses ) 86 86 ## PER STATUS / START 87 - #if( $xwiki.exists("${objectSpace}.PerStatus") ) 88 -* {{stringEngIta eng="theses" ita="tesi"/}} [[{{stringEngIta eng="per status" ita="per stato"/}}>>${objectSpace}.PerStatus]] 89 -** #foreach( $status in $statuses )#if( $foreach.index > 0 ), #end[[{{thesisStatus plural="true" uppercase="false" short='true'}}$status{{/thesisStatus}}>>${objectSpace}.PerStatus||queryString='status=$status']]#end 71 + #if( $xwiki.exists("${userSpace}.${objectSpace}.PerStatus") ) 72 +* {{stringEngIta eng="theses" ita="tesi"/}} [[{{stringEngIta eng="per status" ita="per stato"/}}>>${userSpace}.${objectSpace}.PerStatus]] 73 + #foreach( $status in $statuses ) 74 +#if( !$foreach.first ), #{else}** #end[[{{thesisStatus plural="true" uppercase="false" short='true'}}$status{{/thesisStatus}}>>${userSpace}.${objectSpace}.PerStatus||queryString='status=$status']]#end 90 90 91 - #end 76 + #end 92 92 ## PER STATUS / END 93 93 ## 94 94 ## PER YEAR / START 95 - #if( $xwiki.exists("${objectSpace}.PerYear") ) 96 -* {{thesisStatus plural="true" upperCase="false" short="false"}}completed{{/thesisStatus}} [[{{stringEngIta eng="per year" ita="per anno"/}}>>${objectSpace}.PerYear]] 97 -** #foreach( $year in [$lastYearThesis..$firstYearThesis] )#if( $foreach.count < $maxThesisYears || ($foreach.count == $maxThesisYears && $year == $firstYearThesis) )#if( !$foreach.first ), #end[[$year>>${objectSpace}.PerYear||queryString="year=$year"]]#elseif( $foreach.count == $maxThesisYears ), [[$year–$firstYearThesis>>${objectSpace}.PerYear||queryString="from=$firstYearThesis&to=$year"]]#end#end 80 + #if( $xwiki.exists("${userSpace}.${objectSpace}.PerYear") ) 81 +* {{thesisStatus plural="true" upperCase="false" short="false"}}completed{{/thesisStatus}} [[{{stringEngIta eng="per year" ita="per anno"/}}>>${userSpace}.${objectSpace}.PerYear]] 82 +** #foreach( $year in [$lastYearThesis..$firstYearThesis] )#if( $foreach.count < $maxThesisYears || ($foreach.count == $maxThesisYears && $year == $firstYearThesis) )#if( !$foreach.first ), #end[[$year>>${userSpace}.${objectSpace}.PerYear||queryString="year=$year"]]#elseif( $foreach.count == $maxThesisYears ), [[$year–$firstYearThesis>>${userSpace}.${objectSpace}.PerYear||queryString="from=$firstYearThesis&to=$year"]]#end#end 98 98 99 - #end 84 + #end 100 100 ## PER YEAR / END 101 101 ## 102 102 ## PER CYCLE / START 103 - #if( $xwiki.exists("${objectSpace}.PerCycle") ) 104 -* {{thesisStatus plural="true" upperCase="false" short="false"}}completed{{/thesisStatus}} [[{{stringEngIta eng="per cycle" ita="per livello"/}}>>${objectSpace}.PerCycle]] 105 -** #foreach( $cycle in $allThesisCycles )#if( !$foreach.first ), #end[[{{thesisCycle plural="true" uppercase="false" short='true'}}$cycle{{/thesisCycle}}>>${objectSpace}.PerCycle||queryString='cycle=$cycle']]#end 88 + #if( $xwiki.exists("${userSpace}.${objectSpace}.PerCycle") ) 89 +* {{thesisStatus plural="true" upperCase="false" short="false"}}completed{{/thesisStatus}} [[{{stringEngIta eng="per cycle" ita="per livello"/}}>>${userSpace}.${objectSpace}.PerCycle]] 90 +** #foreach( $cycle in $cycles ) 91 +#if( !$foreach.first ), #end[[{{thesisCycle plural="true" uppercase="false" short='true'}}$cycle{{/thesisCycle}}>>${userSpace}.${objectSpace}.PerCycle||queryString='cycle=$cycle']]#end 106 106 107 - #end 93 + #end 108 108 ## PER CYCLE / END 109 109 ## 110 -## BY CONTENT / START 111 - #if( $xwiki.exists("${objectSpace}.Search") ) 112 -* [[{{stringEngIta eng="search" ita="ricerca"/}}>>${objectSpace}.Search]] {{stringEngIta eng="theses by content" ita="tesi per contenuto"/}} 96 +## PER ROLE / START 97 + #if( $xwiki.exists("${userSpace}.${objectSpace}.PerStatus") ) 98 +##* {{stringEngIta eng="theses" ita="tesi"/}} [[{{stringEngIta eng="per status & role" ita="per stato e ruolo"/}}>>${userSpace}.${objectSpace}.PerStatus]] 99 +* {{stringEngIta eng="theses" ita="tesi"/}} {{stringEngIta eng="per role" ita="per ruolo"/}} 100 + #foreach( $role in $allThesisRoles ) 101 +#if( !$foreach.first ), #{else}** #end[[{{thesisRole plural="false" uppercase="false" short='true'}}$role{{/thesisRole}}>>${userSpace}.${objectSpace}.PerStatus||queryString='role=$role']]#end 102 + 103 + #end 104 +## PER ROLE / END 105 +## 106 +## CLOUDS / START 107 + #if( $xwiki.exists("${userSpace}.${objectSpace}.Clouds.WebHome") ) 108 +* {{english}}thesis{{/english}} [[{{stringEngIta eng="clouds" ita="nuvole"/}}>>${userSpace}.${objectSpace}.Clouds.WebHome]] {{italiano}}delle tesi{{/italiano}} 109 + #if( $xwiki.exists("${userSpace}.${objectSpace}.Clouds.Tags") ) 110 +** [[{{stringEngIta eng="tags" ita="tag" /}}>>${userSpace}.${objectSpace}.Clouds.Tags]] 111 + #end 112 + #end 113 +## CLOUDS / END 114 + #end 115 +## 116 +## OTHER / START 117 + #if( $amsTheses ) 118 +> In AMS 119 +## 120 +* [[AMS Laurea>>http://amslaurea.unibo.it/view/relatore/$userLastName=3A$userFirstName=3A=3A/||target="_blank"]] 121 + #if( $showPhDTheses ) 122 +* [[AMS Dottorato>>http://amsdottorato.unibo.it/view/relatore/$userLastName=3A$userFirstName=3A=3A.html||target="_blank"]] 123 + #end 113 113 #end 114 -## BY CONTENT/ END125 +## OTHER / END 115 115 ## 116 -#### GENERALSHOWCASE / END127 +#### USER SHOWCASE / END 117 117 #end 118 -{{/html}} 119 -{{/velocity}}{{pageDisplay sort="objectservice"/}} 129 +{{/velocity}}