{"action":"created","issue":{"url":"https://api.github.com/repos/projectblacklight/spotlight/issues/1458","repository_url":"https://api.github.com/repos/projectblacklight/spotlight","labels_url":"https://api.github.com/repos/projectblacklight/spotlight/issues/1458/labels{/name}","comments_url":"https://api.github.com/repos/projectblacklight/spotlight/issues/1458/comments","events_url":"https://api.github.com/repos/projectblacklight/spotlight/issues/1458/events","html_url":"https://github.com/projectblacklight/spotlight/issues/1458","id":161554085,"number":1458,"title":"Browse category results always default to gallery view","user":{"login":"ggeisler","id":101482,"avatar_url":"https://avatars.githubusercontent.com/u/101482?v=3","gravatar_id":"","url":"https://api.github.com/users/ggeisler","html_url":"https://github.com/ggeisler","followers_url":"https://api.github.com/users/ggeisler/followers","following_url":"https://api.github.com/users/ggeisler/following{/other_user}","gists_url":"https://api.github.com/users/ggeisler/gists{/gist_id}","starred_url":"https://api.github.com/users/ggeisler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggeisler/subscriptions","organizations_url":"https://api.github.com/users/ggeisler/orgs","repos_url":"https://api.github.com/users/ggeisler/repos","events_url":"https://api.github.com/users/ggeisler/events{/privacy}","received_events_url":"https://api.github.com/users/ggeisler/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/projectblacklight/spotlight/labels/bug","name":"bug","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-21T22:25:53Z","updated_at":"2016-07-11T18:05:23Z","closed_at":null,"body":"Even when the Configuration > Search > Results is configured so that gallery view is not enabled, going to the results page for a browse category displays results in the gallery view (in the screenshot below, only list view and slideshow view are enabled):\r\n\r\n![digital_maps___test_-_blacklight](https://cloud.githubusercontent.com/assets/101482/16248383/ab78ceca-37c3-11e6-9070-61611c6dc666.png)\r\n\r\nThis is even the case when only one view is enabled; in the screenshot below only list view is enabled, but the browse category results show in gallery view.\r\n\r\n![digital_maps___test_-_blacklight 2](https://cloud.githubusercontent.com/assets/101482/16248454/24aed244-37c4-11e6-9881-a18b72b069e8.png)\r\n\r\nIn both cases, the regular search results views behave as expected - the problem is only with browse category results."},"comment":{"url":"https://api.github.com/repos/projectblacklight/spotlight/issues/comments/231815619","html_url":"https://github.com/projectblacklight/spotlight/issues/1458#issuecomment-231815619","issue_url":"https://api.github.com/repos/projectblacklight/spotlight/issues/1458","id":231815619,"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},"created_at":"2016-07-11T18:05:23Z","updated_at":"2016-07-11T18:05:23Z","body":"We're getting the gallery view because it is set as a global default:\nhttps://github.com/projectblacklight/spotlight/blob/master/lib/spotlight/engine.rb#L155\n\n@ggeisler What should the behavior be when the gallery is disabled (right now, we'd fall back on the list view, or whatever the default view is)? I wonder if we ought to give the user an explicit way to select the view?"}}
{"actor":{"display_login":"cbeer"}}