added multikey type
This commit is contained in:
parent
f35aa9e2ef
commit
35fbc4ff8c
5 changed files with 124 additions and 61 deletions
5
test/simple/.temp.md
Normal file
5
test/simple/.temp.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
+-----------------------------------+---------------------------------------------------------------------------------------------+
|
||||
|Modulname |Computer Graphics |
|
||||
+===================================+=============================================================================================+
|
||||
|Kürzel |CG |
|
||||
+-----------------------------------+---------------------------------------------------------------------------------------------+
|
8
test/simple/Makefile
Normal file
8
test/simple/Makefile
Normal file
|
@ -0,0 +1,8 @@
|
|||
table.pdf:
|
||||
@echo "creating english version ..."
|
||||
python ../../coursebuilder -s schema.yaml -m mod.cg.yaml -l en -f name id | pandoc -o table.pdf
|
||||
|
||||
all: table.pdf
|
||||
|
||||
clean:
|
||||
rm table.pdf
|
|
@ -1,7 +1,5 @@
|
|||
name: {
|
||||
de: "Computergrafik",
|
||||
en: "Computer Graphics"
|
||||
}
|
||||
name:
|
||||
value: Computer Graphics
|
||||
|
||||
id:
|
||||
value: CG
|
||||
|
@ -12,8 +10,14 @@ credits:
|
|||
form-of-exam:
|
||||
value: written
|
||||
|
||||
form:
|
||||
value: lecture
|
||||
form-of-instruction:
|
||||
value: { 'lecture': 2, 'exersise': 1 }
|
||||
|
||||
term:
|
||||
value: 1
|
||||
|
||||
duration:
|
||||
value: 1
|
||||
|
||||
kind:
|
||||
value: compulsory
|
||||
|
@ -88,3 +92,33 @@ media-of-instruction:
|
|||
* Goldstein, E. Bruce. Sensation and Perception. 3rd ed. Belmont, Calif.: Wadsworth Pub. Co., 1989
|
||||
* Hughes, John F. Computer Graphics: Principles and Practice. Third edition. Upper Saddle River, New Jersey: Addison-Wesley, 2014
|
||||
* Shirley, Peter, and R. Keith Morley. Realistic Ray Tracing. 2. ed. Natick, Mass: A K Peters, 2003
|
||||
|
||||
prerequisites:
|
||||
de: ""
|
||||
en: ""
|
||||
|
||||
author-of-indenture:
|
||||
de: ""
|
||||
en: ""
|
||||
|
||||
used-in:
|
||||
de: "Master Applied Computerscience"
|
||||
en: "Master Applied Computerscience"
|
||||
|
||||
workload:
|
||||
de: "2SWS Vorlesung 1SWS Übung"
|
||||
en: "2SWS lecture 1SWS exersise"
|
||||
|
||||
form-of-exam:
|
||||
value: written
|
||||
|
||||
frequency:
|
||||
value: once_per_year
|
||||
|
||||
|
||||
kind:
|
||||
value: compulsory
|
||||
|
||||
remarks:
|
||||
de:
|
||||
en:
|
||||
|
|
|
@ -57,13 +57,13 @@ content:
|
|||
#
|
||||
# Lehrform
|
||||
#
|
||||
form:
|
||||
form-of-instruction:
|
||||
label: {
|
||||
de: "Lehrform",
|
||||
de: "Lehrform(en)",
|
||||
en: "form of instruction"
|
||||
}
|
||||
type: enum
|
||||
values: {
|
||||
type: multikey
|
||||
keys: {
|
||||
'lecture' : {
|
||||
de: "Vorlesung",
|
||||
en: "lecture"
|
||||
|
@ -89,6 +89,9 @@ form:
|
|||
en: "project"
|
||||
}
|
||||
}
|
||||
template:
|
||||
de: "${key} (${value}SWS)"
|
||||
en: "${key} (${value}SWS)"
|
||||
|
||||
#
|
||||
# Voraussetzungen für die Teilnahme
|
||||
|
@ -185,21 +188,10 @@ term:
|
|||
de: "Semester",
|
||||
en: "Term"
|
||||
}
|
||||
type: 'enum'
|
||||
values: {
|
||||
'winter' : {
|
||||
de: "Wintersemester",
|
||||
en: "Winter Term"
|
||||
},
|
||||
'summer' : {
|
||||
de: "Sommersemester",
|
||||
en: "Summer Term"
|
||||
},
|
||||
'both' : {
|
||||
de: "Winter- und Sommersemester",
|
||||
en: "winter and summer term"
|
||||
}
|
||||
}
|
||||
type: int
|
||||
template:
|
||||
de: "$value$. Semester"
|
||||
en: "$value$ semester"
|
||||
|
||||
#
|
||||
# Häufigkeit des Angebots
|
||||
|
@ -221,7 +213,11 @@ frequency:
|
|||
}
|
||||
}
|
||||
|
||||
duration: enum
|
||||
duration:
|
||||
type: int
|
||||
template:
|
||||
de: "$value Semester"
|
||||
en: "$value term(s)"
|
||||
|
||||
kind:
|
||||
type: enum
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue