MARCXML example is using filter 'dom' instead of 'alvis'.
[idzebra-moved-to-github.git] / examples / marcxml / README
index d3ce515..1734ce0 100644 (file)
@@ -1,8 +1,51 @@
+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/
 
-The Library of Congress' Network Development and MARC Standards Office
-is developing a framework for working with MARC data in a XML
-environment. This framework is intended to be flexible and extensible
-to allow users to work with MARC data in ways specific to their
-needs. The framework itself includes many components such as schemas,
-stylesheets, and software tools.  
\ No newline at end of file
+
+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
+
+
+