Subversion Repositories wimsdev

Rev

Rev 2497 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
286 guerimand 1
keyword=!items2words $keyword
2
keyword=!trim $keyword
3
kw=!words2items $keyword
4
kw=!deaccent $kw
5
kw=!tolower $kw
6
ccnt=!recordcnt wimshome/log/classes/.index
7
 
8
clcnt=0
9
sccnt=0
14890 obado 10
!reset list_cl_id
286 guerimand 11
!for i=1 to $ccnt
14890 obado 12
  l=!record $i of wimshome/log/classes/.index
13
  !distribute items $l into code,expire,inst,cl,la,ty
14
  l1=!deaccent $l
15
  l1=!tolower $l1
16
  k=yes
17
  !for w in $kw
18
    !if $w notin $l1
19
      k=no
20
      !break
21
    !endif
22
  !next w
23
  !if $k = yes
24
    c1=!text extract 0123456789 in $code
25
    list_cl_id=!append item $c1 to $list_cl_id
26
    !if $ty isin 24
27
      sclasses=!append line $l to $sclasses
28
      !advance sccnt
29
    !else
30
      classes=!append line $l to $classes
31
      !advance clcnt
32
    !endif
286 guerimand 33
  !endif
14890 obado 34
 
35
  !if $clcnt+$sccnt > 20
36
    overflow=yes
37
    !break
286 guerimand 38
  !endif
14890 obado 39
!next i