more rules
[idzebra-moved-to-github.git] / examples / marcxml / README
1 Example data and configuration for MARC21 XML data using the 'alvis'
2 XSLT input filter. 
3
4 MARC21 XML example data and transforming XSLT stylesheets are borrowed from 
5
6 The Library of Congress' Network Development and MARC Standards Office,
7 which is developing a framework for working with MARC data in a XML
8 environment. 
9
10 http://www.loc.gov/standards/marcxml/
11
12
13 To run these examples, try this:
14
15
16 ../../index/zebraidx init
17 ../../index/zebraidx update collection-*.xml
18 ../../index/zebrasrv
19
20 then start yaz-client and search
21
22 Z> open localhost:9999
23 Z> scan @attr 1=4 ""
24 Z> find @attr 1=4 aida
25 Z> form xml
26 Z> elem dc
27 Z> s 1+1
28 Z> elem marc
29 Z> s 1+1
30 Z> elem mads
31 Z> s 1+1
32 Z> elem mods
33 Z> s 1+1
34
35 To see how this record has been indexed, try
36 Z> elem index
37 Z> s 1+1
38
39 The indexes can also be acessed using the string names:
40 Scan 'Author-name-personal' as words
41 Z> scan @attr 1=Author-name-personal de
42
43 Scan 'Author-name-personal' as phrase
44 Z> scan @attr 1=Author-name-personal @attr 4=1 @attr 6=2 de
45
46
47