{"action":"created","comment":{"url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/comments/33764726","id":33764726,"diff_hunk":"@@ -0,0 +1,23 @@\n+module RecordHelper\n+  def more_like_this(similar)\n+    similar.map do |doc|\n+      {\n+        url: document_path(doc, format: 'html'),\n+        title: render_document_show_field_value(doc, ['dcTitleLangAware', 'title']),","path":"app/helpers/record_helper.rb","position":6,"original_position":6,"commit_id":"65bef0810da839c4a2e1f417a66647a42a6f5667","original_commit_id":"65bef0810da839c4a2e1f417a66647a42a6f5667","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [84/80]","created_at":"2015-07-02T10:20:19Z","updated_at":"2015-07-02T10:20:19Z","html_url":"https://github.com/europeana/europeana-channels-blacklight/pull/30#discussion_r33764726","pull_request_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/comments/33764726"},"html":{"href":"https://github.com/europeana/europeana-channels-blacklight/pull/30#discussion_r33764726"},"pull_request":{"href":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/30","id":39067629,"html_url":"https://github.com/europeana/europeana-channels-blacklight/pull/30","diff_url":"https://github.com/europeana/europeana-channels-blacklight/pull/30.diff","patch_url":"https://github.com/europeana/europeana-channels-blacklight/pull/30.patch","issue_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues/30","number":30,"state":"open","locked":false,"title":"JSON controller for similar items","user":{"login":"rwd","id":218337,"avatar_url":"https://avatars.githubusercontent.com/u/218337?v=3","gravatar_id":"","url":"https://api.github.com/users/rwd","html_url":"https://github.com/rwd","followers_url":"https://api.github.com/users/rwd/followers","following_url":"https://api.github.com/users/rwd/following{/other_user}","gists_url":"https://api.github.com/users/rwd/gists{/gist_id}","starred_url":"https://api.github.com/users/rwd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwd/subscriptions","organizations_url":"https://api.github.com/users/rwd/orgs","repos_url":"https://api.github.com/users/rwd/repos","events_url":"https://api.github.com/users/rwd/events{/privacy}","received_events_url":"https://api.github.com/users/rwd/received_events","type":"User","site_admin":false},"body":"This merge would implement a JSON controller for similar items to be queried by AJAX.\r\n\r\nThe URL for a record with ID /abc/123 would be /record/abc/123/similar.json\r\n\r\nQuery parameters accepted are:\r\n* `mltf`: field to run MLT query on, of \"title\", \"who\", \"DATA_PROVIDER\" or \"what\". If blank (default), runs all.\r\n* `page`: page of results to retrieve\r\n* `per_page`: items per page (default is 4)\r\n\r\nResponse looks like:\r\n\r\n```json\r\n{\r\n    \"page\": 1,\r\n    \"per_page\": 4,\r\n    \"total\": 5755054,\r\n    \"documents\": [\r\n        {\r\n            \"url\": \"/record/09003/5487E1BD410E38C1075D8CA5D6EC3A324C2C8708.html\",\r\n            \"title\": \"Vertrekhal van Schiphol\",\r\n            \"img\": {\r\n                \"alt\": \"Vertrekhal van Schiphol\",\r\n                \"src\": \"http://europeanastatic.eu/api/image?uri=http%3A%2F%2Fna.memorix.nl%2Foai2%2F%3Fimage%3Dna%3Acol1%3Adat269518%3A269518.jpg%26type%3Dlarge&size=LARGE&type=IMAGE\"\r\n            }\r\n        }\r\n    ]\r\n}\r\n```","created_at":"2015-07-02T10:17:24Z","updated_at":"2015-07-02T10:20:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c2d8597836d766bff68fe9d341c10059301e7190","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/30/commits","review_comments_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/30/comments","review_comment_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/comments{/number}","comments_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues/30/comments","statuses_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/statuses/65bef0810da839c4a2e1f417a66647a42a6f5667","head":{"label":"europeana:feat/274-ajax-mlt","ref":"feat/274-ajax-mlt","sha":"65bef0810da839c4a2e1f417a66647a42a6f5667","user":{"login":"europeana","id":4570681,"avatar_url":"https://avatars.githubusercontent.com/u/4570681?v=3","gravatar_id":"","url":"https://api.github.com/users/europeana","html_url":"https://github.com/europeana","followers_url":"https://api.github.com/users/europeana/followers","following_url":"https://api.github.com/users/europeana/following{/other_user}","gists_url":"https://api.github.com/users/europeana/gists{/gist_id}","starred_url":"https://api.github.com/users/europeana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/europeana/subscriptions","organizations_url":"https://api.github.com/users/europeana/orgs","repos_url":"https://api.github.com/users/europeana/repos","events_url":"https://api.github.com/users/europeana/events{/privacy}","received_events_url":"https://api.github.com/users/europeana/received_events","type":"Organization","site_admin":false},"repo":{"id":27171162,"name":"europeana-channels-blacklight","full_name":"europeana/europeana-channels-blacklight","owner":{"login":"europeana","id":4570681,"avatar_url":"https://avatars.githubusercontent.com/u/4570681?v=3","gravatar_id":"","url":"https://api.github.com/users/europeana","html_url":"https://github.com/europeana","followers_url":"https://api.github.com/users/europeana/followers","following_url":"https://api.github.com/users/europeana/following{/other_user}","gists_url":"https://api.github.com/users/europeana/gists{/gist_id}","starred_url":"https://api.github.com/users/europeana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/europeana/subscriptions","organizations_url":"https://api.github.com/users/europeana/orgs","repos_url":"https://api.github.com/users/europeana/repos","events_url":"https://api.github.com/users/europeana/events{/privacy}","received_events_url":"https://api.github.com/users/europeana/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/europeana/europeana-channels-blacklight","description":"Europeana Channels as a Rails + Blacklight application.","fork":false,"url":"https://api.github.com/repos/europeana/europeana-channels-blacklight","forks_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/forks","keys_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/teams","hooks_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/hooks","issue_events_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues/events{/number}","events_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/events","assignees_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/assignees{/user}","branches_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/branches{/branch}","tags_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/tags","blobs_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/refs{/sha}","trees_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/statuses/{sha}","languages_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/languages","stargazers_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/stargazers","contributors_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/contributors","subscribers_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/subscribers","subscription_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/subscription","commits_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/commits{/sha}","git_commits_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/commits{/sha}","comments_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/comments{/number}","issue_comment_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues/comments{/number}","contents_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/contents/{+path}","compare_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/merges","archive_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/downloads","issues_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues{/number}","pulls_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls{/number}","milestones_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/milestones{/number}","notifications_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/labels{/name}","releases_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/releases{/id}","created_at":"2014-11-26T10:14:22Z","updated_at":"2015-03-16T14:59:41Z","pushed_at":"2015-07-02T10:20:11Z","git_url":"git://github.com/europeana/europeana-channels-blacklight.git","ssh_url":"git@github.com:europeana/europeana-channels-blacklight.git","clone_url":"https://github.com/europeana/europeana-channels-blacklight.git","svn_url":"https://github.com/europeana/europeana-channels-blacklight","homepage":null,"size":6394,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"europeana:develop","ref":"develop","sha":"a015954d8ab43dd4fff769e6e6c9f41a7b8b58ad","user":{"login":"europeana","id":4570681,"avatar_url":"https://avatars.githubusercontent.com/u/4570681?v=3","gravatar_id":"","url":"https://api.github.com/users/europeana","html_url":"https://github.com/europeana","followers_url":"https://api.github.com/users/europeana/followers","following_url":"https://api.github.com/users/europeana/following{/other_user}","gists_url":"https://api.github.com/users/europeana/gists{/gist_id}","starred_url":"https://api.github.com/users/europeana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/europeana/subscriptions","organizations_url":"https://api.github.com/users/europeana/orgs","repos_url":"https://api.github.com/users/europeana/repos","events_url":"https://api.github.com/users/europeana/events{/privacy}","received_events_url":"https://api.github.com/users/europeana/received_events","type":"Organization","site_admin":false},"repo":{"id":27171162,"name":"europeana-channels-blacklight","full_name":"europeana/europeana-channels-blacklight","owner":{"login":"europeana","id":4570681,"avatar_url":"https://avatars.githubusercontent.com/u/4570681?v=3","gravatar_id":"","url":"https://api.github.com/users/europeana","html_url":"https://github.com/europeana","followers_url":"https://api.github.com/users/europeana/followers","following_url":"https://api.github.com/users/europeana/following{/other_user}","gists_url":"https://api.github.com/users/europeana/gists{/gist_id}","starred_url":"https://api.github.com/users/europeana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/europeana/subscriptions","organizations_url":"https://api.github.com/users/europeana/orgs","repos_url":"https://api.github.com/users/europeana/repos","events_url":"https://api.github.com/users/europeana/events{/privacy}","received_events_url":"https://api.github.com/users/europeana/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/europeana/europeana-channels-blacklight","description":"Europeana Channels as a Rails + Blacklight application.","fork":false,"url":"https://api.github.com/repos/europeana/europeana-channels-blacklight","forks_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/forks","keys_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/teams","hooks_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/hooks","issue_events_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues/events{/number}","events_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/events","assignees_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/assignees{/user}","branches_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/branches{/branch}","tags_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/tags","blobs_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/refs{/sha}","trees_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/statuses/{sha}","languages_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/languages","stargazers_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/stargazers","contributors_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/contributors","subscribers_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/subscribers","subscription_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/subscription","commits_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/commits{/sha}","git_commits_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/commits{/sha}","comments_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/comments{/number}","issue_comment_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues/comments{/number}","contents_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/contents/{+path}","compare_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/merges","archive_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/downloads","issues_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues{/number}","pulls_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls{/number}","milestones_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/milestones{/number}","notifications_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/labels{/name}","releases_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/releases{/id}","created_at":"2014-11-26T10:14:22Z","updated_at":"2015-03-16T14:59:41Z","pushed_at":"2015-07-02T10:20:11Z","git_url":"git://github.com/europeana/europeana-channels-blacklight.git","ssh_url":"git@github.com:europeana/europeana-channels-blacklight.git","clone_url":"https://github.com/europeana/europeana-channels-blacklight.git","svn_url":"https://github.com/europeana/europeana-channels-blacklight","homepage":null,"size":6394,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/30"},"html":{"href":"https://github.com/europeana/europeana-channels-blacklight/pull/30"},"issue":{"href":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues/30"},"comments":{"href":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/europeana/europeana-channels-blacklight/statuses/65bef0810da839c4a2e1f417a66647a42a6f5667"}}}}