X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=tab%2Fnwi.flt;h=166157eedfa119c718c51a5114fcf3d08b008e24;hb=748be5bcb60797dd7830ca464c7b2f862c34d1e4;hp=6e28922f94faad8def6e3a7fc4088edc8f4b0857;hpb=9314fca68f6f5c0de94244823bebfab596550e53;p=idzebra-moved-to-github.git diff --git a/tab/nwi.flt b/tab/nwi.flt index 6e28922..166157e 100644 --- a/tab/nwi.flt +++ b/tab/nwi.flt @@ -1,10 +1,13 @@ # # Input-filter for the Nordic Web Index record syntax. Output is 'gils-like'. # -# $Id: nwi.flt,v 1.1 1996-02-28 16:47:43 quinn Exp $ # -BEGIN { begin record gils } +// { begin record gils } + +# Ignore meta tags + +/.*$/ {} / */ BODY /$/ { data -element title $1 } @@ -26,12 +29,15 @@ BEGIN { begin record gils } # Don't want to have inside of LocalSubjectIndex # Since we end localsubjectindex, we consume the end-tag for that as well. -/[ \n]*/ BODY /<\/ip>[ \n]*<\/lsi>/ { - end element; - data -element sampleText $1 - } +#/[ \n]*/ BODY /<\/ip>[ \n]*<\/lsi>/ { +# end element; +# data -element sampleText $1 +# } -/[ \n]*/ BODY /<\/ip>/ { data -element sampleText $1 } +/[ \n]*/ BODY /<\/ip>/ { + end element; + data -element sampleText $1 + } // { begin element crossReference } /
  • */ BODY /$/ { data -element linkage $1 }