reduced example XML size, tweaked indexing rules, added display XSLT sheet for zebra...
[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 the zebra system internal info on this record, issue
36
37 Z> elem zebra
38 Z> s 1+1
39
40 To see how this record has been indexed, try
41 Z> elem index
42 Z> s 1+1
43
44 The indexes can also be acessed using the string names:
45 Scan 'Author-name-personal' as words
46 Z> scan @attr 1=Author-name-personal de
47
48 Scan 'Author-name-personal' as phrase
49 Z> scan @attr 1=Author-name-personal @attr 4=1 @attr 6=2 de
50
51
52