Rev 8367 | Rev 8403 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | !nocache |
7237 | bpr | 2 | !default doc=1 |
2373 | bpr | 3 | !set modu_lang=$lang |
4 | !read docu/$lang/names |
||
5 | !if $lang_exists!=yes |
||
6 | !let modu_lang=en |
||
7 | !read docu/$lang/names |
||
8 | !endif |
||
9 | !set module_language=$lang |
||
20 | reyssat | 10 | |
7237 | bpr | 11 | !read INDEX |
12 | translation_language=!items2words $translation_language |
||
13 | !if $lang iswordof $translation_language |
||
14 | doc=1_$modu_lang |
||
15 | !endif |
||
16 | |||
7235 | bpr | 17 | module_title2=!detag $module_title |
18 | |||
2373 | bpr | 19 | !read docu/$modu_lang/names |
20 | reyssat | 20 | !if $cmd=help |
21 | !exit |
||
22 | !endif |
||
23 | |||
8367 | bpr | 24 | !read docu/docdef |
25 | |||
20 | reyssat | 26 | !bound job within read,print,list,exosource default read |
27 | !if robot isin $session |
||
28 | job=print |
||
29 | !endif |
||
30 | |||
31 | !read tabletheme |
||
32 | !for i=1 to 20 |
||
33 | m_parm$i=$(parm$i) |
||
34 | parm$i= |
||
35 | !next i |
||
1407 | bpr | 36 | !if $seq>0 |
37 | !set m_wims_sequence=$seq |
||
38 | !endif |
||
20 | reyssat | 39 | |
40 | block=!text select $namechars in $block |
||
41 | docdir=doc |
||
42 | Docdir=$module_dir/$docdir |
||
43 | readable=yes |
||
44 | editable=no |
||
45 | !default readcnt=0 |
||
8402 | bpr | 46 | !! common_files is defined in the var.proc of the document can be yes now or the address of a datamodule |
47 | !readdef var.proc |
||
48 | !if datamodule isin $common_files |
||
49 | m_filedir=!replace datamodule by modules/data in $common_files |
||
50 | !else |
||
51 | !if $common_files=yes |
||
52 | m_filedir=$Docdir/files |
||
53 | !else |
||
54 | m_filedir=$Docdir/$doc/files |
||
55 | !endif |
||
7235 | bpr | 56 | !endif |
20 | reyssat | 57 | !readdef $docdir/$doc/.def |
58 | !if $tit!=$empty |
||
59 | !default block=main |
||
60 | block=!char 1 to $namelim of $block |
||
61 | !read $docdir/$doc/$block.def |
||
62 | !else |
||
63 | error=doc_not_exist |
||
64 | !endif |
||
65 | |||
66 | !set wims_module_log=$job $doc $block |
||
67 | |||
68 | !read docu/$job.proc |