{"action":"created","comment":{"url":"https://api.github.com/repos/pkp/ojs/pulls/comments/44297446","id":44297446,"diff_hunk":"@@ -0,0 +1,301 @@\n+<?php\n+\n+/**\n+ * @file plugins/reports/counter/classes/CounterReport.inc.php\n+ *\n+ * Copyright (c) 2014 University of Pittsburgh\n+ * Distributed under the GNU GPL v2 or later. For full terms see the file docs/COPYING.\n+ *\n+ * @class CounterReport\n+ * @ingroup plugins_reports_counter\n+ *\n+ * @brief A COUNTER report, base class\n+ */\n+require_once(dirname(dirname(__FILE__)).'/classes/COUNTER/COUNTER.php');\n+\n+define('COUNTER_EXCEPTION_WARNING', 0);\n+define('COUNTER_EXCEPTION_ERROR', 1);\n+define('COUNTER_EXCEPTION_PARTIAL_DATA', 4);\n+define('COUNTER_EXCEPTION_NO_DATA', 8);\n+define('COUNTER_EXCEPTION_BAD_COLUMNS', 16);\n+define('COUNTER_EXCEPTION_BAD_FILTERS', 32);\n+define('COUNTER_EXCEPTION_BAD_ORDERBY', 64);\n+define('COUNTER_EXCEPTION_BAD_RANGE', 128);\n+define('COUNTER_EXCEPTION_INTERNAL', 256);\n+\n+define('COUNTER_CLASS_PREFIX', 'CounterReport');\n+\n+// COUNTER as of yet is not internationalized and requires English constants\n+define('COUNTER_LITERAL_ARTICLE', 'Article');\n+define('COUNTER_LITERAL_JOURNAL', 'Journal');\n+define('COUNTER_LITERAL_PROPRIETARY', 'Proprietary');\n+\n+class CounterReport {\n+\n+\tvar $parentPluginCategory;\n+\tvar $parentPluginName;\n+\t\n+\tvar $_release;","path":"plugins/reports/counter/classes/CounterReport.inc.php","position":38,"original_position":38,"commit_id":"b591f70648889adf93a1a45ad38ae0dda4484e38","original_commit_id":"b591f70648889adf93a1a45ad38ae0dda4484e38","user":{"login":"beghelli","id":593977,"avatar_url":"https://avatars.githubusercontent.com/u/593977?v=3","gravatar_id":"","url":"https://api.github.com/users/beghelli","html_url":"https://github.com/beghelli","followers_url":"https://api.github.com/users/beghelli/followers","following_url":"https://api.github.com/users/beghelli/following{/other_user}","gists_url":"https://api.github.com/users/beghelli/gists{/gist_id}","starred_url":"https://api.github.com/users/beghelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beghelli/subscriptions","organizations_url":"https://api.github.com/users/beghelli/orgs","repos_url":"https://api.github.com/users/beghelli/repos","events_url":"https://api.github.com/users/beghelli/events{/privacy}","received_events_url":"https://api.github.com/users/beghelli/received_events","type":"User","site_admin":false},"body":"sorry, not sure if it wasn't here before, but the documentation is missing for those members...","created_at":"2015-11-09T16:44:10Z","updated_at":"2015-11-09T16:44:10Z","html_url":"https://github.com/pkp/ojs/pull/535#discussion_r44297446","pull_request_url":"https://api.github.com/repos/pkp/ojs/pulls/535","_links":{"self":{"href":"https://api.github.com/repos/pkp/ojs/pulls/comments/44297446"},"html":{"href":"https://github.com/pkp/ojs/pull/535#discussion_r44297446"},"pull_request":{"href":"https://api.github.com/repos/pkp/ojs/pulls/535"}}},"pull_request":{"url":"https://api.github.com/repos/pkp/ojs/pulls/535","id":39592104,"html_url":"https://github.com/pkp/ojs/pull/535","diff_url":"https://github.com/pkp/ojs/pull/535.diff","patch_url":"https://github.com/pkp/ojs/pull/535.patch","issue_url":"https://api.github.com/repos/pkp/ojs/issues/535","number":535,"state":"open","locked":false,"title":"pkp/pkp-lib#739 Create new Release/Report class structure in Counter plugin; Add COUNTER class.","user":{"login":"ctgraham","id":7001322,"avatar_url":"https://avatars.githubusercontent.com/u/7001322?v=3","gravatar_id":"","url":"https://api.github.com/users/ctgraham","html_url":"https://github.com/ctgraham","followers_url":"https://api.github.com/users/ctgraham/followers","following_url":"https://api.github.com/users/ctgraham/following{/other_user}","gists_url":"https://api.github.com/users/ctgraham/gists{/gist_id}","starred_url":"https://api.github.com/users/ctgraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctgraham/subscriptions","organizations_url":"https://api.github.com/users/ctgraham/orgs","repos_url":"https://api.github.com/users/ctgraham/repos","events_url":"https://api.github.com/users/ctgraham/events{/privacy}","received_events_url":"https://api.github.com/users/ctgraham/received_events","type":"User","site_admin":false},"body":"This abstracts the counter plugin to allow multiple COUNTER releases and reports.  Release 4.1 of JR1 and AR1 are provided as examples.\r\n\r\nThis provides the foundation for SUSHI-Lite calls via the forthcoming SUSHI-Lite plugin:\r\nhttps://github.com/ulsdevteam/ojs-sushiLite-plugin\r\n","created_at":"2015-07-09T14:56:03Z","updated_at":"2015-11-09T16:44:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0bc77c06d0755d023a14eb1d1a40b4d996eff65f","assignee":{"login":"beghelli","id":593977,"avatar_url":"https://avatars.githubusercontent.com/u/593977?v=3","gravatar_id":"","url":"https://api.github.com/users/beghelli","html_url":"https://github.com/beghelli","followers_url":"https://api.github.com/users/beghelli/followers","following_url":"https://api.github.com/users/beghelli/following{/other_user}","gists_url":"https://api.github.com/users/beghelli/gists{/gist_id}","starred_url":"https://api.github.com/users/beghelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beghelli/subscriptions","organizations_url":"https://api.github.com/users/beghelli/orgs","repos_url":"https://api.github.com/users/beghelli/repos","events_url":"https://api.github.com/users/beghelli/events{/privacy}","received_events_url":"https://api.github.com/users/beghelli/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/pkp/ojs/pulls/535/commits","review_comments_url":"https://api.github.com/repos/pkp/ojs/pulls/535/comments","review_comment_url":"https://api.github.com/repos/pkp/ojs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pkp/ojs/issues/535/comments","statuses_url":"https://api.github.com/repos/pkp/ojs/statuses/b591f70648889adf93a1a45ad38ae0dda4484e38","head":{"label":"ulsdevteam:refactor-counter-reports","ref":"refactor-counter-reports","sha":"b591f70648889adf93a1a45ad38ae0dda4484e38","user":{"login":"ulsdevteam","id":2464639,"avatar_url":"https://avatars.githubusercontent.com/u/2464639?v=3","gravatar_id":"","url":"https://api.github.com/users/ulsdevteam","html_url":"https://github.com/ulsdevteam","followers_url":"https://api.github.com/users/ulsdevteam/followers","following_url":"https://api.github.com/users/ulsdevteam/following{/other_user}","gists_url":"https://api.github.com/users/ulsdevteam/gists{/gist_id}","starred_url":"https://api.github.com/users/ulsdevteam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulsdevteam/subscriptions","organizations_url":"https://api.github.com/users/ulsdevteam/orgs","repos_url":"https://api.github.com/users/ulsdevteam/repos","events_url":"https://api.github.com/users/ulsdevteam/events{/privacy}","received_events_url":"https://api.github.com/users/ulsdevteam/received_events","type":"Organization","site_admin":false},"repo":{"id":6031859,"name":"ojs","full_name":"ulsdevteam/ojs","owner":{"login":"ulsdevteam","id":2464639,"avatar_url":"https://avatars.githubusercontent.com/u/2464639?v=3","gravatar_id":"","url":"https://api.github.com/users/ulsdevteam","html_url":"https://github.com/ulsdevteam","followers_url":"https://api.github.com/users/ulsdevteam/followers","following_url":"https://api.github.com/users/ulsdevteam/following{/other_user}","gists_url":"https://api.github.com/users/ulsdevteam/gists{/gist_id}","starred_url":"https://api.github.com/users/ulsdevteam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulsdevteam/subscriptions","organizations_url":"https://api.github.com/users/ulsdevteam/orgs","repos_url":"https://api.github.com/users/ulsdevteam/repos","events_url":"https://api.github.com/users/ulsdevteam/events{/privacy}","received_events_url":"https://api.github.com/users/ulsdevteam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ulsdevteam/ojs","description":"Open Journal System","fork":true,"url":"https://api.github.com/repos/ulsdevteam/ojs","forks_url":"https://api.github.com/repos/ulsdevteam/ojs/forks","keys_url":"https://api.github.com/repos/ulsdevteam/ojs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ulsdevteam/ojs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ulsdevteam/ojs/teams","hooks_url":"https://api.github.com/repos/ulsdevteam/ojs/hooks","issue_events_url":"https://api.github.com/repos/ulsdevteam/ojs/issues/events{/number}","events_url":"https://api.github.com/repos/ulsdevteam/ojs/events","assignees_url":"https://api.github.com/repos/ulsdevteam/ojs/assignees{/user}","branches_url":"https://api.github.com/repos/ulsdevteam/ojs/branches{/branch}","tags_url":"https://api.github.com/repos/ulsdevteam/ojs/tags","blobs_url":"https://api.github.com/repos/ulsdevteam/ojs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ulsdevteam/ojs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ulsdevteam/ojs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ulsdevteam/ojs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ulsdevteam/ojs/statuses/{sha}","languages_url":"https://api.github.com/repos/ulsdevteam/ojs/languages","stargazers_url":"https://api.github.com/repos/ulsdevteam/ojs/stargazers","contributors_url":"https://api.github.com/repos/ulsdevteam/ojs/contributors","subscribers_url":"https://api.github.com/repos/ulsdevteam/ojs/subscribers","subscription_url":"https://api.github.com/repos/ulsdevteam/ojs/subscription","commits_url":"https://api.github.com/repos/ulsdevteam/ojs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ulsdevteam/ojs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ulsdevteam/ojs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ulsdevteam/ojs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ulsdevteam/ojs/contents/{+path}","compare_url":"https://api.github.com/repos/ulsdevteam/ojs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ulsdevteam/ojs/merges","archive_url":"https://api.github.com/repos/ulsdevteam/ojs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ulsdevteam/ojs/downloads","issues_url":"https://api.github.com/repos/ulsdevteam/ojs/issues{/number}","pulls_url":"https://api.github.com/repos/ulsdevteam/ojs/pulls{/number}","milestones_url":"https://api.github.com/repos/ulsdevteam/ojs/milestones{/number}","notifications_url":"https://api.github.com/repos/ulsdevteam/ojs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ulsdevteam/ojs/labels{/name}","releases_url":"https://api.github.com/repos/ulsdevteam/ojs/releases{/id}","created_at":"2012-10-01T15:28:38Z","updated_at":"2015-03-06T15:58:49Z","pushed_at":"2015-11-04T21:27:56Z","git_url":"git://github.com/ulsdevteam/ojs.git","ssh_url":"git@github.com:ulsdevteam/ojs.git","clone_url":"https://github.com/ulsdevteam/ojs.git","svn_url":"https://github.com/ulsdevteam/ojs","homepage":"http://pkp.sfu.ca/ojs","size":107108,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"uls-install"}},"base":{"label":"pkp:ojs-dev-2_4","ref":"ojs-dev-2_4","sha":"284081d4f9893c97f3a4c7468e15c7a902068894","user":{"login":"pkp","id":130896,"avatar_url":"https://avatars.githubusercontent.com/u/130896?v=3","gravatar_id":"","url":"https://api.github.com/users/pkp","html_url":"https://github.com/pkp","followers_url":"https://api.github.com/users/pkp/followers","following_url":"https://api.github.com/users/pkp/following{/other_user}","gists_url":"https://api.github.com/users/pkp/gists{/gist_id}","starred_url":"https://api.github.com/users/pkp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkp/subscriptions","organizations_url":"https://api.github.com/users/pkp/orgs","repos_url":"https://api.github.com/users/pkp/repos","events_url":"https://api.github.com/users/pkp/events{/privacy}","received_events_url":"https://api.github.com/users/pkp/received_events","type":"Organization","site_admin":false},"repo":{"id":375152,"name":"ojs","full_name":"pkp/ojs","owner":{"login":"pkp","id":130896,"avatar_url":"https://avatars.githubusercontent.com/u/130896?v=3","gravatar_id":"","url":"https://api.github.com/users/pkp","html_url":"https://github.com/pkp","followers_url":"https://api.github.com/users/pkp/followers","following_url":"https://api.github.com/users/pkp/following{/other_user}","gists_url":"https://api.github.com/users/pkp/gists{/gist_id}","starred_url":"https://api.github.com/users/pkp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkp/subscriptions","organizations_url":"https://api.github.com/users/pkp/orgs","repos_url":"https://api.github.com/users/pkp/repos","events_url":"https://api.github.com/users/pkp/events{/privacy}","received_events_url":"https://api.github.com/users/pkp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pkp/ojs","description":"Open Journal Systems","fork":false,"url":"https://api.github.com/repos/pkp/ojs","forks_url":"https://api.github.com/repos/pkp/ojs/forks","keys_url":"https://api.github.com/repos/pkp/ojs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pkp/ojs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pkp/ojs/teams","hooks_url":"https://api.github.com/repos/pkp/ojs/hooks","issue_events_url":"https://api.github.com/repos/pkp/ojs/issues/events{/number}","events_url":"https://api.github.com/repos/pkp/ojs/events","assignees_url":"https://api.github.com/repos/pkp/ojs/assignees{/user}","branches_url":"https://api.github.com/repos/pkp/ojs/branches{/branch}","tags_url":"https://api.github.com/repos/pkp/ojs/tags","blobs_url":"https://api.github.com/repos/pkp/ojs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pkp/ojs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pkp/ojs/git/refs{/sha}","trees_url":"https://api.github.com/repos/pkp/ojs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pkp/ojs/statuses/{sha}","languages_url":"https://api.github.com/repos/pkp/ojs/languages","stargazers_url":"https://api.github.com/repos/pkp/ojs/stargazers","contributors_url":"https://api.github.com/repos/pkp/ojs/contributors","subscribers_url":"https://api.github.com/repos/pkp/ojs/subscribers","subscription_url":"https://api.github.com/repos/pkp/ojs/subscription","commits_url":"https://api.github.com/repos/pkp/ojs/commits{/sha}","git_commits_url":"https://api.github.com/repos/pkp/ojs/git/commits{/sha}","comments_url":"https://api.github.com/repos/pkp/ojs/comments{/number}","issue_comment_url":"https://api.github.com/repos/pkp/ojs/issues/comments{/number}","contents_url":"https://api.github.com/repos/pkp/ojs/contents/{+path}","compare_url":"https://api.github.com/repos/pkp/ojs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pkp/ojs/merges","archive_url":"https://api.github.com/repos/pkp/ojs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pkp/ojs/downloads","issues_url":"https://api.github.com/repos/pkp/ojs/issues{/number}","pulls_url":"https://api.github.com/repos/pkp/ojs/pulls{/number}","milestones_url":"https://api.github.com/repos/pkp/ojs/milestones{/number}","notifications_url":"https://api.github.com/repos/pkp/ojs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pkp/ojs/labels{/name}","releases_url":"https://api.github.com/repos/pkp/ojs/releases{/id}","created_at":"2009-11-16T21:19:14Z","updated_at":"2015-11-04T16:16:53Z","pushed_at":"2015-11-09T16:31:15Z","git_url":"git://github.com/pkp/ojs.git","ssh_url":"git@github.com:pkp/ojs.git","clone_url":"https://github.com/pkp/ojs.git","svn_url":"https://github.com/pkp/ojs","homepage":"http://pkp.sfu.ca/ojs","size":151356,"stargazers_count":232,"watchers_count":232,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":239,"mirror_url":null,"open_issues_count":22,"forks":239,"open_issues":22,"watchers":232,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pkp/ojs/pulls/535"},"html":{"href":"https://github.com/pkp/ojs/pull/535"},"issue":{"href":"https://api.github.com/repos/pkp/ojs/issues/535"},"comments":{"href":"https://api.github.com/repos/pkp/ojs/issues/535/comments"},"review_comments":{"href":"https://api.github.com/repos/pkp/ojs/pulls/535/comments"},"review_comment":{"href":"https://api.github.com/repos/pkp/ojs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pkp/ojs/pulls/535/commits"},"statuses":{"href":"https://api.github.com/repos/pkp/ojs/statuses/b591f70648889adf93a1a45ad38ae0dda4484e38"}}}}