{"action":"created","comment":{"url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/pulls/comments/73168372","id":73168372,"diff_hunk":"@@ -31,3 +31,30 @@ def get_authors_credentials(orcid):\n         id=orcid, method='orcid').first()\n     user = RemoteAccount.query.filter_by(user_id=raw_user.id_user).first()\n     return user.tokens[0].access_token\n+\n+\n+def convert_to_orcid(record):","path":"invenio_orcid/utils.py","position":6,"original_position":6,"commit_id":"233dabf4b8bc8bf5bb1f5b58f5c84a107d9e83c0","original_commit_id":"233dabf4b8bc8bf5bb1f5b58f5c84a107d9e83c0","user":{"login":"jirikuncar","id":189798,"avatar_url":"https://avatars.githubusercontent.com/u/189798?v=3","gravatar_id":"","url":"https://api.github.com/users/jirikuncar","html_url":"https://github.com/jirikuncar","followers_url":"https://api.github.com/users/jirikuncar/followers","following_url":"https://api.github.com/users/jirikuncar/following{/other_user}","gists_url":"https://api.github.com/users/jirikuncar/gists{/gist_id}","starred_url":"https://api.github.com/users/jirikuncar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirikuncar/subscriptions","organizations_url":"https://api.github.com/users/jirikuncar/orgs","repos_url":"https://api.github.com/users/jirikuncar/repos","events_url":"https://api.github.com/users/jirikuncar/events{/privacy}","received_events_url":"https://api.github.com/users/jirikuncar/received_events","type":"User","site_admin":false},"body":"> As an example ...\r\n\r\nIMHO we don't want to show Zenodo or INSPIRE data model here. MARC21 is neutral in digital library world.","created_at":"2016-08-02T14:44:15Z","updated_at":"2016-08-02T14:44:15Z","html_url":"https://github.com/inveniosoftware/invenio-orcid/pull/5#discussion_r73168372","pull_request_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/inveniosoftware/invenio-orcid/pulls/comments/73168372"},"html":{"href":"https://github.com/inveniosoftware/invenio-orcid/pull/5#discussion_r73168372"},"pull_request":{"href":"https://api.github.com/repos/inveniosoftware/invenio-orcid/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/pulls/5","id":79176788,"html_url":"https://github.com/inveniosoftware/invenio-orcid/pull/5","diff_url":"https://github.com/inveniosoftware/invenio-orcid/pull/5.diff","patch_url":"https://github.com/inveniosoftware/invenio-orcid/pull/5.patch","issue_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/issues/5","number":5,"state":"open","locked":false,"title":"global: pluggable converter","user":{"login":"Panos512","id":8779550,"avatar_url":"https://avatars.githubusercontent.com/u/8779550?v=3","gravatar_id":"","url":"https://api.github.com/users/Panos512","html_url":"https://github.com/Panos512","followers_url":"https://api.github.com/users/Panos512/followers","following_url":"https://api.github.com/users/Panos512/following{/other_user}","gists_url":"https://api.github.com/users/Panos512/gists{/gist_id}","starred_url":"https://api.github.com/users/Panos512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Panos512/subscriptions","organizations_url":"https://api.github.com/users/Panos512/orgs","repos_url":"https://api.github.com/users/Panos512/repos","events_url":"https://api.github.com/users/Panos512/events{/privacy}","received_events_url":"https://api.github.com/users/Panos512/received_events","type":"User","site_admin":false},"body":"* Adds a pluggable converter to orcid-json.\r\n* Fixes minor bugs.\r\n\r\nSigned-off-by: Panos Paparrigopoulos <panos.paparrigopoulos@cern.ch>","created_at":"2016-07-28T11:06:36Z","updated_at":"2016-08-02T14:44:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"49a7c5622979f94f2e8aebe1b4e13cbee66c230a","assignee":{"login":"Panos512","id":8779550,"avatar_url":"https://avatars.githubusercontent.com/u/8779550?v=3","gravatar_id":"","url":"https://api.github.com/users/Panos512","html_url":"https://github.com/Panos512","followers_url":"https://api.github.com/users/Panos512/followers","following_url":"https://api.github.com/users/Panos512/following{/other_user}","gists_url":"https://api.github.com/users/Panos512/gists{/gist_id}","starred_url":"https://api.github.com/users/Panos512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Panos512/subscriptions","organizations_url":"https://api.github.com/users/Panos512/orgs","repos_url":"https://api.github.com/users/Panos512/repos","events_url":"https://api.github.com/users/Panos512/events{/privacy}","received_events_url":"https://api.github.com/users/Panos512/received_events","type":"User","site_admin":false},"assignees":[{"login":"Panos512","id":8779550,"avatar_url":"https://avatars.githubusercontent.com/u/8779550?v=3","gravatar_id":"","url":"https://api.github.com/users/Panos512","html_url":"https://github.com/Panos512","followers_url":"https://api.github.com/users/Panos512/followers","following_url":"https://api.github.com/users/Panos512/following{/other_user}","gists_url":"https://api.github.com/users/Panos512/gists{/gist_id}","starred_url":"https://api.github.com/users/Panos512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Panos512/subscriptions","organizations_url":"https://api.github.com/users/Panos512/orgs","repos_url":"https://api.github.com/users/Panos512/repos","events_url":"https://api.github.com/users/Panos512/events{/privacy}","received_events_url":"https://api.github.com/users/Panos512/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/milestones/1","html_url":"https://github.com/inveniosoftware/invenio-orcid/milestones/v1.0.0","labels_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/milestones/1/labels","id":1840190,"number":1,"title":"v1.0.0","description":null,"creator":{"login":"jirikuncar","id":189798,"avatar_url":"https://avatars.githubusercontent.com/u/189798?v=3","gravatar_id":"","url":"https://api.github.com/users/jirikuncar","html_url":"https://github.com/jirikuncar","followers_url":"https://api.github.com/users/jirikuncar/followers","following_url":"https://api.github.com/users/jirikuncar/following{/other_user}","gists_url":"https://api.github.com/users/jirikuncar/gists{/gist_id}","starred_url":"https://api.github.com/users/jirikuncar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirikuncar/subscriptions","organizations_url":"https://api.github.com/users/jirikuncar/orgs","repos_url":"https://api.github.com/users/jirikuncar/repos","events_url":"https://api.github.com/users/jirikuncar/events{/privacy}","received_events_url":"https://api.github.com/users/jirikuncar/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":4,"state":"open","created_at":"2016-06-21T10:04:55Z","updated_at":"2016-07-28T13:46:47Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/pulls/5/commits","review_comments_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/pulls/5/comments","review_comment_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/issues/5/comments","statuses_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/statuses/233dabf4b8bc8bf5bb1f5b58f5c84a107d9e83c0","head":{"label":"Panos512:convert_method","ref":"convert_method","sha":"233dabf4b8bc8bf5bb1f5b58f5c84a107d9e83c0","user":{"login":"Panos512","id":8779550,"avatar_url":"https://avatars.githubusercontent.com/u/8779550?v=3","gravatar_id":"","url":"https://api.github.com/users/Panos512","html_url":"https://github.com/Panos512","followers_url":"https://api.github.com/users/Panos512/followers","following_url":"https://api.github.com/users/Panos512/following{/other_user}","gists_url":"https://api.github.com/users/Panos512/gists{/gist_id}","starred_url":"https://api.github.com/users/Panos512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Panos512/subscriptions","organizations_url":"https://api.github.com/users/Panos512/orgs","repos_url":"https://api.github.com/users/Panos512/repos","events_url":"https://api.github.com/users/Panos512/events{/privacy}","received_events_url":"https://api.github.com/users/Panos512/received_events","type":"User","site_admin":false},"repo":{"id":64375149,"name":"invenio-orcid","full_name":"Panos512/invenio-orcid","owner":{"login":"Panos512","id":8779550,"avatar_url":"https://avatars.githubusercontent.com/u/8779550?v=3","gravatar_id":"","url":"https://api.github.com/users/Panos512","html_url":"https://github.com/Panos512","followers_url":"https://api.github.com/users/Panos512/followers","following_url":"https://api.github.com/users/Panos512/following{/other_user}","gists_url":"https://api.github.com/users/Panos512/gists{/gist_id}","starred_url":"https://api.github.com/users/Panos512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Panos512/subscriptions","organizations_url":"https://api.github.com/users/Panos512/orgs","repos_url":"https://api.github.com/users/Panos512/repos","events_url":"https://api.github.com/users/Panos512/events{/privacy}","received_events_url":"https://api.github.com/users/Panos512/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Panos512/invenio-orcid","description":"ORCID integration for Invenio. ","fork":true,"url":"https://api.github.com/repos/Panos512/invenio-orcid","forks_url":"https://api.github.com/repos/Panos512/invenio-orcid/forks","keys_url":"https://api.github.com/repos/Panos512/invenio-orcid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Panos512/invenio-orcid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Panos512/invenio-orcid/teams","hooks_url":"https://api.github.com/repos/Panos512/invenio-orcid/hooks","issue_events_url":"https://api.github.com/repos/Panos512/invenio-orcid/issues/events{/number}","events_url":"https://api.github.com/repos/Panos512/invenio-orcid/events","assignees_url":"https://api.github.com/repos/Panos512/invenio-orcid/assignees{/user}","branches_url":"https://api.github.com/repos/Panos512/invenio-orcid/branches{/branch}","tags_url":"https://api.github.com/repos/Panos512/invenio-orcid/tags","blobs_url":"https://api.github.com/repos/Panos512/invenio-orcid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Panos512/invenio-orcid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Panos512/invenio-orcid/git/refs{/sha}","trees_url":"https://api.github.com/repos/Panos512/invenio-orcid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Panos512/invenio-orcid/statuses/{sha}","languages_url":"https://api.github.com/repos/Panos512/invenio-orcid/languages","stargazers_url":"https://api.github.com/repos/Panos512/invenio-orcid/stargazers","contributors_url":"https://api.github.com/repos/Panos512/invenio-orcid/contributors","subscribers_url":"https://api.github.com/repos/Panos512/invenio-orcid/subscribers","subscription_url":"https://api.github.com/repos/Panos512/invenio-orcid/subscription","commits_url":"https://api.github.com/repos/Panos512/invenio-orcid/commits{/sha}","git_commits_url":"https://api.github.com/repos/Panos512/invenio-orcid/git/commits{/sha}","comments_url":"https://api.github.com/repos/Panos512/invenio-orcid/comments{/number}","issue_comment_url":"https://api.github.com/repos/Panos512/invenio-orcid/issues/comments{/number}","contents_url":"https://api.github.com/repos/Panos512/invenio-orcid/contents/{+path}","compare_url":"https://api.github.com/repos/Panos512/invenio-orcid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Panos512/invenio-orcid/merges","archive_url":"https://api.github.com/repos/Panos512/invenio-orcid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Panos512/invenio-orcid/downloads","issues_url":"https://api.github.com/repos/Panos512/invenio-orcid/issues{/number}","pulls_url":"https://api.github.com/repos/Panos512/invenio-orcid/pulls{/number}","milestones_url":"https://api.github.com/repos/Panos512/invenio-orcid/milestones{/number}","notifications_url":"https://api.github.com/repos/Panos512/invenio-orcid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Panos512/invenio-orcid/labels{/name}","releases_url":"https://api.github.com/repos/Panos512/invenio-orcid/releases{/id}","deployments_url":"https://api.github.com/repos/Panos512/invenio-orcid/deployments","created_at":"2016-07-28T07:50:04Z","updated_at":"2016-07-28T07:52:42Z","pushed_at":"2016-07-29T15:14:39Z","git_url":"git://github.com/Panos512/invenio-orcid.git","ssh_url":"git@github.com:Panos512/invenio-orcid.git","clone_url":"https://github.com/Panos512/invenio-orcid.git","svn_url":"https://github.com/Panos512/invenio-orcid","homepage":null,"size":40,"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":"master"}},"base":{"label":"inveniosoftware:master","ref":"master","sha":"747c487013a7e4ca81d36cbc1e426734ad05c3c2","user":{"login":"inveniosoftware","id":1157480,"avatar_url":"https://avatars.githubusercontent.com/u/1157480?v=3","gravatar_id":"","url":"https://api.github.com/users/inveniosoftware","html_url":"https://github.com/inveniosoftware","followers_url":"https://api.github.com/users/inveniosoftware/followers","following_url":"https://api.github.com/users/inveniosoftware/following{/other_user}","gists_url":"https://api.github.com/users/inveniosoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/inveniosoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inveniosoftware/subscriptions","organizations_url":"https://api.github.com/users/inveniosoftware/orgs","repos_url":"https://api.github.com/users/inveniosoftware/repos","events_url":"https://api.github.com/users/inveniosoftware/events{/privacy}","received_events_url":"https://api.github.com/users/inveniosoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":61618345,"name":"invenio-orcid","full_name":"inveniosoftware/invenio-orcid","owner":{"login":"inveniosoftware","id":1157480,"avatar_url":"https://avatars.githubusercontent.com/u/1157480?v=3","gravatar_id":"","url":"https://api.github.com/users/inveniosoftware","html_url":"https://github.com/inveniosoftware","followers_url":"https://api.github.com/users/inveniosoftware/followers","following_url":"https://api.github.com/users/inveniosoftware/following{/other_user}","gists_url":"https://api.github.com/users/inveniosoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/inveniosoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inveniosoftware/subscriptions","organizations_url":"https://api.github.com/users/inveniosoftware/orgs","repos_url":"https://api.github.com/users/inveniosoftware/repos","events_url":"https://api.github.com/users/inveniosoftware/events{/privacy}","received_events_url":"https://api.github.com/users/inveniosoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inveniosoftware/invenio-orcid","description":"ORCID integration for Invenio. ","fork":false,"url":"https://api.github.com/repos/inveniosoftware/invenio-orcid","forks_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/forks","keys_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/teams","hooks_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/hooks","issue_events_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/issues/events{/number}","events_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/events","assignees_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/assignees{/user}","branches_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/branches{/branch}","tags_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/tags","blobs_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/git/refs{/sha}","trees_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/statuses/{sha}","languages_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/languages","stargazers_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/stargazers","contributors_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/contributors","subscribers_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/subscribers","subscription_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/subscription","commits_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/commits{/sha}","git_commits_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/git/commits{/sha}","comments_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/comments{/number}","issue_comment_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/issues/comments{/number}","contents_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/contents/{+path}","compare_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/merges","archive_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/downloads","issues_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/issues{/number}","pulls_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/pulls{/number}","milestones_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/milestones{/number}","notifications_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/labels{/name}","releases_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/releases{/id}","deployments_url":"https://api.github.com/repos/inveniosoftware/invenio-orcid/deployments","created_at":"2016-06-21T08:56:28Z","updated_at":"2016-06-21T09:15:08Z","pushed_at":"2016-07-29T15:14:39Z","git_url":"git://github.com/inveniosoftware/invenio-orcid.git","ssh_url":"git@github.com:inveniosoftware/invenio-orcid.git","clone_url":"https://github.com/inveniosoftware/invenio-orcid.git","svn_url":"https://github.com/inveniosoftware/invenio-orcid","homepage":null,"size":50,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":4,"forks":6,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inveniosoftware/invenio-orcid/pulls/5"},"html":{"href":"https://github.com/inveniosoftware/invenio-orcid/pull/5"},"issue":{"href":"https://api.github.com/repos/inveniosoftware/invenio-orcid/issues/5"},"comments":{"href":"https://api.github.com/repos/inveniosoftware/invenio-orcid/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/inveniosoftware/invenio-orcid/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/inveniosoftware/invenio-orcid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inveniosoftware/invenio-orcid/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/inveniosoftware/invenio-orcid/statuses/233dabf4b8bc8bf5bb1f5b58f5c84a107d9e83c0"}}}}
{"actor":{"display_login":"jirikuncar"}}