{"action":"created","issue":{"url":"https://api.github.com/repos/LibreCat/Catmandu-MARC/issues/31","repository_url":"https://api.github.com/repos/LibreCat/Catmandu-MARC","labels_url":"https://api.github.com/repos/LibreCat/Catmandu-MARC/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/LibreCat/Catmandu-MARC/issues/31/comments","events_url":"https://api.github.com/repos/LibreCat/Catmandu-MARC/issues/31/events","html_url":"https://github.com/LibreCat/Catmandu-MARC/issues/31","id":159397077,"number":31,"title":"Catmandu::Fix::marc_map $append and split","user":{"login":"cKlee","id":849235,"avatar_url":"https://avatars.githubusercontent.com/u/849235?v=3","gravatar_id":"","url":"https://api.github.com/users/cKlee","html_url":"https://github.com/cKlee","followers_url":"https://api.github.com/users/cKlee/followers","following_url":"https://api.github.com/users/cKlee/following{/other_user}","gists_url":"https://api.github.com/users/cKlee/gists{/gist_id}","starred_url":"https://api.github.com/users/cKlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cKlee/subscriptions","organizations_url":"https://api.github.com/users/cKlee/orgs","repos_url":"https://api.github.com/users/cKlee/repos","events_url":"https://api.github.com/users/cKlee/events{/privacy}","received_events_url":"https://api.github.com/users/cKlee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-09T12:36:45Z","updated_at":"2016-06-13T14:35:41Z","closed_at":null,"body":"From the documentation (cheat sheet) it's not really clear what is the difference between ```$append``` and ```split``` and what happens if one combines both. Maybe an example with repeated fields can help:\r\n```\r\nmarc_map('084', 'my.classification.$append')\r\n# my:\r\n#   classification:\r\n#    - 54.53Programmiersprachenbcl\r\n#    - 54.65Webentwicklungbcl\r\n#    - ST 250rvk\r\n\r\nmarc_map('084', 'my.classification', split:1)\r\n# my:\r\n# classification:\r\n#  - - '54.53'\r\n#    - Programmiersprachen\r\n#    - bcl\r\n#  - - '54.65'\r\n#    - Webentwicklung\r\n#    - bcl\r\n#  - - ST 250\r\n#    - rvk\r\n\r\nmarc_map('084', 'my.classification.$append', split:1)\r\n# my:\r\n#   classification:\r\n#   - - - '54.53'\r\n#       - Programmiersprachen\r\n#       - bcl\r\n#   - - - '54.65'\r\n#       - Webentwicklung\r\n#       - bcl\r\n#   - - - ST 250\r\n#       - rvk\r\n\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/LibreCat/Catmandu-MARC/issues/comments/225599783","html_url":"https://github.com/LibreCat/Catmandu-MARC/issues/31#issuecomment-225599783","issue_url":"https://api.github.com/repos/LibreCat/Catmandu-MARC/issues/31","id":225599783,"user":{"login":"phochste","id":66416,"avatar_url":"https://avatars.githubusercontent.com/u/66416?v=3","gravatar_id":"","url":"https://api.github.com/users/phochste","html_url":"https://github.com/phochste","followers_url":"https://api.github.com/users/phochste/followers","following_url":"https://api.github.com/users/phochste/following{/other_user}","gists_url":"https://api.github.com/users/phochste/gists{/gist_id}","starred_url":"https://api.github.com/users/phochste/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phochste/subscriptions","organizations_url":"https://api.github.com/users/phochste/orgs","repos_url":"https://api.github.com/users/phochste/repos","events_url":"https://api.github.com/users/phochste/events{/privacy}","received_events_url":"https://api.github.com/users/phochste/received_events","type":"User","site_admin":false},"created_at":"2016-06-13T14:35:41Z","updated_at":"2016-06-13T14:35:41Z","body":"Well.. is between a bug and a feature. And I don't think I want to support these kinds of array of array of arrays anymore. This has to be been proven quite unhandy in processing MARC.\r\n\r\nE.g. isbn numbers 020 can be in a repeated field with repeated subfields. I would like to get a simple array of all ISBNs with:\r\n\r\n     marc_map(020a,my,split:1)\r\n\r\nIn the current version you get:\r\n\r\n     my:\r\n        - - isbn 1.1\r\n          - isbn 1.2\r\n        - isbn 2.1\r\n\r\nMy preference is to get:\r\n\r\n     my:\r\n        - isbn 1.1\r\n        - isbn 1.2\r\n        - isbn 2.1"}}
{"actor":{"display_login":"phochste"}}