"https://gist.githubusercontent.com/TobiasNx/84a96e5a8eb7499e6085a73ae3d27711/raw/af8f7c5ee49222b03365aeb6c696e63c5349f240/degruyter_global_EBA-EBKALL_2025-11-16.mrc.lf.mrc"
|open-http
|as-records
//|match(pattern="\n",replacement=" ")
|decode-marc21
|fix(transformationFile)
|encode-yaml
|print
;
move_field("50500","@50500")
do list(path:"@50500","var":"TEST")
replace_all("TEST.t.*","\\n"," ")
do list_as(R:"TEST.r",T:"TEST.t")
copy_field("R","50500.r.$append")
copy_field("T","50500.t.$append")
end
end
#
# remove_field("@50500")
retain("@50500","50500")
``
https://metafacture.org/playground/?flux=%22https%3A//gist.githubusercontent.com/TobiasNx/84a96e5a8eb7499e6085a73ae3d27711/raw/af8f7c5ee49222b03365aeb6c696e63c5349f240/degruyter_global_EBA-EBKALL_2025-11-16.mrc.lf.mrc%22%0A%7Copen-http%0A%7Cas-records%0A//%7Cmatch%28pattern%3D%22\n%22%2Creplacement%3D%22+%22%29%0A%7Cdecode-marc21%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B%0A&transformation=move_field%28%2250500%22%2C%22@50500%22%29%0A%0Ado+list%28path%3A%22@50500%22%2C%22var%22%3A%22TEST%22%29%0A++++replace_all%28%22TEST.t.%2A%22%2C%22\\n%22%2C%22+%22%29%0A++++do+list_as%28R%3A%22TEST.r%22%2CT%3A%22TEST.t%22%29%0A++++++++copy_field%28%22R%22%2C%2250500.r.%24append%22%29%0A++++++++copy_field%28%22T%22%2C%2250500.t.%24append%22%29%0A++++end%0Aend%0A%23+%0A%23+remove_field%28%22@50500%22%29%0Aretain%28%22@50500%22%2C%2250500%22%29
FLUX:
FIX: