{"action":"created","comment":{"url":"https://api.github.com/repos/projectblacklight/blacklight/pulls/comments/67566500","id":67566500,"diff_hunk":"@@ -0,0 +1,39 @@\n+module Blacklight\n+  module Rendering\n+    class LinkToFacet < AbstractStep\n+      def render\n+        # TODO: We should rename the config variable, because it creates a link to a facet.\n+        return next_step(values) unless config.link_to_search\n+        return next_step(render_link)\n+      end\n+\n+      private\n+\n+        # This allows the link to wrap an itemprop\n+        def render_link\n+          values.map { |v| link(link_field, v) }\n+        end\n+\n+        def link_field\n+          return config.key if config.link_to_search === true\n+          config.link_to_search\n+        end\n+\n+        def link(field, v)\n+          context.link_to v, search_path(field, v)\n+        end\n+\n+        def search_path(field, v)\n+          context.search_action_path(facet_params(field, v))\n+        end\n+\n+        def facet_params(field, v)\n+          context.search_state.reset.add_facet_params(field, v)\n+        end\n+    end\n+  end\n+end\n+","path":"app/presenters/blacklight/rendering/link_to_facet.rb","position":36,"original_position":36,"commit_id":"e449db8757919d2594b57ab0820dd8429f944407","original_commit_id":"e449db8757919d2594b57ab0820dd8429f944407","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"4 trailing blank lines detected.","created_at":"2016-06-17T19:56:44Z","updated_at":"2016-06-17T19:56:44Z","html_url":"https://github.com/projectblacklight/blacklight/pull/1415#discussion_r67566500","pull_request_url":"https://api.github.com/repos/projectblacklight/blacklight/pulls/1415","_links":{"self":{"href":"https://api.github.com/repos/projectblacklight/blacklight/pulls/comments/67566500"},"html":{"href":"https://github.com/projectblacklight/blacklight/pull/1415#discussion_r67566500"},"pull_request":{"href":"https://api.github.com/repos/projectblacklight/blacklight/pulls/1415"}}},"pull_request":{"url":"https://api.github.com/repos/projectblacklight/blacklight/pulls/1415","id":74246985,"html_url":"https://github.com/projectblacklight/blacklight/pull/1415","diff_url":"https://github.com/projectblacklight/blacklight/pull/1415.diff","patch_url":"https://github.com/projectblacklight/blacklight/pull/1415.patch","issue_url":"https://api.github.com/repos/projectblacklight/blacklight/issues/1415","number":1415,"state":"open","locked":false,"title":"Refactor DocumentPresenter","user":{"login":"jcoyne","id":92044,"avatar_url":"https://avatars.githubusercontent.com/u/92044?v=3","gravatar_id":"","url":"https://api.github.com/users/jcoyne","html_url":"https://github.com/jcoyne","followers_url":"https://api.github.com/users/jcoyne/followers","following_url":"https://api.github.com/users/jcoyne/following{/other_user}","gists_url":"https://api.github.com/users/jcoyne/gists{/gist_id}","starred_url":"https://api.github.com/users/jcoyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcoyne/subscriptions","organizations_url":"https://api.github.com/users/jcoyne/orgs","repos_url":"https://api.github.com/users/jcoyne/repos","events_url":"https://api.github.com/users/jcoyne/events{/privacy}","received_events_url":"https://api.github.com/users/jcoyne/received_events","type":"User","site_admin":false},"body":"Fixes #1414\r\n\r\nThis should be able to be released as a 6.x branch.  It will open the way for refactor in 7.0 where the controller creates the presenter or list of presenters, rather than having them lazily created in the BlacklightHelper.","created_at":"2016-06-17T14:01:05Z","updated_at":"2016-06-17T19:56:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4c5118676819aab2891714541f35b807943b295","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/projectblacklight/blacklight/pulls/1415/commits","review_comments_url":"https://api.github.com/repos/projectblacklight/blacklight/pulls/1415/comments","review_comment_url":"https://api.github.com/repos/projectblacklight/blacklight/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectblacklight/blacklight/issues/1415/comments","statuses_url":"https://api.github.com/repos/projectblacklight/blacklight/statuses/e449db8757919d2594b57ab0820dd8429f944407","head":{"label":"projectblacklight:refactor_doc_presenter","ref":"refactor_doc_presenter","sha":"e449db8757919d2594b57ab0820dd8429f944407","user":{"login":"projectblacklight","id":120516,"avatar_url":"https://avatars.githubusercontent.com/u/120516?v=3","gravatar_id":"","url":"https://api.github.com/users/projectblacklight","html_url":"https://github.com/projectblacklight","followers_url":"https://api.github.com/users/projectblacklight/followers","following_url":"https://api.github.com/users/projectblacklight/following{/other_user}","gists_url":"https://api.github.com/users/projectblacklight/gists{/gist_id}","starred_url":"https://api.github.com/users/projectblacklight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectblacklight/subscriptions","organizations_url":"https://api.github.com/users/projectblacklight/orgs","repos_url":"https://api.github.com/users/projectblacklight/repos","events_url":"https://api.github.com/users/projectblacklight/events{/privacy}","received_events_url":"https://api.github.com/users/projectblacklight/received_events","type":"Organization","site_admin":false},"repo":{"id":355634,"name":"blacklight","full_name":"projectblacklight/blacklight","owner":{"login":"projectblacklight","id":120516,"avatar_url":"https://avatars.githubusercontent.com/u/120516?v=3","gravatar_id":"","url":"https://api.github.com/users/projectblacklight","html_url":"https://github.com/projectblacklight","followers_url":"https://api.github.com/users/projectblacklight/followers","following_url":"https://api.github.com/users/projectblacklight/following{/other_user}","gists_url":"https://api.github.com/users/projectblacklight/gists{/gist_id}","starred_url":"https://api.github.com/users/projectblacklight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectblacklight/subscriptions","organizations_url":"https://api.github.com/users/projectblacklight/orgs","repos_url":"https://api.github.com/users/projectblacklight/repos","events_url":"https://api.github.com/users/projectblacklight/events{/privacy}","received_events_url":"https://api.github.com/users/projectblacklight/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectblacklight/blacklight","description":"Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr) index.","fork":false,"url":"https://api.github.com/repos/projectblacklight/blacklight","forks_url":"https://api.github.com/repos/projectblacklight/blacklight/forks","keys_url":"https://api.github.com/repos/projectblacklight/blacklight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectblacklight/blacklight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectblacklight/blacklight/teams","hooks_url":"https://api.github.com/repos/projectblacklight/blacklight/hooks","issue_events_url":"https://api.github.com/repos/projectblacklight/blacklight/issues/events{/number}","events_url":"https://api.github.com/repos/projectblacklight/blacklight/events","assignees_url":"https://api.github.com/repos/projectblacklight/blacklight/assignees{/user}","branches_url":"https://api.github.com/repos/projectblacklight/blacklight/branches{/branch}","tags_url":"https://api.github.com/repos/projectblacklight/blacklight/tags","blobs_url":"https://api.github.com/repos/projectblacklight/blacklight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectblacklight/blacklight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectblacklight/blacklight/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectblacklight/blacklight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectblacklight/blacklight/statuses/{sha}","languages_url":"https://api.github.com/repos/projectblacklight/blacklight/languages","stargazers_url":"https://api.github.com/repos/projectblacklight/blacklight/stargazers","contributors_url":"https://api.github.com/repos/projectblacklight/blacklight/contributors","subscribers_url":"https://api.github.com/repos/projectblacklight/blacklight/subscribers","subscription_url":"https://api.github.com/repos/projectblacklight/blacklight/subscription","commits_url":"https://api.github.com/repos/projectblacklight/blacklight/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectblacklight/blacklight/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectblacklight/blacklight/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectblacklight/blacklight/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectblacklight/blacklight/contents/{+path}","compare_url":"https://api.github.com/repos/projectblacklight/blacklight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectblacklight/blacklight/merges","archive_url":"https://api.github.com/repos/projectblacklight/blacklight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectblacklight/blacklight/downloads","issues_url":"https://api.github.com/repos/projectblacklight/blacklight/issues{/number}","pulls_url":"https://api.github.com/repos/projectblacklight/blacklight/pulls{/number}","milestones_url":"https://api.github.com/repos/projectblacklight/blacklight/milestones{/number}","notifications_url":"https://api.github.com/repos/projectblacklight/blacklight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectblacklight/blacklight/labels{/name}","releases_url":"https://api.github.com/repos/projectblacklight/blacklight/releases{/id}","deployments_url":"https://api.github.com/repos/projectblacklight/blacklight/deployments","created_at":"2009-10-30T20:03:30Z","updated_at":"2016-06-17T08:58:45Z","pushed_at":"2016-06-17T19:56:38Z","git_url":"git://github.com/projectblacklight/blacklight.git","ssh_url":"git@github.com:projectblacklight/blacklight.git","clone_url":"https://github.com/projectblacklight/blacklight.git","svn_url":"https://github.com/projectblacklight/blacklight","homepage":"http://projectblacklight.org/","size":28199,"stargazers_count":439,"watchers_count":439,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":158,"mirror_url":null,"open_issues_count":57,"forks":158,"open_issues":57,"watchers":439,"default_branch":"master"}},"base":{"label":"projectblacklight:master","ref":"master","sha":"eca9359ddb1547eb7587e71ec2c00a0d5a19792b","user":{"login":"projectblacklight","id":120516,"avatar_url":"https://avatars.githubusercontent.com/u/120516?v=3","gravatar_id":"","url":"https://api.github.com/users/projectblacklight","html_url":"https://github.com/projectblacklight","followers_url":"https://api.github.com/users/projectblacklight/followers","following_url":"https://api.github.com/users/projectblacklight/following{/other_user}","gists_url":"https://api.github.com/users/projectblacklight/gists{/gist_id}","starred_url":"https://api.github.com/users/projectblacklight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectblacklight/subscriptions","organizations_url":"https://api.github.com/users/projectblacklight/orgs","repos_url":"https://api.github.com/users/projectblacklight/repos","events_url":"https://api.github.com/users/projectblacklight/events{/privacy}","received_events_url":"https://api.github.com/users/projectblacklight/received_events","type":"Organization","site_admin":false},"repo":{"id":355634,"name":"blacklight","full_name":"projectblacklight/blacklight","owner":{"login":"projectblacklight","id":120516,"avatar_url":"https://avatars.githubusercontent.com/u/120516?v=3","gravatar_id":"","url":"https://api.github.com/users/projectblacklight","html_url":"https://github.com/projectblacklight","followers_url":"https://api.github.com/users/projectblacklight/followers","following_url":"https://api.github.com/users/projectblacklight/following{/other_user}","gists_url":"https://api.github.com/users/projectblacklight/gists{/gist_id}","starred_url":"https://api.github.com/users/projectblacklight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectblacklight/subscriptions","organizations_url":"https://api.github.com/users/projectblacklight/orgs","repos_url":"https://api.github.com/users/projectblacklight/repos","events_url":"https://api.github.com/users/projectblacklight/events{/privacy}","received_events_url":"https://api.github.com/users/projectblacklight/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectblacklight/blacklight","description":"Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr) index.","fork":false,"url":"https://api.github.com/repos/projectblacklight/blacklight","forks_url":"https://api.github.com/repos/projectblacklight/blacklight/forks","keys_url":"https://api.github.com/repos/projectblacklight/blacklight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectblacklight/blacklight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectblacklight/blacklight/teams","hooks_url":"https://api.github.com/repos/projectblacklight/blacklight/hooks","issue_events_url":"https://api.github.com/repos/projectblacklight/blacklight/issues/events{/number}","events_url":"https://api.github.com/repos/projectblacklight/blacklight/events","assignees_url":"https://api.github.com/repos/projectblacklight/blacklight/assignees{/user}","branches_url":"https://api.github.com/repos/projectblacklight/blacklight/branches{/branch}","tags_url":"https://api.github.com/repos/projectblacklight/blacklight/tags","blobs_url":"https://api.github.com/repos/projectblacklight/blacklight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectblacklight/blacklight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectblacklight/blacklight/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectblacklight/blacklight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectblacklight/blacklight/statuses/{sha}","languages_url":"https://api.github.com/repos/projectblacklight/blacklight/languages","stargazers_url":"https://api.github.com/repos/projectblacklight/blacklight/stargazers","contributors_url":"https://api.github.com/repos/projectblacklight/blacklight/contributors","subscribers_url":"https://api.github.com/repos/projectblacklight/blacklight/subscribers","subscription_url":"https://api.github.com/repos/projectblacklight/blacklight/subscription","commits_url":"https://api.github.com/repos/projectblacklight/blacklight/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectblacklight/blacklight/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectblacklight/blacklight/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectblacklight/blacklight/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectblacklight/blacklight/contents/{+path}","compare_url":"https://api.github.com/repos/projectblacklight/blacklight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectblacklight/blacklight/merges","archive_url":"https://api.github.com/repos/projectblacklight/blacklight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectblacklight/blacklight/downloads","issues_url":"https://api.github.com/repos/projectblacklight/blacklight/issues{/number}","pulls_url":"https://api.github.com/repos/projectblacklight/blacklight/pulls{/number}","milestones_url":"https://api.github.com/repos/projectblacklight/blacklight/milestones{/number}","notifications_url":"https://api.github.com/repos/projectblacklight/blacklight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectblacklight/blacklight/labels{/name}","releases_url":"https://api.github.com/repos/projectblacklight/blacklight/releases{/id}","deployments_url":"https://api.github.com/repos/projectblacklight/blacklight/deployments","created_at":"2009-10-30T20:03:30Z","updated_at":"2016-06-17T08:58:45Z","pushed_at":"2016-06-17T19:56:38Z","git_url":"git://github.com/projectblacklight/blacklight.git","ssh_url":"git@github.com:projectblacklight/blacklight.git","clone_url":"https://github.com/projectblacklight/blacklight.git","svn_url":"https://github.com/projectblacklight/blacklight","homepage":"http://projectblacklight.org/","size":28199,"stargazers_count":439,"watchers_count":439,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":158,"mirror_url":null,"open_issues_count":57,"forks":158,"open_issues":57,"watchers":439,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectblacklight/blacklight/pulls/1415"},"html":{"href":"https://github.com/projectblacklight/blacklight/pull/1415"},"issue":{"href":"https://api.github.com/repos/projectblacklight/blacklight/issues/1415"},"comments":{"href":"https://api.github.com/repos/projectblacklight/blacklight/issues/1415/comments"},"review_comments":{"href":"https://api.github.com/repos/projectblacklight/blacklight/pulls/1415/comments"},"review_comment":{"href":"https://api.github.com/repos/projectblacklight/blacklight/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectblacklight/blacklight/pulls/1415/commits"},"statuses":{"href":"https://api.github.com/repos/projectblacklight/blacklight/statuses/e449db8757919d2594b57ab0820dd8429f944407"}}}}
{"actor":{"display_login":"houndci-bot"}}