Modifiche per il documento Tutte le tesi
Dalla versione 12.1
modificato da Andrea Omicini
il 03/07/2023 18:31
il 03/07/2023 18:31
Cambia il commento:
Nessun commento per questa versione
Alla versione 7.1
modificato da Andrea Omicini
il 03/02/2023 14:33
il 03/02/2023 14:33
Cambia il commento:
Nessun commento per questa versione
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Titolo
-
... ... @@ -1,1 +1,0 @@ 1 -$services.localization.render('thesisall') - Lingua predefinita
-
... ... @@ -1,0 +1,1 @@ 1 +en - Content
-
... ... @@ -1,32 +1,11 @@ 1 -{{velocity}} 2 -#template('apice_macros.vm') 3 -#setobjectspace("Theses") 4 -#template('apice_thesis_macros.vm') 5 -{{html wiki="true" clean="false"}} 6 -## query 7 -#set( $query = ", BaseObject as obj, DateProperty as prop where obj.name = doc.fullName and obj.className = '${objectSpace}.Class' and obj.name <> '${objectPool}.Template' and prop.id.id = obj.id and prop.name = 'end' order by prop.value desc ") 8 -#set( $itemFound = $xwiki.searchDocuments($query) ) 9 -## how many items found? 10 -#set( $itemFound = $xwiki.searchDocuments($query) ) 11 -## how many items found? 12 -#set( $itemNo = $itemFound.size() ) 13 -## header start 14 -<div class="mainheader"> 15 -$itemNo 16 -#if( $itemNo == 1 ) 17 - $services.localization.render('thesis').toLowerCase() 18 -#{else} 19 - $services.localization.render('theses').toLowerCase() 20 -#end 21 -</div> 22 -## header end 23 -## display items separated by dots / start 24 -#foreach( $item in $itemFound ) 25 - #if( !$foreach.first ) 26 - <span class="menumainbody"> • </span> 27 - #end 28 - #thesislinked($item) 29 -#end 30 -## display items separated by dots / end 31 -{{/html}} 32 -{{/velocity}}{{pageDisplay sort="objectservice"/}} 1 += {{stringEngIta eng="All" ita="Tutte"/}} = 2 + 3 +{{include reference="Theses.Environment" excludeFirstHeading="true"/}}{{velocity}} 4 +#set( $sql = ", BaseObject as obj, DateProperty as prop where obj.name = doc.fullName and obj.className = '${objectSpace}.${objectClass}' and obj.name <> '${objectSpace}.${objectTemplate}' and prop.id.id = obj.id and prop.name = 'end' order by prop.value desc" ) 5 +#set( $thesesFound = $xwiki.searchDocuments($sql) ) 6 +#set( $thesisNo = $thesesFound.size() ) 7 +>**$thesisNo** {{stringEngIta eng='theses' ita='tesi'/}} 8 + 9 +#foreach ( $thesis in $thesesFound ) 10 +#if( $foreach.index > 0 ) (% style="color:$theme.textSecondaryColor" %)|(%%) #end{{thesis linked='title'}}$thesis{{/thesis}}#end 11 +{{/velocity}}