Changes for page New Course

From version 21.1
edited by Andrea Omicini
on 22/07/2022 14:06
Change comment: There is no comment for this version
To version 31.3
edited by Andrea Omicini
on 02/07/2023 22:20
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,0 +1,1 @@
1 +$services.localization.render('new')
Content
... ... @@ -1,46 +20,17 @@
1 -= {{italiano}}Nuovo{{/italiano}}{{english}}New{{/english}} =
2 -
3 -{{include reference="Courses.Environment" excludeFirstHeading="true"/}}{{velocity}}
4 -#if( $isGuest )
5 -{{warning}}{{stringEngIta ita="Siamo spiacenti, ma l'inserimento di nuovi corsi non è operazione disponibile a visitatori esterni" eng="Sorry, the insertion of new courses is not an operation available to external viewers"/}}{{/warning}}
6 - #stop
7 -#end
8 -#### START utility variables
9 -#define( $insertButtonIt )Inserisci nuovo corso in italiano#end
10 -#define( $insertButtonEn )Insert New Course in English#end
11 -#define( $insertTextIt )NomeDocumentoCorso#end
12 -#define( $insertTextEn )CourseDocumentName#end
13 -#define( $insertOtherLangIt )No, devo inserire un nuovo corso in inglese#end
14 -#define( $insertOtherLangEn )No, I have to insert a new course in Italian#end
15 -#define( $newCourseIt )Nuovo corso#end
16 -#define( $newCourseEn )New Course#end
17 -#### END utility variables
18 -{{/velocity}}{{include reference="Main.Class.New" excludeFirstHeading="true"/}}
19 -
20 20  {{velocity}}
21 -{{italiano}}
22 -Per aggiungere un nuovo corso in italiano allo spazio {{apice/}}, si deve innanzitutto scegliere un nome per il documento, scriverlo nel campo di testo sopra (“$insertTextIt”), quindi premere il pulsante a sinistra del campo (“$insertButtonIt”). Questo genera un nuovo documento {{apice/}} nello spazio ”Courses” che contiene una nuova presentazione in italiano, con il nome prescelto, e pronto a essere riempito con i dati relativi al corso.
23 -
24 -{{warning}}Per inserire un nuovo corso in inglese, cliccare invece il link sotto il campo{{/warning}}
25 -
26 -Lo schema di nome preferito per un documento “Course” è costituito dall'acronimo del corso stesso, seguito (se esistono) dalle lettere qualificanti (L, L-A, LM, ecc.), e dall'anno accademico nella forma a 4 cifre (0809, 1213).
27 -
28 -Si prega di rammentare che:
29 -* il nome scelto è il nome della risorsa web—il documento del framework XWiki, o la pagina, nel classico gergo Web
30 -* il nome dovrebbe seguire la convenzione di nome delle Java Class—//camel case//, con iniziali maiuscole
31 -
32 -Per esempio, quindi, il documento per il corso di “Sistemi Multi-Agente LS” per l'A.A. 2007-2008 dovrebbe avere il nome “SmaLs0708”.
33 -{{/italiano}}{{english}}
34 -In order to add a new course in English to the {{apice/}} space, you should first choose a name for your document, write it in the text field above (“$insertTextEn”), then click the left-side button (“$insertButtonEn”). This generates a new document in the “Courses” space, named after the name chosen, and ready to be filled with the course's information.
35 -
36 -{{warning}}In order to insert a new course in Italian, instead, click on the link below the text field{{/warning}}
37 -
38 -The preferred scheme for a new “Course” document typically starts with the acronym of the course title, followed by the qualifying letters (if any), and by the academical year in 4-digit form (e.g., 0809, 1213).
39 -
40 -Please remember that:
41 - * the name you choose is the name of the web resource—the document in the XWiki framework, the page in the classic Web jargon
42 - * it should follow the Java Class naming convention—CamelCase, UpperCase Initials
43 -
44 -So for instance the document for the course “Sistemi Multi-Agente LS” of the A.Y. 2007-2008 should be named “SmaLs0708”.
45 -{{/english}}
46 -{{velocity}}
2 +#template('apice_courses.vm')
3 +#set( $newObject = $services.localization.render('coursenew') )
4 +#set( $aNewObject = $services.localization.render('acoursenew') )
5 +#includeInContext("Classes.Shared.New")
6 +#if( !$isGuest )
7 + #if( $context.language == 'it' )
8 +Inoltre, si prega di notare che:
9 + * lo schema di nome preferito per un documento “Course” è costituito dall'acronimo del corso stesso, seguito (se esistono) dalle lettere qualificanti (L, L-A, LM, ecc.), e dall'anno accademico nella forma a 4 cifre (0809, 1213)
10 + * per esempio, quindi, il documento per il corso di “Sistemi Multi-Agente LS” per l'A.A. 2007-2008 dovrebbe avere il nome “SmaLs0708”
11 + #else
12 +Also, one should notice that:
13 + * the preferred scheme for a new “Course” document typically starts with the acronym of the course title, followed by the qualifying letters (if any), and by the academical year in 4-digit form (e.g., 0809, 1213)
14 + * so for instance the document for the course “Sistemi Multi-Agente LS” of the A.Y. 2007-2008 should be named “SmaLs0708”
15 + #end
16 +#end
17 +{{/velocity}}