{"action":"created","comment":{"url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments/41321131","id":41321131,"diff_hunk":"@@ -0,0 +1,77 @@\n+#\n+# This file is part of INSPIRE.\n+# Copyright (C) 2015 CERN.\n+##\n+# INSPIRE is free software; you can redistribute it and/or\n+# modify it under the terms of the GNU General Public License as\n+# published by the Free Software Foundation; either version 2 of the\n+# License, or (at your option) any later version.\n+##\n+# INSPIRE is distributed in the hope that it will be useful, but\n+# WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n+# General Public License for more details.\n+##\n+# You should have received a copy of the GNU General Public License\n+# along with INSPIRE; if not, write to the Free Software Foundation, Inc.,\n+# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.\n+#\n+\n+from invenio.ext.template import render_template_to_string\n+from invenio_records.api import get_record\n+\n+class Reference(object):\n+\n+    \"\"\"docstring for Reference\"\"\"\n+\n+    def __init__(self, record):\n+        self.record = record\n+\n+    def references(self):\n+        \"\"\"Return reference export for single record.\"\"\"\n+","path":"inspire/utils/references.py","position":32,"original_position":32,"commit_id":"0d9e6182921f5c9c28c131c291082a21fcc086cd","original_commit_id":"0d9e6182921f5c9c28c131c291082a21fcc086cd","user":{"login":"jalavik","id":633680,"avatar_url":"https://avatars.githubusercontent.com/u/633680?v=3","gravatar_id":"","url":"https://api.github.com/users/jalavik","html_url":"https://github.com/jalavik","followers_url":"https://api.github.com/users/jalavik/followers","following_url":"https://api.github.com/users/jalavik/following{/other_user}","gists_url":"https://api.github.com/users/jalavik/gists{/gist_id}","starred_url":"https://api.github.com/users/jalavik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalavik/subscriptions","organizations_url":"https://api.github.com/users/jalavik/orgs","repos_url":"https://api.github.com/users/jalavik/repos","events_url":"https://api.github.com/users/jalavik/events{/privacy}","received_events_url":"https://api.github.com/users/jalavik/received_events","type":"User","site_admin":false},"body":"Generally this space can be removed (I believe it breaks a PEP8 rule).","created_at":"2015-10-06T20:57:37Z","updated_at":"2015-10-06T20:57:37Z","html_url":"https://github.com/inspirehep/inspire-next/pull/399#discussion_r41321131","pull_request_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/399","_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments/41321131"},"html":{"href":"https://github.com/inspirehep/inspire-next/pull/399#discussion_r41321131"},"pull_request":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/399"}}},"pull_request":{"url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/399","id":46918605,"html_url":"https://github.com/inspirehep/inspire-next/pull/399","diff_url":"https://github.com/inspirehep/inspire-next/pull/399.diff","patch_url":"https://github.com/inspirehep/inspire-next/pull/399.patch","issue_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/399","number":399,"state":"open","locked":false,"title":"format: HEP detailed record","user":{"login":"nikpap","id":2742143,"avatar_url":"https://avatars.githubusercontent.com/u/2742143?v=3","gravatar_id":"","url":"https://api.github.com/users/nikpap","html_url":"https://github.com/nikpap","followers_url":"https://api.github.com/users/nikpap/followers","following_url":"https://api.github.com/users/nikpap/following{/other_user}","gists_url":"https://api.github.com/users/nikpap/gists{/gist_id}","starred_url":"https://api.github.com/users/nikpap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikpap/subscriptions","organizations_url":"https://api.github.com/users/nikpap/orgs","repos_url":"https://api.github.com/users/nikpap/repos","events_url":"https://api.github.com/users/nikpap/events{/privacy}","received_events_url":"https://api.github.com/users/nikpap/received_events","type":"User","site_admin":false},"body":"* Layout and presentation.\r\n* Adds record references.\r\n* Consolidation of common macros between brief and detailed.\r\n\r\nSigned-off-by: Nick Papoutsis <admin@nils.gr>","created_at":"2015-10-06T15:32:13Z","updated_at":"2015-10-06T20:57:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a911a5582bac7b146eb4e45861833e397e395f1b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/399/commits","review_comments_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/399/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/399/comments","statuses_url":"https://api.github.com/repos/inspirehep/inspire-next/statuses/0d9e6182921f5c9c28c131c291082a21fcc086cd","head":{"label":"nikpap:detailed","ref":"detailed","sha":"0d9e6182921f5c9c28c131c291082a21fcc086cd","user":{"login":"nikpap","id":2742143,"avatar_url":"https://avatars.githubusercontent.com/u/2742143?v=3","gravatar_id":"","url":"https://api.github.com/users/nikpap","html_url":"https://github.com/nikpap","followers_url":"https://api.github.com/users/nikpap/followers","following_url":"https://api.github.com/users/nikpap/following{/other_user}","gists_url":"https://api.github.com/users/nikpap/gists{/gist_id}","starred_url":"https://api.github.com/users/nikpap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikpap/subscriptions","organizations_url":"https://api.github.com/users/nikpap/orgs","repos_url":"https://api.github.com/users/nikpap/repos","events_url":"https://api.github.com/users/nikpap/events{/privacy}","received_events_url":"https://api.github.com/users/nikpap/received_events","type":"User","site_admin":false},"repo":{"id":34382494,"name":"inspire-next","full_name":"nikpap/inspire-next","owner":{"login":"nikpap","id":2742143,"avatar_url":"https://avatars.githubusercontent.com/u/2742143?v=3","gravatar_id":"","url":"https://api.github.com/users/nikpap","html_url":"https://github.com/nikpap","followers_url":"https://api.github.com/users/nikpap/followers","following_url":"https://api.github.com/users/nikpap/following{/other_user}","gists_url":"https://api.github.com/users/nikpap/gists{/gist_id}","starred_url":"https://api.github.com/users/nikpap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikpap/subscriptions","organizations_url":"https://api.github.com/users/nikpap/orgs","repos_url":"https://api.github.com/users/nikpap/repos","events_url":"https://api.github.com/users/nikpap/events{/privacy}","received_events_url":"https://api.github.com/users/nikpap/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nikpap/inspire-next","description":"INSPIRE overlay repository to be used with Invenio's NEXT branch","fork":true,"url":"https://api.github.com/repos/nikpap/inspire-next","forks_url":"https://api.github.com/repos/nikpap/inspire-next/forks","keys_url":"https://api.github.com/repos/nikpap/inspire-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nikpap/inspire-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nikpap/inspire-next/teams","hooks_url":"https://api.github.com/repos/nikpap/inspire-next/hooks","issue_events_url":"https://api.github.com/repos/nikpap/inspire-next/issues/events{/number}","events_url":"https://api.github.com/repos/nikpap/inspire-next/events","assignees_url":"https://api.github.com/repos/nikpap/inspire-next/assignees{/user}","branches_url":"https://api.github.com/repos/nikpap/inspire-next/branches{/branch}","tags_url":"https://api.github.com/repos/nikpap/inspire-next/tags","blobs_url":"https://api.github.com/repos/nikpap/inspire-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nikpap/inspire-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nikpap/inspire-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/nikpap/inspire-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nikpap/inspire-next/statuses/{sha}","languages_url":"https://api.github.com/repos/nikpap/inspire-next/languages","stargazers_url":"https://api.github.com/repos/nikpap/inspire-next/stargazers","contributors_url":"https://api.github.com/repos/nikpap/inspire-next/contributors","subscribers_url":"https://api.github.com/repos/nikpap/inspire-next/subscribers","subscription_url":"https://api.github.com/repos/nikpap/inspire-next/subscription","commits_url":"https://api.github.com/repos/nikpap/inspire-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/nikpap/inspire-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/nikpap/inspire-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/nikpap/inspire-next/issues/comments{/number}","contents_url":"https://api.github.com/repos/nikpap/inspire-next/contents/{+path}","compare_url":"https://api.github.com/repos/nikpap/inspire-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nikpap/inspire-next/merges","archive_url":"https://api.github.com/repos/nikpap/inspire-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nikpap/inspire-next/downloads","issues_url":"https://api.github.com/repos/nikpap/inspire-next/issues{/number}","pulls_url":"https://api.github.com/repos/nikpap/inspire-next/pulls{/number}","milestones_url":"https://api.github.com/repos/nikpap/inspire-next/milestones{/number}","notifications_url":"https://api.github.com/repos/nikpap/inspire-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nikpap/inspire-next/labels{/name}","releases_url":"https://api.github.com/repos/nikpap/inspire-next/releases{/id}","created_at":"2015-04-22T09:51:24Z","updated_at":"2015-05-21T08:35:00Z","pushed_at":"2015-10-06T15:30:37Z","git_url":"git://github.com/nikpap/inspire-next.git","ssh_url":"git@github.com:nikpap/inspire-next.git","clone_url":"https://github.com/nikpap/inspire-next.git","svn_url":"https://github.com/nikpap/inspire-next","homepage":null,"size":20474,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":21,"forks":0,"open_issues":21,"watchers":1,"default_branch":"master-rc-detailed"}},"base":{"label":"inspirehep:master","ref":"master","sha":"34b00c58643ab0170670296341cf06163e5368d5","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 https://github.com/inspirehep/invenio@labs 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-09-25T22:18:17Z","pushed_at":"2015-10-06T16:51:53Z","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":"https://labs.inspirehep.net","size":27282,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":43,"forks":21,"open_issues":43,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/399"},"html":{"href":"https://github.com/inspirehep/inspire-next/pull/399"},"issue":{"href":"https://api.github.com/repos/inspirehep/inspire-next/issues/399"},"comments":{"href":"https://api.github.com/repos/inspirehep/inspire-next/issues/399/comments"},"review_comments":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/399/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/399/commits"},"statuses":{"href":"https://api.github.com/repos/inspirehep/inspire-next/statuses/0d9e6182921f5c9c28c131c291082a21fcc086cd"}}}}