X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=examples%2Fmarcxml%2FREADME;h=1734ce0f9ebc8954774f0ac3100903e8aa4cb4cb;hb=a5c8c78e8671af863fc61b2ad8b24f92f827f7b2;hp=dda140a6ea39979c887346428884ed7e6b719b40;hpb=060faf0d33d68d3f2405ec4512d52026e1e02b31;p=idzebra-moved-to-github.git diff --git a/examples/marcxml/README b/examples/marcxml/README index dda140a..1734ce0 100644 --- a/examples/marcxml/README +++ b/examples/marcxml/README @@ -1,11 +1,51 @@ -Example data and configuration for MARC21 XML data using the 'alvis' +Example data and configuration for MARC21 XML data using the 'dom' XSLT input filter. MARC21 XML example data and transforming XSLT stylesheets are borrowed from - The Library of Congress' Network Development and MARC Standards Office, which is developing a framework for working with MARC data in a XML environment. http://www.loc.gov/standards/marcxml/ + +To run these examples, try this: + + +../../index/zebraidx init +../../index/zebraidx update collection-*.xml +../../index/zebrasrv + +then start yaz-client and search + +Z> open localhost:9999 +Z> scan @attr 1=4 "" +Z> find @attr 1=4 aida +Z> form xml +Z> elem dc +Z> s 1+1 +Z> elem marc +Z> s 1+1 +Z> elem mads +Z> s 1+1 +Z> elem mods +Z> s 1+1 + +To see the zebra system internal info on this record, issue + +Z> elem zebra +Z> s 1+1 + +To see how this record has been indexed, try +Z> elem index +Z> s 1+1 + +The indexes can also be acessed using the string names: +Scan 'Author-name-personal' as words +Z> scan @attr 1=Author-name-personal de + +Scan 'Author-name-personal' as phrase +Z> scan @attr 1=Author-name-personal @attr 4=1 @attr 6=2 de + + +