1 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN"
2 "http://www.oasis-open.org/docbook/xml/4.1/docbookx.dtd"
4 <!ENTITY % local SYSTEM "local.ent">
6 <!ENTITY % entities SYSTEM "entities.ent">
8 <!ENTITY % common SYSTEM "common/common.ent">
11 <!-- $Id: yaz-marcdump-man.xml,v 1.12 2006-08-28 19:18:02 adam Exp $ -->
12 <refentry id="yaz-marcdump">
14 <productname>YAZ</productname>
15 <productnumber>&version;</productnumber>
18 <refentrytitle>yaz-marcdump</refentrytitle>
19 <manvolnum>1</manvolnum>
23 <refname>yaz-marcdump</refname>
24 <refpurpose>MARC record dump utility</refpurpose>
29 <command>yaz-marcdump</command>
30 <arg choice="opt"><option>-x</option></arg>
31 <arg choice="opt"><option>-X</option></arg>
32 <arg choice="opt"><option>-e</option></arg>
33 <arg choice="opt"><option>-I</option></arg>
34 <arg choice="opt"><option>-f <replaceable>from</replaceable></option></arg>
35 <arg choice="opt"><option>-t <replaceable>to</replaceable></option></arg>
36 <arg choice="opt"><option>-l <replaceable>spec</replaceable></option></arg>
37 <arg choice="opt"><option>-v</option></arg>
38 <arg choice="opt"><option>-c <replaceable>cfile</replaceable></option></arg>
39 <arg choice="opt" rep="repeat">file</arg>
43 <refsect1><title>DESCRIPTION</title>
45 <command>yaz-marcdump</command> reads MARC records from one or
47 It parses each record and supports output in line-format,
48 ISO2709, MARCXML, MarcXchange as well as Hex output.
51 This utility parses records ISO2709(raw MARC) as well as XML
52 if that is structured as MARCXML/MarcXchange.
56 As of YAZ 2.1.18, OAI-MARC is no longer supported.
57 OAI-MARC is deprecated. Use MARCXML instead.
61 By default, each record is written to standard output in a line
62 format with newline for each field, $x for each subfield x.
63 The output format may be changed with options <literal>-X</literal>,
64 <literal>-e</literal>, <literal>-I</literal>.
67 <command>yaz-marcdump</command> can also be requested to perform
68 character set conversion of each record.
72 <refsect1><title>OPTIONS</title>
78 Reads MARC records in MARCXML/MarcXchange format. Without
79 this option, <command>yaz-marcdump</command> reads records
87 Writes MARC records in MARCXML.
88 This format is equivalent to YAZ_MARC_MARCXML in
89 <filename>yaz/marcdisp.h</filename>.
96 Writes MARC records in MarcXchange format.
97 This format is equivalent to YAZ_MARC_XCHANGE in
98 <filename>yaz/marcdisp.h</filename>.
105 Writes MARC records in ISO2709 format.
106 This format is equivalent to YAZ_MARC_ISO2709 in
107 <filename>yaz/marcdisp.h</filename>.
112 <term>-f <replaceable>from</replaceable></term>
114 Specify the character set <replaceable>from</replaceable>
115 of the input MARC record.
116 Should be used in conjunction with option <literal>-t</literal>.
121 <term>-t <replaceable>to</replaceable></term>
123 Specify the character set <replaceable>of</replaceable>
125 Should be used in conjunction with option <literal>-f</literal>.
130 <term>-l <replaceable>leaderspec</replaceable></term>
132 Specify a simple modification string for MARC leader. The
133 <replaceable>leaderspec</replaceable> is a list of pos=value
134 pairs, where pos is an integer offset (0 - 23) for leader. Value
135 is either a quoted string or an integer (character value in decimal).
136 Pairs are comma separated. For example, to set leader at offset 9
137 to a, use <literal>9=a</literal>.
144 Writes more information about the parsing process.
145 Useful if you have ill-formatted ISO2709 records as input.
152 <refsect1><title>EXAMPLES</title>
154 The following command converts MARC21/USMARC in MARC-8 encoding to
155 MARC21/USMARC in UTF-8 encoding. Leader offset 9 is set to 'a'.
156 Both input and output records are ISO2709 encoded.
158 yaz-marcdump -f MARC-8 -t UTF-8 -I -l 9=97 marc21.raw >marc21.utf8.raw
162 The same records may be converted to MARCXML instead in UTF-8:
164 yaz-marcdump -f MARC-8 -t UTF-8 -X marc21.raw >marcxml.xml
169 <refsect1><title>FILES</title>
171 <filename><replaceable>prefix</replaceable>/bin/yaz-marcdump</filename>
174 <filename><replaceable>prefix</replaceable>/include/yaz/marcdisp.h</filename>
177 <refsect1><title>SEE ALSO</title>
184 <!-- Keep this comment at the end of the file
189 sgml-minimize-attributes:nil
190 sgml-always-quote-attributes:t
193 sgml-parent-document:nil
194 sgml-local-catalogs: nil
195 sgml-namecase-general:t