#
# 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 $
+# $Id: nwi.flt,v 1.4 1996-06-11 10:53:56 quinn Exp $
#
-BEGIN { begin record gils }
+/<nwi>/ { begin record gils }
+
+# Ignore meta tags
+
+/<meta.*>.*$/ {}
/<ti> */ BODY /$/ { data -element title $1 }
# Don't want to have <ip> inside of LocalSubjectIndex
# Since we end localsubjectindex, we consume the end-tag for that as well.
-/<ip>[ \n]*/ BODY /<\/ip>[ \n]*<\/lsi>/ {
- end element;
- data -element sampleText $1
- }
+#/<ip>[ \n]*/ BODY /<\/ip>[ \n]*<\/lsi>/ {
+# end element;
+# data -element sampleText $1
+# }
-/<ip>[ \n]*/ BODY /<\/ip>/ { data -element sampleText $1 }
+/<ip>[ \n]*/ BODY /<\/ip>/ {
+ end element;
+ data -element sampleText $1
+ }
/<cr>/ { begin element crossReference }
/<li> */ BODY /$/ { data -element linkage $1 }