From ec98483d9ff14c5dbad349a529d48f4f9ac0ff21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rg=20Prante?= Date: Wed, 28 Sep 2016 14:50:28 +0200 Subject: [PATCH] add sub headlines --- README.adoc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.adoc b/README.adoc index ea65da0..59e864f 100644 --- a/README.adoc +++ b/README.adoc @@ -42,6 +42,8 @@ Provided are writers for XML, stylesheet transformations (MODS), and a JSON writ key/value-oriented JSON, suitable for indexing into Elasticsearch. Indexing into Elasticsearch is not part of this package. +### ISO 2709 to MarcXchange + Here is a code example for reading from an ISO 2709 stream and writing into a MarcXchange collection. [source,java] @@ -56,6 +58,8 @@ try (MarcXchangeWriter writer = new MarcXchangeWriter(out)) { } ---- +### MARC to MODS + Here is an example to create MODS from an ISO 2709 stream [source,java] @@ -71,6 +75,8 @@ System.setProperty("http.agent", "Java Agent"); marc.transform(new URL("http://www.loc.gov/standards/mods/v3/MARC21slim2MODS3.xsl"), result); ---- +### MARC to Aleph sequential + And here is an example showing how records in "Aleph Sequential") can be parsed and written into a MarcXchange collection: @@ -87,6 +93,8 @@ try (MarcXchangeWriter writer = new MarcXchangeWriter(out, true) } ---- +### MARC in Elasticsearch + Another example, writing compressed Elasticsearch bulk format JSON from an ANSEL MARC input stream: [source,java]