Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
6739 bpr 1
!set cat=!nospace $wims_read_parm
9030 bpr 2
!if $(gotcnt$cat)>0
12822 bpr 3
  <ul class="wims_home_result_list">
4
  !for i=1 to $(gotcnt$cat)
5
    !set m_=!line $i of $(gotm$cat)
13637 bpr 6
    !set cat_=!module category $m_
12822 bpr 7
    !set w_=!word $i of $(gotw$cat)
8
    !set l_=!line $i of $(gotl$cat)
9
    !set t_=!line $i of $(gott$cat)
10
    !set d_=!line $i of $(gotd$cat)
11
    !set a_=!line $i of $(gota$cat)
12
    <li>
13
    !if $wims_ismanager=2
14
      <span class="small">$w_</span>
6739 bpr 15
    !endif
12822 bpr 16
    !if $l_!=$search_lang
17
      !set ltrans=!module translation_language $m_
18
      !if  $search_lang notin $ltrans
17179 bpr 19
        <img src="gifs/$l_.gif" alt="$l_.gif">
12822 bpr 20
      !endif
14540 bpr 21
      !set t_=!module title_$search_lang $m_
22
      !set d_=!module description_$search_lang $m_
12822 bpr 23
    !endif
24
    !if $t_=
25
      !set t_=!module title $m_
26
    !endif
27
    !if $d_=
28
      !set d_=!module description $m_
29
    !endif
30
    !set L=
31
    !if ../local/ isin ../$m_
32
      !set L=<sup>local</sup>
33
    !endif
34
    !if ../com/ isin ../$m_
35
      !set L=<sup>com</sup>
36
    !endif
37
    !if ../contrib/ isin ../$m_
38
      !set L=<sup>contrib</sup>
39
    !endif
16955 bpr 40
    !set ltrans=!module translation_language $m_
12822 bpr 41
    !set t_=!replace internal OEF by in $t_
42
    !href module=$m_ $t_
43
    $L, $d_
44
    !if $wims_show_author=yes
15904 bpr 45
      <span class="small">
46
      !replace internal , by $ $ in ($a_)
47
      </span>
12822 bpr 48
    !endif
16955 bpr 49
    !if $ltrans!=$empty
50
      ($l_ $ltrans)
51
    !endif
13637 bpr 52
    !if oef isin $cat_
53
      !set exokeyword=!record 0 of wimshome/public_html/modules/$m_/Dickeywords
54
      !if $exokeyword!=$empty
55
        !reset tmp_list
56
        !! keywords no modified in srch0
57
        !for exk in $srch0
58
          !set ext=!lookup $exk in wimshome/public_html/modules/$m_/Dickeywords
59
          <ul>
60
          !for exa in $ext
61
            !if $exa notitemof $tmp_list
62
              !set tmp_list=!append item $exa to $tmp_list
63
              <li>
64
              !set exta=!lookup $exa in wimshome/public_html/modules/$m_/Extitles
14593 bpr 65
              !if $wims_user=supervisor
66
                !href module=$m_&special_parm=$exta&cmd=intro $exta
67
              !else
68
                !href module=$m_&exo=$exa&cmd=new $exta
69
              !endif
13637 bpr 70
              !if $wims_show_author=yes
71
                !set exauthor=!lookup $exa in wimshome/public_html/modules/$m_/Exauthors
13644 bpr 72
                !set exauthor=!replace internal , by $ $ in $exauthor
73
                !set exauthor=!replace internal ; by , $ in $exauthor
13660 bpr 74
                !if $exauthor!=$empty
75
                  <span class="small">($exauthor)</span>
76
                !endif
13637 bpr 77
              !endif
78
              </li>
79
            !endif
80
          !next
81
          </ul>
82
        !next
83
        !reset exokeyword exk exa exta exauthor tmp_list
84
      !endif
85
    !endif
12822 bpr 86
    </li>
87
    !reset d_ t_
88
  !next i
89
  </ul>
6739 bpr 90
!endif