Modifiche per il documento Tutte le tesi

Dalla versione 2.1
modificato da Andrea Omicini
il 19/11/2021 17:47
Cambia il commento: Nessun commento per questa versione
Alla versione 11.2
modificato da Andrea Omicini
il 02/07/2023 19:12
Cambia il commento: Nessun commento per questa versione

Summary

Details

Page properties
Titolo
... ... @@ -1,0 +1,1 @@
1 +$services.localization.render('thesisall')
Lingua predefinita
... ... @@ -1,1 +1,0 @@
1 -en
Content
... ... @@ -1,12 +2,31 @@
1 -={{stringEngIta eng="All Theses in " ita="Tutti le tesi in "/}}{{apice/}}=
2 2  {{velocity}}
3 -#set( $sql = ", BaseObject as obj, DateProperty as prop where obj.name = doc.fullName and obj.className = 'Theses.ThesisClass' and obj.name <> 'Theses.ThesisClassTemplate' and obj.name <> 'Theses.ThesisTemplate' and prop.id.id = obj.id and prop.name = 'endDate' order by prop.value desc" )
4 -#set( $theses = $xwiki.searchDocuments($sql) )
5 -#set( $thesisNo = $theses.size() )
6 -{{english}}>There are currently **$thesisNo** theses recorded in {{apice /}}{{/english}}{{italian}}>Ci sono attualmente **$thesisNo** tesi registrate in {{apice /}}{{/italian}}
7 -
8 -#foreach ( $thesis in $theses )
9 - #set( $thesisDoc = $xwiki.getDocument($thesis) )
10 - #set( $thesisObj = $thesisDoc.getObject('Theses.ThesisClass') )
11 -#if ($velocityCount > 1) | #end[[$thesisObj.title>>$thesisDoc]]#if( $thesisObj.endDate != "" ) //($thesisObj.endDate)//#end#if( $thesisDoc.getValue('studentUserName') != "" ) – [[$xwiki.getUserName($thesisDoc.getValue('studentUserName'), false)>>$thesisDoc.getValue('studentUserName')]]#elseif( $thesisObj.studentFirstName != "" && $thesisObj.studentLastName != "" ) – $thesisObj.studentFirstName $thesisObj.studentLastName#end#end
12 -{{/velocity}}
2 +#template('apice_theses.vm')
3 +#template('apice_thesis_macros.vm')
4 +{{html wiki="true" clean="false"}}
5 +## query
6 +#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 ")
7 +#set( $itemFound = $xwiki.searchDocuments($query) )
8 +## how many items found?
9 +#set( $itemFound = $xwiki.searchDocuments($query) )
10 +## how many items found?
11 +#set( $itemNo = $itemFound.size() )
12 +## header start
13 +<div class="mainheader">
14 +$itemNo
15 +#if( $itemNo == 1 )
16 + $services.localization.render('thesis').toLowerCase()
17 +#{else}
18 + $services.localization.render('theses').toLowerCase()
19 +#end
20 +</div>
21 +## header end
22 +## display items separated by dots / start
23 +#foreach( $item in $itemFound )
24 + #if( !$foreach.first )
25 + <span class="menumainbody">&ensp;&bull;&ensp;</span>
26 + #end
27 + #thesislinked($item)
28 +#end
29 +## display items separated by dots / end
30 +{{/html}}
31 +{{/velocity}}{{pageDisplay sort="objectservice"/}}