{"action":"created","comment":{"url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/comments/35789258","id":35789258,"diff_hunk":"@@ -111,6 +107,80 @@ def self.supported_types\n       end\n \n       private\n+      ## \n+      # Creates an embargo message to be displayed, customized for stanford\n+      # only embargoed items\n+      # @return [String]\n+      def embargo_message\n+        message = ['Access is restricted', pretty_embargo_date]\n+        unless !@purl_object.stanford_only_unrestricted?","path":"lib/embed/viewer/file.rb","position":47,"original_position":47,"commit_id":"7cec5eb8b6d7c5585daa6b50926fcf352a1e3aa3","original_commit_id":"7cec5eb8b6d7c5585daa6b50926fcf352a1e3aa3","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":"`if`?","created_at":"2015-07-29T17:48:18Z","updated_at":"2015-07-29T17:48:18Z","html_url":"https://github.com/sul-dlss/sul-embed/pull/322#discussion_r35789258","pull_request_url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/322","_links":{"self":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/comments/35789258"},"html":{"href":"https://github.com/sul-dlss/sul-embed/pull/322#discussion_r35789258"},"pull_request":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/322"}}},"pull_request":{"url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/322","id":41151336,"html_url":"https://github.com/sul-dlss/sul-embed/pull/322","diff_url":"https://github.com/sul-dlss/sul-embed/pull/322.diff","patch_url":"https://github.com/sul-dlss/sul-embed/pull/322.patch","issue_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues/322","number":322,"state":"open","locked":false,"title":"This commit does several things related to embargoed objects to display:","user":{"login":"mejackreed","id":1656824,"avatar_url":"https://avatars.githubusercontent.com/u/1656824?v=3","gravatar_id":"","url":"https://api.github.com/users/mejackreed","html_url":"https://github.com/mejackreed","followers_url":"https://api.github.com/users/mejackreed/followers","following_url":"https://api.github.com/users/mejackreed/following{/other_user}","gists_url":"https://api.github.com/users/mejackreed/gists{/gist_id}","starred_url":"https://api.github.com/users/mejackreed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mejackreed/subscriptions","organizations_url":"https://api.github.com/users/mejackreed/orgs","repos_url":"https://api.github.com/users/mejackreed/repos","events_url":"https://api.github.com/users/mejackreed/events{/privacy}","received_events_url":"https://api.github.com/users/mejackreed/received_events","type":"User","site_admin":false},"body":" - Removes tooltips on files for embargoed content\r\n - Adds a message to the file viewer specific to a global embargo and those with Stanford view rights\r\n - Removes links to files that are \"embargoed to the world (everybody)\"\r\n - Adds a method to the `CommonViewer` class which parses and returns a standardized date format that should be used globably for dates\r\n\r\nTooltip behavior on links is deprecated, thus the removal of the feature spec for it. This behavior is still present on the legacy image viewer download panel.\r\n\r\nCloses #302 \r\n\r\n### mg662qq6088 - access none with embargo release date\r\n<img width=\"657\" alt=\"screen shot 2015-07-29 at 10 42 34 am\" src=\"https://cloud.githubusercontent.com/assets/1656824/8965149/8b014696-35de-11e5-877b-0a99c0ebefa1.png\">\r\n\r\n### km993dd6050 - access stanford with embargo release date\r\n<img width=\"640\" alt=\"screen shot 2015-07-29 at 10 43 02 am\" src=\"https://cloud.githubusercontent.com/assets/1656824/8965167/9d3296c6-35de-11e5-9eb1-e3824de0b61c.png\">\r\n\r\n### nd387jf5675 - no embargo\r\n<img width=\"603\" alt=\"screen shot 2015-07-29 at 10 43 38 am\" src=\"https://cloud.githubusercontent.com/assets/1656824/8965184/b12db836-35de-11e5-9633-f345aedac905.png\">\r\n\r\ncc @rosy1280 and @hannahfrost ","created_at":"2015-07-29T17:44:40Z","updated_at":"2015-07-29T17:48:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e0e6e51faf7a32181c930b5e68de6004cac9614b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/322/commits","review_comments_url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/322/comments","review_comment_url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues/322/comments","statuses_url":"https://api.github.com/repos/sul-dlss/sul-embed/statuses/7cec5eb8b6d7c5585daa6b50926fcf352a1e3aa3","head":{"label":"sul-dlss:embargoed-file","ref":"embargoed-file","sha":"7cec5eb8b6d7c5585daa6b50926fcf352a1e3aa3","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":24868135,"name":"sul-embed","full_name":"sul-dlss/sul-embed","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/sul-embed","description":"An oEmbed Service for Stanford University Libraries","fork":false,"url":"https://api.github.com/repos/sul-dlss/sul-embed","forks_url":"https://api.github.com/repos/sul-dlss/sul-embed/forks","keys_url":"https://api.github.com/repos/sul-dlss/sul-embed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sul-dlss/sul-embed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sul-dlss/sul-embed/teams","hooks_url":"https://api.github.com/repos/sul-dlss/sul-embed/hooks","issue_events_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues/events{/number}","events_url":"https://api.github.com/repos/sul-dlss/sul-embed/events","assignees_url":"https://api.github.com/repos/sul-dlss/sul-embed/assignees{/user}","branches_url":"https://api.github.com/repos/sul-dlss/sul-embed/branches{/branch}","tags_url":"https://api.github.com/repos/sul-dlss/sul-embed/tags","blobs_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/refs{/sha}","trees_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sul-dlss/sul-embed/statuses/{sha}","languages_url":"https://api.github.com/repos/sul-dlss/sul-embed/languages","stargazers_url":"https://api.github.com/repos/sul-dlss/sul-embed/stargazers","contributors_url":"https://api.github.com/repos/sul-dlss/sul-embed/contributors","subscribers_url":"https://api.github.com/repos/sul-dlss/sul-embed/subscribers","subscription_url":"https://api.github.com/repos/sul-dlss/sul-embed/subscription","commits_url":"https://api.github.com/repos/sul-dlss/sul-embed/commits{/sha}","git_commits_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/commits{/sha}","comments_url":"https://api.github.com/repos/sul-dlss/sul-embed/comments{/number}","issue_comment_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues/comments{/number}","contents_url":"https://api.github.com/repos/sul-dlss/sul-embed/contents/{+path}","compare_url":"https://api.github.com/repos/sul-dlss/sul-embed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sul-dlss/sul-embed/merges","archive_url":"https://api.github.com/repos/sul-dlss/sul-embed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sul-dlss/sul-embed/downloads","issues_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues{/number}","pulls_url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls{/number}","milestones_url":"https://api.github.com/repos/sul-dlss/sul-embed/milestones{/number}","notifications_url":"https://api.github.com/repos/sul-dlss/sul-embed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sul-dlss/sul-embed/labels{/name}","releases_url":"https://api.github.com/repos/sul-dlss/sul-embed/releases{/id}","created_at":"2014-10-06T22:54:10Z","updated_at":"2015-07-20T15:02:15Z","pushed_at":"2015-07-29T17:44:40Z","git_url":"git://github.com/sul-dlss/sul-embed.git","ssh_url":"git@github.com:sul-dlss/sul-embed.git","clone_url":"https://github.com/sul-dlss/sul-embed.git","svn_url":"https://github.com/sul-dlss/sul-embed","homepage":null,"size":2636,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":67,"forks":0,"open_issues":67,"watchers":6,"default_branch":"master"}},"base":{"label":"sul-dlss:master","ref":"master","sha":"da0ec8c1bba06aee0da6292f7f8543f5fa0e0fa0","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":24868135,"name":"sul-embed","full_name":"sul-dlss/sul-embed","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/sul-embed","description":"An oEmbed Service for Stanford University Libraries","fork":false,"url":"https://api.github.com/repos/sul-dlss/sul-embed","forks_url":"https://api.github.com/repos/sul-dlss/sul-embed/forks","keys_url":"https://api.github.com/repos/sul-dlss/sul-embed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sul-dlss/sul-embed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sul-dlss/sul-embed/teams","hooks_url":"https://api.github.com/repos/sul-dlss/sul-embed/hooks","issue_events_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues/events{/number}","events_url":"https://api.github.com/repos/sul-dlss/sul-embed/events","assignees_url":"https://api.github.com/repos/sul-dlss/sul-embed/assignees{/user}","branches_url":"https://api.github.com/repos/sul-dlss/sul-embed/branches{/branch}","tags_url":"https://api.github.com/repos/sul-dlss/sul-embed/tags","blobs_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/refs{/sha}","trees_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sul-dlss/sul-embed/statuses/{sha}","languages_url":"https://api.github.com/repos/sul-dlss/sul-embed/languages","stargazers_url":"https://api.github.com/repos/sul-dlss/sul-embed/stargazers","contributors_url":"https://api.github.com/repos/sul-dlss/sul-embed/contributors","subscribers_url":"https://api.github.com/repos/sul-dlss/sul-embed/subscribers","subscription_url":"https://api.github.com/repos/sul-dlss/sul-embed/subscription","commits_url":"https://api.github.com/repos/sul-dlss/sul-embed/commits{/sha}","git_commits_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/commits{/sha}","comments_url":"https://api.github.com/repos/sul-dlss/sul-embed/comments{/number}","issue_comment_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues/comments{/number}","contents_url":"https://api.github.com/repos/sul-dlss/sul-embed/contents/{+path}","compare_url":"https://api.github.com/repos/sul-dlss/sul-embed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sul-dlss/sul-embed/merges","archive_url":"https://api.github.com/repos/sul-dlss/sul-embed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sul-dlss/sul-embed/downloads","issues_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues{/number}","pulls_url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls{/number}","milestones_url":"https://api.github.com/repos/sul-dlss/sul-embed/milestones{/number}","notifications_url":"https://api.github.com/repos/sul-dlss/sul-embed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sul-dlss/sul-embed/labels{/name}","releases_url":"https://api.github.com/repos/sul-dlss/sul-embed/releases{/id}","created_at":"2014-10-06T22:54:10Z","updated_at":"2015-07-20T15:02:15Z","pushed_at":"2015-07-29T17:44:40Z","git_url":"git://github.com/sul-dlss/sul-embed.git","ssh_url":"git@github.com:sul-dlss/sul-embed.git","clone_url":"https://github.com/sul-dlss/sul-embed.git","svn_url":"https://github.com/sul-dlss/sul-embed","homepage":null,"size":2636,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":67,"forks":0,"open_issues":67,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/322"},"html":{"href":"https://github.com/sul-dlss/sul-embed/pull/322"},"issue":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/issues/322"},"comments":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/issues/322/comments"},"review_comments":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/322/comments"},"review_comment":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/322/commits"},"statuses":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/statuses/7cec5eb8b6d7c5585daa6b50926fcf352a1e3aa3"}}}}