Re: Converting MARC fields with Catmandu - repeated subfields being squished together.

[email protected] (Robin Sheat) Mon, 09 Jun 2014 14:50:11 +1200
Newsgroups perl.perl4lib
Organization Catalyst IT Ltd.
Message-ID <[email protected]>
--=-7BNkVg2SRaWR9kuXq8aI
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Patrick Hochstenbach schreef op vr 06-06-2014 om 06:53 [+0200]:
> By default all repeated subfields get joined by empty space, you can
> set this with the 'join' option:
>=20
>     marc_map('650v','subject',join:'%%%')

This doesn't work:

$ cat test.fixes
marc_map('650','subject',join:'###');
remove_field('record');

(the remove is just to make the results easier to see.)

In the MARC record I'm experimenting with:

650  0 _aCounting
       _vPictorial works
       _vJuvenile literature.
650  0 _aEnglish language
       _xAlphabet
       _vPictorial works
       _vJuvenile literature.
       _914467
650  0 _aTime
       _vPictorial works
       _vJuvenile literature.
       _915531
650  0 _aChildren's stories, English
       _vPictorial works.

$ catmandu convert MARC --fix test.fixes < test.marc=20
can't load fix marc_map('650','subject',join:'###');
remove_field('record');
: Not enough arguments for join or string at (eval 85) line 1, near "join:"
syntax error at (eval 85) line 1, near "join:"

Followed by a trace. The same goes when I attempt to use split:1, and
pretty much anything after the two parameters.

--=20
Robin Sheat
Catalyst IT Ltd.
=E2=9C=86 +64 4 803 2204
GPG: 5FA7 4B49 1E4D CAA4 4C38  8505 77F5 B724 F871 3BDF

--=-7BNkVg2SRaWR9kuXq8aI
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iQEcBAABCgAGBQJTlSDkAAoJEHf1tyT4cTvf/MgH/R46L/ABFcVtmBV4afxFcX3t
Nyeiy1YJxezWe6bPP16008c4XEds77pTE7GJTVVbefgJ9MLUo3CqQHwGtKncSnoA
iQ0K0aaFbdyOsd/3PVJIAV2SdD9iGYwN1kdqcEWzlXv56ccEKvgVE7MIhQa8OyUT
UxJtlB+0lCNdaW8Z01huEDnj/bwBxQ1GtUT/Vy3xAHbuFEo4s4sW5leAndh2m66A
6VcudRi7uzU++y+jeTi4L9Ytxpd93d35dPY5+eMdtP54O7wjk8bPM2a38Vs2nPk5
kdOT+RxEPYOcK3ax3J+ktcCop0BXgM1d79Ki+OnJpRqxjwA21mnHHrdFxcsRHbc=
=HxpZ
-----END PGP SIGNATURE-----

--=-7BNkVg2SRaWR9kuXq8aI--