{"action":"created","comment":{"url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments/23438993","id":23438993,"diff_hunk":"@@ -376,11 +376,11 @@ def remove_exclusive_fields(fieldlist):\n             metadata['collections'].extend([{'primary': \"arXiv\"}, {'primary': \"Citeable\"}])\n \n         if user_report_number:\n+            report_numbers = [{'primary': v['report_number']} for v in user_report_number]\n             if 'report_number' in metadata and metadata['report_number']:","path":"inspire/modules/deposit/workflows/literature.py","position":18,"original_position":18,"commit_id":"9bf73fa01045a74ceb58c3cea9f006cf1a18348d","original_commit_id":"9bf73fa01045a74ceb58c3cea9f006cf1a18348d","user":{"login":"pedrogaudencio","id":416548,"avatar_url":"https://avatars.githubusercontent.com/u/416548?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrogaudencio","html_url":"https://github.com/pedrogaudencio","followers_url":"https://api.github.com/users/pedrogaudencio/followers","following_url":"https://api.github.com/users/pedrogaudencio/following{/other_user}","gists_url":"https://api.github.com/users/pedrogaudencio/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrogaudencio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrogaudencio/subscriptions","organizations_url":"https://api.github.com/users/pedrogaudencio/orgs","repos_url":"https://api.github.com/users/pedrogaudencio/repos","events_url":"https://api.github.com/users/pedrogaudencio/events{/privacy}","received_events_url":"https://api.github.com/users/pedrogaudencio/received_events","type":"User","site_admin":false},"body":"I re-map it in post processing so every report number generates its MARC correctly. ;)","created_at":"2015-01-23T09:21:08Z","updated_at":"2015-01-23T09:21:08Z","html_url":"https://github.com/inspirehep/inspire-next/pull/186#discussion_r23438993","pull_request_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/186","_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments/23438993"},"html":{"href":"https://github.com/inspirehep/inspire-next/pull/186#discussion_r23438993"},"pull_request":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/186"}}},"pull_request":{"url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/186","id":27434064,"html_url":"https://github.com/inspirehep/inspire-next/pull/186","diff_url":"https://github.com/inspirehep/inspire-next/pull/186.diff","patch_url":"https://github.com/inspirehep/inspire-next/pull/186.patch","issue_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/186","number":186,"state":"open","locked":false,"title":"deposit: allow multiple report numbers","user":{"login":"pedrogaudencio","id":416548,"avatar_url":"https://avatars.githubusercontent.com/u/416548?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrogaudencio","html_url":"https://github.com/pedrogaudencio","followers_url":"https://api.github.com/users/pedrogaudencio/followers","following_url":"https://api.github.com/users/pedrogaudencio/following{/other_user}","gists_url":"https://api.github.com/users/pedrogaudencio/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrogaudencio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrogaudencio/subscriptions","organizations_url":"https://api.github.com/users/pedrogaudencio/orgs","repos_url":"https://api.github.com/users/pedrogaudencio/repos","events_url":"https://api.github.com/users/pedrogaudencio/events{/privacy}","received_events_url":"https://api.github.com/users/pedrogaudencio/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-15T15:01:22Z","updated_at":"2015-01-23T09:21:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b3bf09bb207267028a59138bbfa4f78bebafffea","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/186/commits","review_comments_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/186/comments","review_comment_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments/{number}","comments_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/186/comments","statuses_url":"https://api.github.com/repos/inspirehep/inspire-next/statuses/9bf73fa01045a74ceb58c3cea9f006cf1a18348d","head":{"label":"pedrogaudencio:multiple-report-number","ref":"multiple-report-number","sha":"9bf73fa01045a74ceb58c3cea9f006cf1a18348d","user":{"login":"pedrogaudencio","id":416548,"avatar_url":"https://avatars.githubusercontent.com/u/416548?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrogaudencio","html_url":"https://github.com/pedrogaudencio","followers_url":"https://api.github.com/users/pedrogaudencio/followers","following_url":"https://api.github.com/users/pedrogaudencio/following{/other_user}","gists_url":"https://api.github.com/users/pedrogaudencio/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrogaudencio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrogaudencio/subscriptions","organizations_url":"https://api.github.com/users/pedrogaudencio/orgs","repos_url":"https://api.github.com/users/pedrogaudencio/repos","events_url":"https://api.github.com/users/pedrogaudencio/events{/privacy}","received_events_url":"https://api.github.com/users/pedrogaudencio/received_events","type":"User","site_admin":false},"repo":{"id":17870297,"name":"inspire-next","full_name":"pedrogaudencio/inspire-next","owner":{"login":"pedrogaudencio","id":416548,"avatar_url":"https://avatars.githubusercontent.com/u/416548?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrogaudencio","html_url":"https://github.com/pedrogaudencio","followers_url":"https://api.github.com/users/pedrogaudencio/followers","following_url":"https://api.github.com/users/pedrogaudencio/following{/other_user}","gists_url":"https://api.github.com/users/pedrogaudencio/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrogaudencio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrogaudencio/subscriptions","organizations_url":"https://api.github.com/users/pedrogaudencio/orgs","repos_url":"https://api.github.com/users/pedrogaudencio/repos","events_url":"https://api.github.com/users/pedrogaudencio/events{/privacy}","received_events_url":"https://api.github.com/users/pedrogaudencio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pedrogaudencio/inspire-next","description":"INSPIRE overlay repository to be used with Invenio's NEXT branch","fork":true,"url":"https://api.github.com/repos/pedrogaudencio/inspire-next","forks_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/forks","keys_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/teams","hooks_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/hooks","issue_events_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/issues/events{/number}","events_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/events","assignees_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/assignees{/user}","branches_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/branches{/branch}","tags_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/tags","blobs_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/statuses/{sha}","languages_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/languages","stargazers_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/stargazers","contributors_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/contributors","subscribers_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/subscribers","subscription_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/subscription","commits_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/issues/comments/{number}","contents_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/contents/{+path}","compare_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/merges","archive_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/downloads","issues_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/issues{/number}","pulls_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/pulls{/number}","milestones_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/milestones{/number}","notifications_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/labels{/name}","releases_url":"https://api.github.com/repos/pedrogaudencio/inspire-next/releases{/id}","created_at":"2014-03-18T15:05:56Z","updated_at":"2014-07-08T08:57:19Z","pushed_at":"2015-01-22T16:16:39Z","git_url":"git://github.com/pedrogaudencio/inspire-next.git","ssh_url":"git@github.com:pedrogaudencio/inspire-next.git","clone_url":"https://github.com/pedrogaudencio/inspire-next.git","svn_url":"https://github.com/pedrogaudencio/inspire-next","homepage":null,"size":6572,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"sprint-3"}},"base":{"label":"inspirehep:master","ref":"master","sha":"74cc7db2bad184a668ff2dbf4da1ccfee92ba69c","user":{"login":"inspirehep","id":356664,"avatar_url":"https://avatars.githubusercontent.com/u/356664?v=3","gravatar_id":"","url":"https://api.github.com/users/inspirehep","html_url":"https://github.com/inspirehep","followers_url":"https://api.github.com/users/inspirehep/followers","following_url":"https://api.github.com/users/inspirehep/following{/other_user}","gists_url":"https://api.github.com/users/inspirehep/gists{/gist_id}","starred_url":"https://api.github.com/users/inspirehep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspirehep/subscriptions","organizations_url":"https://api.github.com/users/inspirehep/orgs","repos_url":"https://api.github.com/users/inspirehep/repos","events_url":"https://api.github.com/users/inspirehep/events{/privacy}","received_events_url":"https://api.github.com/users/inspirehep/received_events","type":"Organization","site_admin":false},"repo":{"id":15221515,"name":"inspire-next","full_name":"inspirehep/inspire-next","owner":{"login":"inspirehep","id":356664,"avatar_url":"https://avatars.githubusercontent.com/u/356664?v=3","gravatar_id":"","url":"https://api.github.com/users/inspirehep","html_url":"https://github.com/inspirehep","followers_url":"https://api.github.com/users/inspirehep/followers","following_url":"https://api.github.com/users/inspirehep/following{/other_user}","gists_url":"https://api.github.com/users/inspirehep/gists{/gist_id}","starred_url":"https://api.github.com/users/inspirehep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspirehep/subscriptions","organizations_url":"https://api.github.com/users/inspirehep/orgs","repos_url":"https://api.github.com/users/inspirehep/repos","events_url":"https://api.github.com/users/inspirehep/events{/privacy}","received_events_url":"https://api.github.com/users/inspirehep/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inspirehep/inspire-next","description":"INSPIRE overlay repository to be used with Invenio's NEXT branch","fork":false,"url":"https://api.github.com/repos/inspirehep/inspire-next","forks_url":"https://api.github.com/repos/inspirehep/inspire-next/forks","keys_url":"https://api.github.com/repos/inspirehep/inspire-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inspirehep/inspire-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inspirehep/inspire-next/teams","hooks_url":"https://api.github.com/repos/inspirehep/inspire-next/hooks","issue_events_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/events{/number}","events_url":"https://api.github.com/repos/inspirehep/inspire-next/events","assignees_url":"https://api.github.com/repos/inspirehep/inspire-next/assignees{/user}","branches_url":"https://api.github.com/repos/inspirehep/inspire-next/branches{/branch}","tags_url":"https://api.github.com/repos/inspirehep/inspire-next/tags","blobs_url":"https://api.github.com/repos/inspirehep/inspire-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inspirehep/inspire-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inspirehep/inspire-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/inspirehep/inspire-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inspirehep/inspire-next/statuses/{sha}","languages_url":"https://api.github.com/repos/inspirehep/inspire-next/languages","stargazers_url":"https://api.github.com/repos/inspirehep/inspire-next/stargazers","contributors_url":"https://api.github.com/repos/inspirehep/inspire-next/contributors","subscribers_url":"https://api.github.com/repos/inspirehep/inspire-next/subscribers","subscription_url":"https://api.github.com/repos/inspirehep/inspire-next/subscription","commits_url":"https://api.github.com/repos/inspirehep/inspire-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/inspirehep/inspire-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/inspirehep/inspire-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/comments/{number}","contents_url":"https://api.github.com/repos/inspirehep/inspire-next/contents/{+path}","compare_url":"https://api.github.com/repos/inspirehep/inspire-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inspirehep/inspire-next/merges","archive_url":"https://api.github.com/repos/inspirehep/inspire-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inspirehep/inspire-next/downloads","issues_url":"https://api.github.com/repos/inspirehep/inspire-next/issues{/number}","pulls_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls{/number}","milestones_url":"https://api.github.com/repos/inspirehep/inspire-next/milestones{/number}","notifications_url":"https://api.github.com/repos/inspirehep/inspire-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inspirehep/inspire-next/labels{/name}","releases_url":"https://api.github.com/repos/inspirehep/inspire-next/releases{/id}","created_at":"2013-12-16T09:11:58Z","updated_at":"2015-01-21T19:08:40Z","pushed_at":"2015-01-19T18:10:24Z","git_url":"git://github.com/inspirehep/inspire-next.git","ssh_url":"git@github.com:inspirehep/inspire-next.git","clone_url":"https://github.com/inspirehep/inspire-next.git","svn_url":"https://github.com/inspirehep/inspire-next","homepage":null,"size":8148,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":14,"forks":10,"open_issues":14,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/186"},"html":{"href":"https://github.com/inspirehep/inspire-next/pull/186"},"issue":{"href":"https://api.github.com/repos/inspirehep/inspire-next/issues/186"},"comments":{"href":"https://api.github.com/repos/inspirehep/inspire-next/issues/186/comments"},"review_comments":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/186/comments"},"review_comment":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/186/commits"},"statuses":{"href":"https://api.github.com/repos/inspirehep/inspire-next/statuses/9bf73fa01045a74ceb58c3cea9f006cf1a18348d"}}}}