{"action":"created","issue":{"url":"https://api.github.com/repos/pkp/omp/issues/284","repository_url":"https://api.github.com/repos/pkp/omp","labels_url":"https://api.github.com/repos/pkp/omp/issues/284/labels{/name}","comments_url":"https://api.github.com/repos/pkp/omp/issues/284/comments","events_url":"https://api.github.com/repos/pkp/omp/issues/284/events","html_url":"https://github.com/pkp/omp/pull/284","id":154429480,"number":284,"title":"pkp/pkp-lib#1428 Only pass availableFiles in available pub formats to…","user":{"login":"NateWr","id":2306629,"avatar_url":"https://avatars.githubusercontent.com/u/2306629?v=3","gravatar_id":"","url":"https://api.github.com/users/NateWr","html_url":"https://github.com/NateWr","followers_url":"https://api.github.com/users/NateWr/followers","following_url":"https://api.github.com/users/NateWr/following{/other_user}","gists_url":"https://api.github.com/users/NateWr/gists{/gist_id}","starred_url":"https://api.github.com/users/NateWr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NateWr/subscriptions","organizations_url":"https://api.github.com/users/NateWr/orgs","repos_url":"https://api.github.com/users/NateWr/repos","events_url":"https://api.github.com/users/NateWr/events{/privacy}","received_events_url":"https://api.github.com/users/NateWr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-12T08:51:44Z","updated_at":"2016-05-13T08:34:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pkp/omp/pulls/284","html_url":"https://github.com/pkp/omp/pull/284","diff_url":"https://github.com/pkp/omp/pull/284.diff","patch_url":"https://github.com/pkp/omp/pull/284.patch"},"body":"… book template"},"comment":{"url":"https://api.github.com/repos/pkp/omp/issues/comments/218983422","html_url":"https://github.com/pkp/omp/pull/284#issuecomment-218983422","issue_url":"https://api.github.com/repos/pkp/omp/issues/284","id":218983422,"user":{"login":"NateWr","id":2306629,"avatar_url":"https://avatars.githubusercontent.com/u/2306629?v=3","gravatar_id":"","url":"https://api.github.com/users/NateWr","html_url":"https://github.com/NateWr","followers_url":"https://api.github.com/users/NateWr/followers","following_url":"https://api.github.com/users/NateWr/following{/other_user}","gists_url":"https://api.github.com/users/NateWr/gists{/gist_id}","starred_url":"https://api.github.com/users/NateWr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NateWr/subscriptions","organizations_url":"https://api.github.com/users/NateWr/orgs","repos_url":"https://api.github.com/users/NateWr/repos","events_url":"https://api.github.com/users/NateWr/events{/privacy}","received_events_url":"https://api.github.com/users/NateWr/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T08:34:21Z","updated_at":"2016-05-13T08:34:21Z","body":"No but in the end kind of yes.\r\n\r\nOnly available publication formats are passed to the template as `$publicationFormats`. Since the default templates loop over `$publicationFormats` when displaying files, this logic ends up in place as a by-product of the particular display choices.\r\n\r\nBut the `$availableFiles` should still be filtered so that running other kinds of requests on the array (with `{pluck_files}`) doesn't return files that shouldn't be available."}}