-# $Id: record.abs,v 1.7 2006-03-23 09:13:47 adam Exp $
+# $Id: record.abs,v 1.8 2006-08-22 08:11:32 adam Exp $
name marcxml
attset bib1.att
xpath disable
+xelm /record/leader leader:w:range(data,0,5),leader2:w:range(data,5,3)
xelm /record/controlfield[@tag="001"] Identifier-Standard:w
xelm /record/controlfield[@tag="008"] Code-Language:w
xelm /record/datafield[@tag="100"]/subfield[@code="a"] author:w,author:s
-/* $Id: t1.c,v 1.9 2006-08-14 10:40:27 adam Exp $
+/* $Id: t1.c,v 1.10 2006-08-22 08:11:32 adam Exp $
Copyright (C) 1995-2006
Index Data ApS
"@attr 1=54 eng "
"@and @attr 1=1003 jack @attr 1=4 computer", 2));
+ YAZ_CHECK(tl_query(zh, "@attr 1=leader 00366", 2));
+ YAZ_CHECK(tl_query(zh, "@attr 1=leader2 nam", 2));
+
YAZ_CHECK(tl_close_down(zh, zs));
}
-/* $Id: t2.c,v 1.8 2006-08-14 10:40:27 adam Exp $
+/* $Id: t2.c,v 1.9 2006-08-22 08:11:32 adam Exp $
Copyright (C) 1995-2006
Index Data ApS
YAZ_CHECK(tl_query(zh, "@and @attr 1=1003 jack @attr 1=4 computer", 2));
+ YAZ_CHECK(tl_query(zh, "@attr 1=leader 00366", 2));
+ YAZ_CHECK(tl_query(zh, "@attr 1=leader2 nam", 12));
+
YAZ_CHECK(tl_close_down(zh, zs));
}