Subversion Repositories wimsdev

Rev

Rev 12839 | Rev 15592 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1.  
  2. !if $wims_read_parm!=$empty
  3.   !set parms=$wims_read_parm
  4. !else
  5.   !if $parms=$empty
  6.     !exit
  7.   !endif
  8. !endif
  9. !set option=!item 2 of $parms
  10. !set tooltip=!getopt tooltip in $option
  11. !if $tooltip!=$empty
  12.   !set tooltip=!declosing $tooltip
  13.   !set width=$(tooltip[2])
  14.   !set text=$(tooltip[1])
  15.   !if $text!=$empty
  16.     !set tooltip=yes
  17.   !endif
  18. !endif
  19. !set optrecord=!getopt content in $option
  20.  
  21. !set optrecord=!declosing $optrecord
  22. !set parms=!item 1 of $parms
  23. !set data_dir=data/glossary
  24. !set data=$data_dir/$parms
  25.  
  26. !if $optrecord=abstract
  27.   !set optrecord=1
  28. !else
  29.   !if $optrecord=$empty
  30.     !set recordcnt=!recordcnt $data
  31.     !set optrecord=!values 2*x for x=2 to $[($recordcnt-1)/2]
  32.   !else
  33.     !set optrecord=!values 2*(x-1)+4 for x in $optrecord
  34.   !endif
  35. !endif
  36. !set gl_title=!getdef gl_title in $data
  37. !set gl_keywords=!getdef gl_keywords in $data
  38. !set gl_author=!getdef gl_author in $data
  39. !set gl_type=!getdef gl_type in $data
  40. !set tmp=!replace internal / by , in $data
  41. !default gl_title=!lookup $(tmp[-1]) in bases/sys/domain/domain.$(tmp[-2])
  42. !if $tooltip=yes
  43.   !default width=400px
  44.   <div class="wims_tooltip">$text
  45.     <div class="wims_tooltiptext" style="width:$width">
  46. !endif
  47. <div class="wims_glossary">
  48. !if $gl_type!=dynamic
  49.   !for j in $optrecord
  50.     !if $j>=4 and $[$j%2]=0
  51.       !record $j of $data
  52.     !endif
  53.   !next
  54. !else
  55.   !read $data
  56. !endif
  57. </div>
  58. !if $tooltip=yes
  59.   </div></div>
  60. !endif
  61. !reset parms text option tooltip
  62.