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