From version 4.1
edited by Andrea Omicini
on 22/11/2021 19:21
Change comment: There is no comment for this version
To version 2.1
edited by Andrea Omicini
on 13/08/2021 13:00
Change comment: Document converted from syntax xwiki/1.0 to syntax xwiki/2.1

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -#if($xcontext.language=='it')Corsi per A.A.#{else}Courses per A.Y.#end
1 +Per Academic Year
Content
... ... @@ -1,1 +1,42 @@
1 -{{velocity}}#set( $courseMenu = true ){{/velocity}}{{include reference="Courses.PerYear"/}}
1 +{{include document="Main.MacroSheet"/}} {{include document="Courses.MacroSheet"/}} {{include document="AndreaRoli.MacroSheet"/}}
2 +
3 +{{velocity filter="none"}}
4 +{{html clean="false" wiki="true"}}
5 +#set( $courseMenu = true )
6 +
7 +
8 += #stringIt("Corsi di") $userFullname#stringEn("'s Courses") =
9 +
10 +#stringEnIt(
11 +"I have held a number of university courses along the years, mostly at the Alma Mater Studiorum—Università di Bologna. Some of them — essentially, the most recent ones — are listed below."
12 +,
13 +"Da vari anni tengo corsi universitari, principalmente all'Alma Mater Studiorum. Alcuni di loro — essenzialmente, i più recenti — si trovano elencati qui sotto."
14 +)
15 +
16 +#set ($sql = ", BaseObject as obj, StringProperty as prop, LargeStringProperty as prop1, LargeStringProperty as prop2
17 + where
18 + obj.name=doc.fullName and
19 + obj.className='Courses.CourseClass' and
20 + obj.name<>'Courses.CourseClassTemplate' and
21 + prop.id.id=obj.id and
22 + prop1.id.id=obj.id and
23 + prop2.id.id=obj.id and
24 + prop.name='aY' and
25 + prop1.name='professor' and
26 + prop2.name='otherProfessors' and
27 + (prop1.value like '%$userName%' or
28 + prop2.value like '%$userName%')
29 + order by prop.value desc
30 +")
31 +<p/>
32 +#set($courseFound = $xwiki.searchDocuments($sql))
33 +
34 +#set($courseFound = $xwiki.searchDocuments($sql))
35 +#foreach ($courseDoc in $courseFound)
36 +* [[#displayName($courseDoc)>>$courseDoc]] <em>($xwiki.getDocument($courseDoc).display("aY"))</em> #if($context.getUser() != "XWiki.XWikiGuest")<a href='$xwiki.getURL("$course", "inline")'><img alt='{{html clean="false"}}$msg.get("panels.documentInformation.editIncluded", [$page]){{/html}}' src='$xwiki.getSkinFile("icons/silk/page_white_edit.gif")' /></a>#end
37 +
38 +<p/>
39 +#end
40 +
41 +{{/html}}
42 +{{/velocity}}