Rev 18334 | Rev 18337 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 18334 | Rev 18336 | ||
|---|---|---|---|
| Line 7... | Line 7... | ||
| 7 | !endif |
7 | !endif |
| 8 | !set option=!item 2 of $parms |
8 | !set option=!item 2 of $parms |
| 9 | !set optrecord=!getopt content in $option |
9 | !set optrecord=!getopt content in $option |
| 10 | !set optrecord=!declosing $optrecord |
10 | !set optrecord=!declosing $optrecord |
| 11 | !set parms=!item 1 of $parms |
11 | !set parms=!item 1 of $parms |
| - | 12 | !set datadir=data/glossary |
|
| 12 | !set data= |
13 | !set data=$datadir/$parms |
| 13 | 14 | ||
| 14 | !if $optrecord=abstract |
15 | !if $optrecord=abstract |
| 15 | !set optrecord=1 |
16 | !set optrecord=1 |
| 16 | !else |
17 | !else |
| 17 | !if $optrecord=$empty |
18 | !if $optrecord=$empty |
| 18 | !set recordcnt=!recordcnt $data |
19 | !set recordcnt=!recordcnt $data |
| 19 | !set optrecord=!values |
20 | !set optrecord=!values x for x=4 to $[$recordcnt] |
| 20 | !else |
21 | !else |
| 21 | !set optrecord=!values (x-1)+4 for x in $optrecord |
22 | !set optrecord=!values (x-1)+4 for x in $optrecord |
| 22 | !endif |
23 | !endif |
| 23 | !endif |
24 | !endif |
| 24 | !set gl_title=!getdef gl_title in $data |
25 | !set gl_title=!getdef gl_title in $data |
| Line 30... | Line 31... | ||
| 30 | <div class="wims_glossary"> |
31 | <div class="wims_glossary"> |
| 31 | !if $gl_type!=dynamic |
32 | !if $gl_type!=dynamic |
| 32 | !for j in $optrecord |
33 | !for j in $optrecord |
| 33 | !if $j>=4 and $[$j%2]=0 |
34 | !if $j>=4 and $[$j%2]=0 |
| 34 | !record $j of $data |
35 | !record $j of $data |
| - | 36 | !else |
|
| - | 37 | !set tmp=!record $j of $data |
|
| - | 38 | !read $datadir/$tmp |
|
| 35 | !endif |
39 | !endif |
| 36 | !next |
40 | !next |
| 37 | !else |
41 | !else |
| 38 | !read $data |
42 | !read $data |
| 39 | !endif |
43 | !endif |