{"action":"created","comment":{"url":"https://api.github.com/repos/inspirehep/inspire/pulls/comments/83041337","pull_request_review_id":3907787,"id":83041337,"diff_hunk":"@@ -71,8 +71,14 @@ def format_element(bfo, default='', separator='; ', style='',\n \n         if provenance == 'KEKSCAN':\n             extid = extid.replace(\"-\", \"\")\n-            links.append('<a%s href=\"%s%s\"> KEK scanned document</a>' %\n-                         (style, KEK, extid))\n+            if not extid.startswith('20'):\n+                year = '19' + extid[:2]\n+            else:\n+                year = extid[:4]\n+                extid = extid[2:]\n+            prefix = exitd[:4]","path":"bibformat/format_elements/bfe_INSPIRE_links.py","position":20,"original_position":20,"commit_id":"1ecd9c75029b0fecd1791f14f846797eed32033f","original_commit_id":"1ecd9c75029b0fecd1791f14f846797eed32033f","user":{"login":"tsgit","id":766159,"avatar_url":"https://avatars.githubusercontent.com/u/766159?v=3","gravatar_id":"","url":"https://api.github.com/users/tsgit","html_url":"https://github.com/tsgit","followers_url":"https://api.github.com/users/tsgit/followers","following_url":"https://api.github.com/users/tsgit/following{/other_user}","gists_url":"https://api.github.com/users/tsgit/gists{/gist_id}","starred_url":"https://api.github.com/users/tsgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsgit/subscriptions","organizations_url":"https://api.github.com/users/tsgit/orgs","repos_url":"https://api.github.com/users/tsgit/repos","events_url":"https://api.github.com/users/tsgit/events{/privacy}","received_events_url":"https://api.github.com/users/tsgit/received_events","type":"User","site_admin":false},"body":"another snafu: \"prefix\" has some other meaning in bibformat and leads to a prefix being printed in front of the format element. Doh!","created_at":"2016-10-12T16:12:43Z","updated_at":"2016-10-12T16:13:27Z","html_url":"https://github.com/inspirehep/inspire/pull/225#discussion_r83041337","pull_request_url":"https://api.github.com/repos/inspirehep/inspire/pulls/225","_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspire/pulls/comments/83041337"},"html":{"href":"https://github.com/inspirehep/inspire/pull/225#discussion_r83041337"},"pull_request":{"href":"https://api.github.com/repos/inspirehep/inspire/pulls/225"}}},"pull_request":{"url":"https://api.github.com/repos/inspirehep/inspire/pulls/225","id":89006173,"html_url":"https://github.com/inspirehep/inspire/pull/225","diff_url":"https://github.com/inspirehep/inspire/pull/225.diff","patch_url":"https://github.com/inspirehep/inspire/pull/225.patch","issue_url":"https://api.github.com/repos/inspirehep/inspire/issues/225","number":225,"state":"open","locked":false,"title":"BibFormat: update KEK scan URL","user":{"login":"kaplun","id":119349,"avatar_url":"https://avatars.githubusercontent.com/u/119349?v=3","gravatar_id":"","url":"https://api.github.com/users/kaplun","html_url":"https://github.com/kaplun","followers_url":"https://api.github.com/users/kaplun/followers","following_url":"https://api.github.com/users/kaplun/following{/other_user}","gists_url":"https://api.github.com/users/kaplun/gists{/gist_id}","starred_url":"https://api.github.com/users/kaplun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaplun/subscriptions","organizations_url":"https://api.github.com/users/kaplun/orgs","repos_url":"https://api.github.com/users/kaplun/repos","events_url":"https://api.github.com/users/kaplun/events{/privacy}","received_events_url":"https://api.github.com/users/kaplun/received_events","type":"User","site_admin":false},"body":"* Updates KEK scan URL algorithm to reflect the recent change.\n  (See https://rt.inspirehep.net/Ticket/Display.html?id=607395)\n\n* Amends INIS algorithm to not do useless replaces.\n\nSigned-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>","created_at":"2016-10-12T12:26:16Z","updated_at":"2016-10-12T16:13:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c8c12dc2391ac50dae335e79a5ef785714b0e549","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/inspirehep/inspire/pulls/225/commits","review_comments_url":"https://api.github.com/repos/inspirehep/inspire/pulls/225/comments","review_comment_url":"https://api.github.com/repos/inspirehep/inspire/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inspirehep/inspire/issues/225/comments","statuses_url":"https://api.github.com/repos/inspirehep/inspire/statuses/1ecd9c75029b0fecd1791f14f846797eed32033f","head":{"label":"kaplun:kek-fix","ref":"kek-fix","sha":"1ecd9c75029b0fecd1791f14f846797eed32033f","user":{"login":"kaplun","id":119349,"avatar_url":"https://avatars.githubusercontent.com/u/119349?v=3","gravatar_id":"","url":"https://api.github.com/users/kaplun","html_url":"https://github.com/kaplun","followers_url":"https://api.github.com/users/kaplun/followers","following_url":"https://api.github.com/users/kaplun/following{/other_user}","gists_url":"https://api.github.com/users/kaplun/gists{/gist_id}","starred_url":"https://api.github.com/users/kaplun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaplun/subscriptions","organizations_url":"https://api.github.com/users/kaplun/orgs","repos_url":"https://api.github.com/users/kaplun/repos","events_url":"https://api.github.com/users/kaplun/events{/privacy}","received_events_url":"https://api.github.com/users/kaplun/received_events","type":"User","site_admin":false},"repo":{"id":24058358,"name":"inspire","full_name":"kaplun/inspire","owner":{"login":"kaplun","id":119349,"avatar_url":"https://avatars.githubusercontent.com/u/119349?v=3","gravatar_id":"","url":"https://api.github.com/users/kaplun","html_url":"https://github.com/kaplun","followers_url":"https://api.github.com/users/kaplun/followers","following_url":"https://api.github.com/users/kaplun/following{/other_user}","gists_url":"https://api.github.com/users/kaplun/gists{/gist_id}","starred_url":"https://api.github.com/users/kaplun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaplun/subscriptions","organizations_url":"https://api.github.com/users/kaplun/orgs","repos_url":"https://api.github.com/users/kaplun/repos","events_url":"https://api.github.com/users/kaplun/events{/privacy}","received_events_url":"https://api.github.com/users/kaplun/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kaplun/inspire","description":"Official mirror of INSPIRE overlay (http://invenio-software.org/repo/inspire). ","fork":true,"url":"https://api.github.com/repos/kaplun/inspire","forks_url":"https://api.github.com/repos/kaplun/inspire/forks","keys_url":"https://api.github.com/repos/kaplun/inspire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaplun/inspire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaplun/inspire/teams","hooks_url":"https://api.github.com/repos/kaplun/inspire/hooks","issue_events_url":"https://api.github.com/repos/kaplun/inspire/issues/events{/number}","events_url":"https://api.github.com/repos/kaplun/inspire/events","assignees_url":"https://api.github.com/repos/kaplun/inspire/assignees{/user}","branches_url":"https://api.github.com/repos/kaplun/inspire/branches{/branch}","tags_url":"https://api.github.com/repos/kaplun/inspire/tags","blobs_url":"https://api.github.com/repos/kaplun/inspire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaplun/inspire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaplun/inspire/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaplun/inspire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaplun/inspire/statuses/{sha}","languages_url":"https://api.github.com/repos/kaplun/inspire/languages","stargazers_url":"https://api.github.com/repos/kaplun/inspire/stargazers","contributors_url":"https://api.github.com/repos/kaplun/inspire/contributors","subscribers_url":"https://api.github.com/repos/kaplun/inspire/subscribers","subscription_url":"https://api.github.com/repos/kaplun/inspire/subscription","commits_url":"https://api.github.com/repos/kaplun/inspire/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaplun/inspire/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaplun/inspire/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaplun/inspire/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaplun/inspire/contents/{+path}","compare_url":"https://api.github.com/repos/kaplun/inspire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaplun/inspire/merges","archive_url":"https://api.github.com/repos/kaplun/inspire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaplun/inspire/downloads","issues_url":"https://api.github.com/repos/kaplun/inspire/issues{/number}","pulls_url":"https://api.github.com/repos/kaplun/inspire/pulls{/number}","milestones_url":"https://api.github.com/repos/kaplun/inspire/milestones{/number}","notifications_url":"https://api.github.com/repos/kaplun/inspire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaplun/inspire/labels{/name}","releases_url":"https://api.github.com/repos/kaplun/inspire/releases{/id}","deployments_url":"https://api.github.com/repos/kaplun/inspire/deployments","created_at":"2014-09-15T13:55:09Z","updated_at":"2016-07-22T09:10:14Z","pushed_at":"2016-10-12T12:26:09Z","git_url":"git://github.com/kaplun/inspire.git","ssh_url":"git@github.com:kaplun/inspire.git","clone_url":"https://github.com/kaplun/inspire.git","svn_url":"https://github.com/kaplun/inspire","homepage":"http://projecthepinspire.net","size":3354,"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":"inspirehep:master","ref":"master","sha":"79d52ef164156545a6f7e316e1c6b6d99954f671","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":822319,"name":"inspire","full_name":"inspirehep/inspire","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","description":"Official repo of INSPIRE-HEP ","fork":false,"url":"https://api.github.com/repos/inspirehep/inspire","forks_url":"https://api.github.com/repos/inspirehep/inspire/forks","keys_url":"https://api.github.com/repos/inspirehep/inspire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inspirehep/inspire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inspirehep/inspire/teams","hooks_url":"https://api.github.com/repos/inspirehep/inspire/hooks","issue_events_url":"https://api.github.com/repos/inspirehep/inspire/issues/events{/number}","events_url":"https://api.github.com/repos/inspirehep/inspire/events","assignees_url":"https://api.github.com/repos/inspirehep/inspire/assignees{/user}","branches_url":"https://api.github.com/repos/inspirehep/inspire/branches{/branch}","tags_url":"https://api.github.com/repos/inspirehep/inspire/tags","blobs_url":"https://api.github.com/repos/inspirehep/inspire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inspirehep/inspire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inspirehep/inspire/git/refs{/sha}","trees_url":"https://api.github.com/repos/inspirehep/inspire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inspirehep/inspire/statuses/{sha}","languages_url":"https://api.github.com/repos/inspirehep/inspire/languages","stargazers_url":"https://api.github.com/repos/inspirehep/inspire/stargazers","contributors_url":"https://api.github.com/repos/inspirehep/inspire/contributors","subscribers_url":"https://api.github.com/repos/inspirehep/inspire/subscribers","subscription_url":"https://api.github.com/repos/inspirehep/inspire/subscription","commits_url":"https://api.github.com/repos/inspirehep/inspire/commits{/sha}","git_commits_url":"https://api.github.com/repos/inspirehep/inspire/git/commits{/sha}","comments_url":"https://api.github.com/repos/inspirehep/inspire/comments{/number}","issue_comment_url":"https://api.github.com/repos/inspirehep/inspire/issues/comments{/number}","contents_url":"https://api.github.com/repos/inspirehep/inspire/contents/{+path}","compare_url":"https://api.github.com/repos/inspirehep/inspire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inspirehep/inspire/merges","archive_url":"https://api.github.com/repos/inspirehep/inspire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inspirehep/inspire/downloads","issues_url":"https://api.github.com/repos/inspirehep/inspire/issues{/number}","pulls_url":"https://api.github.com/repos/inspirehep/inspire/pulls{/number}","milestones_url":"https://api.github.com/repos/inspirehep/inspire/milestones{/number}","notifications_url":"https://api.github.com/repos/inspirehep/inspire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inspirehep/inspire/labels{/name}","releases_url":"https://api.github.com/repos/inspirehep/inspire/releases{/id}","deployments_url":"https://api.github.com/repos/inspirehep/inspire/deployments","created_at":"2010-08-06T22:02:09Z","updated_at":"2016-08-22T08:37:51Z","pushed_at":"2016-10-12T12:26:16Z","git_url":"git://github.com/inspirehep/inspire.git","ssh_url":"git@github.com:inspirehep/inspire.git","clone_url":"https://github.com/inspirehep/inspire.git","svn_url":"https://github.com/inspirehep/inspire","homepage":"http://projecthepinspire.net","size":3898,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":17,"forks":18,"open_issues":17,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspire/pulls/225"},"html":{"href":"https://github.com/inspirehep/inspire/pull/225"},"issue":{"href":"https://api.github.com/repos/inspirehep/inspire/issues/225"},"comments":{"href":"https://api.github.com/repos/inspirehep/inspire/issues/225/comments"},"review_comments":{"href":"https://api.github.com/repos/inspirehep/inspire/pulls/225/comments"},"review_comment":{"href":"https://api.github.com/repos/inspirehep/inspire/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inspirehep/inspire/pulls/225/commits"},"statuses":{"href":"https://api.github.com/repos/inspirehep/inspire/statuses/1ecd9c75029b0fecd1791f14f846797eed32033f"}}}}
{"actor":{"display_login":"tsgit"}}