From b1a399685fa76e91b36c0179aed93033c4fff91c Mon Sep 17 00:00:00 2001 From: TobiasNx <61879957+TobiasNx@users.noreply.github.com> Date: Fri, 19 Apr 2024 13:56:01 +0200 Subject: [PATCH] Use marc example without encoding problems #29 (#39) --- MF-in-5-min.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MF-in-5-min.md b/MF-in-5-min.md index b4a2b5d..843171c 100644 --- a/MF-in-5-min.md +++ b/MF-in-5-min.md @@ -161,12 +161,12 @@ retain("title", "id") | as-records | decode-marc21 | fix("titles.fix") -| encode-csv +| encode-csv(includeHeader="true") | print ; ``` -[Example in Playground](https://metafacture.org/playground/?flux=%22https%3A//raw.githubusercontent.com/metafacture/metafacture-core/master/metafacture-runner/src/main/dist/examples/read/marc21/10.marc21%22%0A%7C+open-http%0A%7C+as-lines%0A%7C+decode-marc21%0A%7C+fix%28transformationFile%29%0A%7C+encode-csv%0A%7C+print%0A%3B&transformation=set_array%28%22title%22%29%0Acopy_field%28%22245%3F%3F.%3F%22%2C%22title.%24append%22%29%0Ajoin_field%28%22title%22%29%0Acopy_field%28%22001%22%2C%22id%22%29%0Aretain%28%22title%22%2C+%22id%22%29) +[Example in Playground](https://metafacture.org/playground/?flux=%22https%3A//raw.githubusercontent.com/metafacture/metafacture-tutorial/main/data/sample.marc21%22%0A%7C+open-http%0A%7C+as-lines%0A%7C+decode-marc21%0A%7C+fix%28transformationFile%29%0A%7C+encode-csv%28includeheader%3D%22true%22%29%0A%7C+print%0A%3B&transformation=set_array%28%22title%22%29%0Acopy_field%28%22245%3F%3F.%3F%22%2C%22title.%24append%22%29%0Ajoin_field%28%22title%22%29%0Acopy_field%28%22001%22%2C%22id%22%29%0Aretain%28%22title%22%2C+%22id%22%29) In the example above marc data is converted to a csv file. The 245 field with its subfields of each MARC record is mapped to the title field.