For truncations being limited (abort at truncmax terms), zebrasrv returns
[idzebra-moved-to-github.git] / tab / nwi.flt
1 #
2 # Input-filter for the Nordic Web Index record syntax. Output is 'gils-like'.
3 #
4 # $Id: nwi.flt,v 1.4 1996-06-11 10:53:56 quinn Exp $
5 #
6
7 /<nwi>/                            { begin record gils }
8
9 # Ignore meta tags
10
11 /<meta.*>.*$/                    {}
12
13 /<ti> */ BODY /$/                  { data -element title $1 }
14
15 /<dm> */  BODY /$/                  { data -element dateOfLastModification $1 }
16
17 /<ci> */ BODY /$/                  { data -element controlIdentifier $1 }
18
19 /<si>/                           { begin element supplementalInformation }
20 /<lc> */ BODY /$/                  { data -element lastChecked $1 }
21 /<by> */ BODY /$/                  { data -element bytes $1 }
22
23 /<av>/                           { begin element availability }
24 /<avli> */ BODY /$/                { data -element linkage $1 }
25 /<ty> */ BODY /$/                  { data -element linkageType $1 }
26
27 /<lsi>/                          { begin element localSubjectIndex }
28 /<dh> */ BODY /$/                  { data -element localSubjectTerm $1 }
29
30 # Don't want to have <ip> inside of LocalSubjectIndex
31 # Since we end localsubjectindex, we consume the end-tag for that as well.
32
33 #/<ip>[ \n]*/ BODY /<\/ip>[ \n]*<\/lsi>/  {
34 #                                   end element;
35 #                                   data -element sampleText $1
36 #                                }
37
38 /<ip>[ \n]*/ BODY /<\/ip>/       {
39                                    end element;
40                                    data -element sampleText $1
41                                  }
42
43 /<cr>/                           { begin element crossReference }
44 /<li> */ BODY /$/                  { data -element linkage $1 }
45 /<cp> */ BODY /$/                  { data -element title $1 }
46
47 /<\/nwi>/                        { end record }
48
49 # Generic end-marker
50
51 /<\/[^>]*>/                      { end element }
52 /\n/                             { }
53 /./ {}