{"action":"created","comment":{"url":"https://api.github.com/repos/sul-dlss/spotlight/pulls/comments/23820758","id":23820758,"diff_hunk":"@@ -27,4 +27,18 @@ def field_enabled? field, *args\n     field.enabled && field.send((:show if controller.is_a? Blacklight::Catalog and [\"edit\", \"show\"].include?(action_name)) || document_index_view_type)\n   end\n \n+  def link_back_to_catalog(opts={:label=>nil})\n+    opts[:route_set] ||= spotlight if current_exhibit\n+    super\n+  end\n+\n+  def render_save_search","path":"app/helpers/spotlight/main_app_helpers.rb","position":9,"original_position":9,"commit_id":"6ff8874ae3b5d98dc244a4b55ac8afb7ce1781b0","original_commit_id":"6ff8874ae3b5d98dc244a4b55ac8afb7ce1781b0","user":{"login":"cbeer","id":111218,"avatar_url":"https://avatars.githubusercontent.com/u/111218?v=3","gravatar_id":"","url":"https://api.github.com/users/cbeer","html_url":"https://github.com/cbeer","followers_url":"https://api.github.com/users/cbeer/followers","following_url":"https://api.github.com/users/cbeer/following{/other_user}","gists_url":"https://api.github.com/users/cbeer/gists{/gist_id}","starred_url":"https://api.github.com/users/cbeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbeer/subscriptions","organizations_url":"https://api.github.com/users/cbeer/orgs","repos_url":"https://api.github.com/users/cbeer/repos","events_url":"https://api.github.com/users/cbeer/events{/privacy}","received_events_url":"https://api.github.com/users/cbeer/received_events","type":"User","site_admin":false},"body":"I think with https://github.com/projectblacklight/blacklight/commit/6e5583e525c38ebf215663ea9923c1bc29a9d909, we should be able to do this better (and, in fact, the override we're doing right now needs to be updated too..)","created_at":"2015-01-30T02:33:59Z","updated_at":"2015-01-30T02:33:59Z","html_url":"https://github.com/sul-dlss/spotlight/pull/906#discussion_r23820758","pull_request_url":"https://api.github.com/repos/sul-dlss/spotlight/pulls/906","_links":{"self":{"href":"https://api.github.com/repos/sul-dlss/spotlight/pulls/comments/23820758"},"html":{"href":"https://github.com/sul-dlss/spotlight/pull/906#discussion_r23820758"},"pull_request":{"href":"https://api.github.com/repos/sul-dlss/spotlight/pulls/906"}}},"pull_request":{"url":"https://api.github.com/repos/sul-dlss/spotlight/pulls/906","id":28253737,"html_url":"https://github.com/sul-dlss/spotlight/pull/906","diff_url":"https://github.com/sul-dlss/spotlight/pull/906.diff","patch_url":"https://github.com/sul-dlss/spotlight/pull/906.patch","issue_url":"https://api.github.com/repos/sul-dlss/spotlight/issues/906","number":906,"state":"open","locked":false,"title":"Allow for search results and records to be accessed w/o exhibit context.","user":{"login":"jkeck","id":96776,"avatar_url":"https://avatars.githubusercontent.com/u/96776?v=3","gravatar_id":"","url":"https://api.github.com/users/jkeck","html_url":"https://github.com/jkeck","followers_url":"https://api.github.com/users/jkeck/followers","following_url":"https://api.github.com/users/jkeck/following{/other_user}","gists_url":"https://api.github.com/users/jkeck/gists{/gist_id}","starred_url":"https://api.github.com/users/jkeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkeck/subscriptions","organizations_url":"https://api.github.com/users/jkeck/orgs","repos_url":"https://api.github.com/users/jkeck/repos","events_url":"https://api.github.com/users/jkeck/events{/privacy}","received_events_url":"https://api.github.com/users/jkeck/received_events","type":"User","site_admin":false},"body":"I think this fixes #896 \r\n\r\nOnce I fixed the `#apply_permissive_visibility_filter` issue there were some helpers that were throwing errors.\r\n\r\nNot sure if I'm doing the right thing with the `#link_back_to_catalog` override or not, so let me know if you have other ideas.","created_at":"2015-01-29T04:54:18Z","updated_at":"2015-01-30T02:33:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c4e8ed4509d6aba77ee680fc520182d99d0ed08d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sul-dlss/spotlight/pulls/906/commits","review_comments_url":"https://api.github.com/repos/sul-dlss/spotlight/pulls/906/comments","review_comment_url":"https://api.github.com/repos/sul-dlss/spotlight/pulls/comments/{number}","comments_url":"https://api.github.com/repos/sul-dlss/spotlight/issues/906/comments","statuses_url":"https://api.github.com/repos/sul-dlss/spotlight/statuses/6ff8874ae3b5d98dc244a4b55ac8afb7ce1781b0","head":{"label":"sul-dlss:896-apply-permissive-visibility-filter","ref":"896-apply-permissive-visibility-filter","sha":"6ff8874ae3b5d98dc244a4b55ac8afb7ce1781b0","user":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars.githubusercontent.com/u/230583?v=3","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"repo":{"id":14536054,"name":"spotlight","full_name":"sul-dlss/spotlight","owner":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars.githubusercontent.com/u/230583?v=3","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sul-dlss/spotlight","description":"Enable librarians, curators, and others who are responsible for digital collections to create   attractive, feature-rich websites that highlight these collections.","fork":false,"url":"https://api.github.com/repos/sul-dlss/spotlight","forks_url":"https://api.github.com/repos/sul-dlss/spotlight/forks","keys_url":"https://api.github.com/repos/sul-dlss/spotlight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sul-dlss/spotlight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sul-dlss/spotlight/teams","hooks_url":"https://api.github.com/repos/sul-dlss/spotlight/hooks","issue_events_url":"https://api.github.com/repos/sul-dlss/spotlight/issues/events{/number}","events_url":"https://api.github.com/repos/sul-dlss/spotlight/events","assignees_url":"https://api.github.com/repos/sul-dlss/spotlight/assignees{/user}","branches_url":"https://api.github.com/repos/sul-dlss/spotlight/branches{/branch}","tags_url":"https://api.github.com/repos/sul-dlss/spotlight/tags","blobs_url":"https://api.github.com/repos/sul-dlss/spotlight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sul-dlss/spotlight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sul-dlss/spotlight/git/refs{/sha}","trees_url":"https://api.github.com/repos/sul-dlss/spotlight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sul-dlss/spotlight/statuses/{sha}","languages_url":"https://api.github.com/repos/sul-dlss/spotlight/languages","stargazers_url":"https://api.github.com/repos/sul-dlss/spotlight/stargazers","contributors_url":"https://api.github.com/repos/sul-dlss/spotlight/contributors","subscribers_url":"https://api.github.com/repos/sul-dlss/spotlight/subscribers","subscription_url":"https://api.github.com/repos/sul-dlss/spotlight/subscription","commits_url":"https://api.github.com/repos/sul-dlss/spotlight/commits{/sha}","git_commits_url":"https://api.github.com/repos/sul-dlss/spotlight/git/commits{/sha}","comments_url":"https://api.github.com/repos/sul-dlss/spotlight/comments{/number}","issue_comment_url":"https://api.github.com/repos/sul-dlss/spotlight/issues/comments/{number}","contents_url":"https://api.github.com/repos/sul-dlss/spotlight/contents/{+path}","compare_url":"https://api.github.com/repos/sul-dlss/spotlight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sul-dlss/spotlight/merges","archive_url":"https://api.github.com/repos/sul-dlss/spotlight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sul-dlss/spotlight/downloads","issues_url":"https://api.github.com/repos/sul-dlss/spotlight/issues{/number}","pulls_url":"https://api.github.com/repos/sul-dlss/spotlight/pulls{/number}","milestones_url":"https://api.github.com/repos/sul-dlss/spotlight/milestones{/number}","notifications_url":"https://api.github.com/repos/sul-dlss/spotlight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sul-dlss/spotlight/labels{/name}","releases_url":"https://api.github.com/repos/sul-dlss/spotlight/releases{/id}","created_at":"2013-11-19T19:49:19Z","updated_at":"2015-01-28T20:09:24Z","pushed_at":"2015-01-29T04:52:21Z","git_url":"git://github.com/sul-dlss/spotlight.git","ssh_url":"git@github.com:sul-dlss/spotlight.git","clone_url":"https://github.com/sul-dlss/spotlight.git","svn_url":"https://github.com/sul-dlss/spotlight","homepage":"http://library.stanford.edu/blogs/digital-library-blog/2014/06/stanford-university-libraries-completes-first-phase-development","size":7152,"stargazers_count":39,"watchers_count":39,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":83,"forks":10,"open_issues":83,"watchers":39,"default_branch":"master"}},"base":{"label":"sul-dlss:master","ref":"master","sha":"cef23a618f49ba28e1e01aedb0c256cbfb3a5f59","user":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars.githubusercontent.com/u/230583?v=3","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"repo":{"id":14536054,"name":"spotlight","full_name":"sul-dlss/spotlight","owner":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars.githubusercontent.com/u/230583?v=3","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sul-dlss/spotlight","description":"Enable librarians, curators, and others who are responsible for digital collections to create   attractive, feature-rich websites that highlight these collections.","fork":false,"url":"https://api.github.com/repos/sul-dlss/spotlight","forks_url":"https://api.github.com/repos/sul-dlss/spotlight/forks","keys_url":"https://api.github.com/repos/sul-dlss/spotlight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sul-dlss/spotlight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sul-dlss/spotlight/teams","hooks_url":"https://api.github.com/repos/sul-dlss/spotlight/hooks","issue_events_url":"https://api.github.com/repos/sul-dlss/spotlight/issues/events{/number}","events_url":"https://api.github.com/repos/sul-dlss/spotlight/events","assignees_url":"https://api.github.com/repos/sul-dlss/spotlight/assignees{/user}","branches_url":"https://api.github.com/repos/sul-dlss/spotlight/branches{/branch}","tags_url":"https://api.github.com/repos/sul-dlss/spotlight/tags","blobs_url":"https://api.github.com/repos/sul-dlss/spotlight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sul-dlss/spotlight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sul-dlss/spotlight/git/refs{/sha}","trees_url":"https://api.github.com/repos/sul-dlss/spotlight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sul-dlss/spotlight/statuses/{sha}","languages_url":"https://api.github.com/repos/sul-dlss/spotlight/languages","stargazers_url":"https://api.github.com/repos/sul-dlss/spotlight/stargazers","contributors_url":"https://api.github.com/repos/sul-dlss/spotlight/contributors","subscribers_url":"https://api.github.com/repos/sul-dlss/spotlight/subscribers","subscription_url":"https://api.github.com/repos/sul-dlss/spotlight/subscription","commits_url":"https://api.github.com/repos/sul-dlss/spotlight/commits{/sha}","git_commits_url":"https://api.github.com/repos/sul-dlss/spotlight/git/commits{/sha}","comments_url":"https://api.github.com/repos/sul-dlss/spotlight/comments{/number}","issue_comment_url":"https://api.github.com/repos/sul-dlss/spotlight/issues/comments/{number}","contents_url":"https://api.github.com/repos/sul-dlss/spotlight/contents/{+path}","compare_url":"https://api.github.com/repos/sul-dlss/spotlight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sul-dlss/spotlight/merges","archive_url":"https://api.github.com/repos/sul-dlss/spotlight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sul-dlss/spotlight/downloads","issues_url":"https://api.github.com/repos/sul-dlss/spotlight/issues{/number}","pulls_url":"https://api.github.com/repos/sul-dlss/spotlight/pulls{/number}","milestones_url":"https://api.github.com/repos/sul-dlss/spotlight/milestones{/number}","notifications_url":"https://api.github.com/repos/sul-dlss/spotlight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sul-dlss/spotlight/labels{/name}","releases_url":"https://api.github.com/repos/sul-dlss/spotlight/releases{/id}","created_at":"2013-11-19T19:49:19Z","updated_at":"2015-01-28T20:09:24Z","pushed_at":"2015-01-29T04:52:21Z","git_url":"git://github.com/sul-dlss/spotlight.git","ssh_url":"git@github.com:sul-dlss/spotlight.git","clone_url":"https://github.com/sul-dlss/spotlight.git","svn_url":"https://github.com/sul-dlss/spotlight","homepage":"http://library.stanford.edu/blogs/digital-library-blog/2014/06/stanford-university-libraries-completes-first-phase-development","size":7152,"stargazers_count":39,"watchers_count":39,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":83,"forks":10,"open_issues":83,"watchers":39,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sul-dlss/spotlight/pulls/906"},"html":{"href":"https://github.com/sul-dlss/spotlight/pull/906"},"issue":{"href":"https://api.github.com/repos/sul-dlss/spotlight/issues/906"},"comments":{"href":"https://api.github.com/repos/sul-dlss/spotlight/issues/906/comments"},"review_comments":{"href":"https://api.github.com/repos/sul-dlss/spotlight/pulls/906/comments"},"review_comment":{"href":"https://api.github.com/repos/sul-dlss/spotlight/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/sul-dlss/spotlight/pulls/906/commits"},"statuses":{"href":"https://api.github.com/repos/sul-dlss/spotlight/statuses/6ff8874ae3b5d98dc244a4b55ac8afb7ce1781b0"}}}}