Changes for page All Theses

From version 11.1
edited by Andrea Omicini
on 02/07/2023 10:16
Change comment: There is no comment for this version
To version 5.2
edited by Andrea Omicini
on 22/07/2022 16:23
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,0 @@
1 -$services.localization.render('thesesall')
Default language
... ... @@ -1,0 +1,1 @@
1 +en
Content
... ... @@ -1,31 +1,11 @@
1 -{{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"/}}
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 = 'endDate' 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( $velocityCount > 1 ) (% style="color:$theme.textSecondaryColor" %)|(%%) #end{{thesis linked='title'}}$thesis{{/thesis}}#end
11 +{{/velocity}}