Subversion Repositories wimsdev

Rev

Rev 286 | Go to most recent revision | 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
10
!for i=1 to $ccnt
11
 l=!record $i of wimshome/log/classes/.index
12
 !distribute items $l into code,expire,inst,cl,la,ty
13
 l1=!deaccent $l
14
 l1=!tolower $l1
15
 c1=!text extract 0123456789 in $code
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
  !if $ty isin 24
25
   sclasses=!append line $l to $sclasses
26
   !advance sccnt
27
  !else
28
   classes=!append line $l to $classes
29
   !advance clcnt
30
  !endif
31
 !endif
32
 !if $clcnt+$sccnt > 20
33
  overflow=yes
34
  !break
35
 !endif
36
!next i