{"action":"opened","issue":{"url":"https://api.github.com/repos/jorol/Catmandu-MAB2/issues/3","labels_url":"https://api.github.com/repos/jorol/Catmandu-MAB2/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/jorol/Catmandu-MAB2/issues/3/comments","events_url":"https://api.github.com/repos/jorol/Catmandu-MAB2/issues/3/events","html_url":"https://github.com/jorol/Catmandu-MAB2/issues/3","id":104217425,"number":3,"title":"Add a mab_each binder?","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-01T08:48:46Z","updated_at":"2015-09-01T08:48:46Z","closed_at":null,"body":"Maybe an easy addition to make to Catmandu::MAB2 the mab_each fix like in: https://github.com/LibreCat/Catmandu-MARC/blob/master/lib/Catmandu/Fix/Bind/marc_each.pm\r\n\r\nSay you want to apply a fix only if a subfield is available in the MAB file\r\n\r\n     do mab_each\r\n         if mab_match(\"500e\",\".*\")\r\n               fix()\r\n               fix()\r\n               ...\r\n         end\r\n     end\r\n\r\nThis would be hard to do when the 500 is a repeated field and you only want a fix for that 500 with an $e subfield.\r\n"}}