Subversion Repositories wimsdev

Rev

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

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