Subversion Repositories wimsdev

Rev

Rev 15273 | Rev 18336 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
14431 bpr 1
!if $wims_read_parm!=$empty
2
  !set parms=$wims_read_parm
3
!else
4
  !if $parms=$empty
5
    !exit
6
  !endif
7
!endif
15032 bpr 8
!set option=!item 2 of $parms
9
!set optrecord=!getopt content in $option
10
!set optrecord=!declosing $optrecord
11
!set parms=!item 1 of $parms
14431 bpr 12
!set data=data/glossary/$parms
15032 bpr 13
 
14
!if $optrecord=abstract
15
  !set optrecord=1
16
!else
17
  !if $optrecord=$empty
18
    !set recordcnt=!recordcnt $data
15273 bpr 19
    !set optrecord=!values 2*x for x=2 to $[$recordcnt/2]
15032 bpr 20
  !else
18334 bpr 21
    !set optrecord=!values (x-1)+4 for x in $optrecord
15032 bpr 22
  !endif
23
!endif
14431 bpr 24
!set gl_title=!getdef gl_title in $data
25
!set gl_keywords=!getdef gl_keywords in $data
26
!set gl_author=!getdef gl_author in $data
27
!set gl_type=!getdef gl_type in $data
28
!set tmp=!replace internal / by , in $data
29
!default gl_title=!lookup $(tmp[-1]) in bases/sys/domain/domain.$(tmp[-2])
30
<div class="wims_glossary">
31
!if $gl_type!=dynamic
15032 bpr 32
  !for j in $optrecord
33
    !if $j>=4 and $[$j%2]=0
34
      !record $j of $data
35
    !endif
36
  !next
14431 bpr 37
!else
38
  !read $data
39
!endif
40
</div>