Version 5.14.8
[yaz-moved-to-github.git] / doc / yaz-marcdump-man.xml
index 51ebcfb..a44dde0 100644 (file)
@@ -1,5 +1,5 @@
-<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN"
- "http://www.oasis-open.org/docbook/xml/4.1/docbookx.dtd"
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.4//EN"
+ "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
 [
      <!ENTITY % local SYSTEM "local.ent">
      %local;
  <refentryinfo>
   <productname>YAZ</productname>
   <productnumber>&version;</productnumber>
+  <info><orgname>Index Data</orgname></info>
  </refentryinfo>
+
  <refmeta>
   <refentrytitle>yaz-marcdump</refentrytitle>
   <manvolnum>1</manvolnum>
+  <refmiscinfo class="manual">Commands</refmiscinfo>
  </refmeta>
+
  <refnamediv>
   <refname>yaz-marcdump</refname>
   <refpurpose>MARC record dump utility</refpurpose>
  </refnamediv>
+
  <refsynopsisdiv>
   <cmdsynopsis>
    <command>yaz-marcdump</command>
    <arg choice="opt" rep="repeat">file</arg>
   </cmdsynopsis>
  </refsynopsisdiv>
+
  <refsect1><title>DESCRIPTION</title>
   <para>
    <command>yaz-marcdump</command> reads MARC records from one or
    more files.
-   It parses each record and supports output in line-format, 
-   ISO2709, MARCXML, MarcXchange as well as Hex output.
+   It parses each record and supports output in line-format,
+   ISO2709,
+   <ulink url="&url.marcxml;">MARCXML</ulink>,
+   <ulink url="&url.marc_in_json;">MARC-in-JSON</ulink>,
+   <ulink url="&url.marcxchange;">MarcXchange</ulink>
+   as well as Hex output.
+  </para>
+  <para>
+   This utility parses records ISO2709(raw MARC), line format, MARC-in-JSON
+   format as well as XML if that is structured as MARCXML/MarcXchange.
   </para>
   <para>
-   This utility parses records ISO2709(raw MARC) as well as XML
-   if that is structured as MARCXML/MarcXchange.
+   MARC-in-JSON encoding/decoding is supported in YAZ 5.0.5 and later.
   </para>
   <note>
    <para>
@@ -69,9 +79,9 @@
    character set conversion of each record.
   </para>
  </refsect1>
+
  <refsect1><title>OPTIONS</title>
-  
+
   <variablelist>
    <varlistentry>
     <term>-i <replaceable>format</replaceable></term>
@@ -79,7 +89,9 @@
       Specifies input format. Must be one of
       <literal>marcxml</literal>, <literal>marc</literal> (ISO2709),
       <literal>marcxchange</literal> (ISO25577),
-      <literal>line</literal> (line mode MARC).
+      <literal>line</literal> (line mode MARC),
+      <literal>turbomarc</literal> (Turbo MARC),
+      or <literal>json</literal> (MARC-in-JSON).
      </para></listitem>
    </varlistentry>
 
       Specifies output format. Must be one of
       <literal>marcxml</literal>, <literal>marc</literal> (ISO2709),
       <literal>marcxchange</literal> (ISO25577),
-      <literal>line</literal> (line mode MARC).
+      <literal>line</literal> (line mode MARC),
+      <literal>turbomarc</literal> (Turbo MARC),
+      or <literal>json</literal> (MARC-in-JSON).
      </para></listitem>
    </varlistentry>
 
       pairs, where pos is an integer offset (0 - 23) for leader. Value
       is either a quoted string or an integer (character value in decimal).
       Pairs are comma separated. For example, to set leader at offset 9
-      to a, use <literal>9=a</literal>.
+      to a, use <literal>9='a'</literal>.
      </para></listitem>
    </varlistentry>
 
    <varlistentry>
     <term>-C <replaceable>chunksize</replaceable></term>
     <listitem><para>
-      Specifies chunk size; to be used conjunction with option 
+      Specifies chunk size; to be used conjunction with option
       <literal>-s</literal>.
      </para></listitem>
    </varlistentry>
       Useful if you have ill-formatted ISO2709 records as input.
      </para></listitem>
    </varlistentry>
-   
+
    <varlistentry>
     <term>-V</term>
     <listitem><para>
     yaz-marcdump -f MARC-8 -t UTF-8 -o marcxml marc21.raw >marcxml.xml
    </screen>
   </para>
- </refsect1> 
+
+  <para>
+   Turbo MARC is a compact XML notation with same semantics as
+   MARCXML, but which allows for faster processing via XSLT. In order
+   to generate Turbo MARC records encoded in UTF-8 from MARC21 (ISO), one
+   could use:
+   <screen>
+    yaz-marcdump -f MARC8 -t UTF8 -o turbomarc -i marc marc21.raw >out.xml
+   </screen>
+  </para>
+ </refsect1>
 
  <refsect1><title>FILES</title>
   <para>
     <manvolnum>1</manvolnum>
    </citerefentry>
   </para>
-  <para>
-   <ulink url="&url.marcxml;">MARCXML</ulink>.
-  </para>
-  <para>
-   <ulink url="&url.marcxchange;">ISO25577</ulink>.
-  </para>
  </refsect1>
 </refentry>
 
 <!-- Keep this comment at the end of the file
 Local variables:
-mode: sgml
-sgml-omittag:t
-sgml-shorttag:t
-sgml-minimize-attributes:nil
-sgml-always-quote-attributes:t
-sgml-indent-step:1
-sgml-indent-data:t
-sgml-parent-document:nil
-sgml-local-catalogs: nil
-sgml-namecase-general:t
+mode: nxml
+nxml-child-indent: 1
 End:
 -->