Skip to content

Commit b1a3996

Browse files
authored
Use marc example without encoding problems #29 (#39)
1 parent cc95dad commit b1a3996

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MF-in-5-min.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ retain("title", "id")
161161
| as-records
162162
| decode-marc21
163163
| fix("titles.fix")
164-
| encode-csv
164+
| encode-csv(includeHeader="true")
165165
| print
166166
;
167167
```
168168

169-
[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)
169+
[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)
170170

171171
In the example above marc data is converted to a csv file.
172172
The 245 field with its subfields of each MARC record is mapped to the title field.

0 commit comments

Comments
 (0)