From version 3.1
edited by Andrea Omicini
on 13/08/2021 13:00
Change comment: There is no comment for this version
To version 1.1
edited by Andrea Omicini
on 15/12/2020 16:25
Change comment: Imported from XAR

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -Per Academic Year
1 +En-It
Syntax
... ... @@ -1,1 +1,1 @@
1 -XWiki 2.1
1 +XWiki 1.0
Content
... ... @@ -1,1 +1,38 @@
1 -{{include reference="MacroSheet"/}}{{velocity filter="none"}}#set( $courseMenu = true ){{/velocity}}{{include document="Courses.PerYear"/}}
1 +#includeMacros("Main.MacroSheet")
2 +#includeMacros("Courses.MacroSheet")
3 +#includeMacros("AndreaRoli.MacroSheet")
4 +
5 +#set( $courseMenu = true )
6 +
7 +1 #stringIt("Corsi di") $userFullname#stringEn("'s Courses")
8 +
9 +#stringEnIt(
10 +"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."
11 +,
12 +"Da vari anni tengo corsi universitari, principalmente all'Alma Mater Studiorum. Alcuni di loro — essenzialmente, i più recenti — si trovano elencati qui sotto."
13 +)
14 +
15 +#set ($sql = ", BaseObject as obj, StringProperty as prop, LargeStringProperty as prop1, LargeStringProperty as prop2
16 + where
17 + obj.name=doc.fullName and
18 + obj.className='Courses.CourseClass' and
19 + obj.name<>'Courses.CourseClassTemplate' and
20 + prop.id.id=obj.id and
21 + prop1.id.id=obj.id and
22 + prop2.id.id=obj.id and
23 + prop.name='aY' and
24 + prop1.name='professor' and
25 + prop2.name='otherProfessors' and
26 + (prop1.value like '%$userName%' or
27 + prop2.value like '%$userName%')
28 + order by prop.value desc
29 +")
30 +
31 +#set($courseFound = $xwiki.searchDocuments($sql))
32 +
33 +#set($courseFound = $xwiki.searchDocuments($sql))
34 +#foreach ($courseDoc in $courseFound)
35 +* [#displayName($courseDoc) | $courseDoc] <em>($xwiki.getDocument($courseDoc).display("aY"))</em> #if($context.getUser() != "XWiki.XWikiGuest")<a href='$xwiki.getURL("$course", "inline")'><img alt='$msg.get("panels.documentInformation.editIncluded", [$page])' src='$xwiki.getSkinFile("icons/silk/page_white_edit.gif")' /></a>#end
36 +
37 +#end
38 +