Changes for page All Theses

From version 10.1
edited by Andrea Omicini
on 29/06/2023 17:27
Change comment: There is no comment for this version
To version 13.1
edited by Andrea Omicini
on 03/07/2023 18:32
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,0 +1,1 @@
1 +$services.localization.render('thesisall')
Default language
... ... @@ -1,1 +1,0 @@
1 -en
Content
... ... @@ -1,11 +1,32 @@
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 <> '${objectPool}.${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 ) {{themeTextSecondary}}•{{/themeTextSecondary}} #end{{thesis linked='title'}}$thesis{{/thesis}}#end
11 -{{/velocity}}
1 +{{velocity}}
2 +#template('apice_macros.vm')
3 +#objectspace()
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">&ensp;&bull;&ensp;</span>
27 + #end
28 + #thesislinked($item)
29 +#end
30 +## display items separated by dots / end
31 +{{/html}}
32 +{{/velocity}}{{pageDisplay sort="objectservice"/}}