Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions StatisticsHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function index($args, $request) {


function getStatisticsWeek() {
$request = Application::getRequest();
$request = \Application::get()->getRequest();
$journal = $request->getJournal();

//statistics report
Expand Down Expand Up @@ -91,7 +91,7 @@ function getStatisticsWeek() {
*/

function getStatisticsByMonth() {
$request = Application::getRequest();
$request = \Application::get()->getRequest();
$journal =& $request->getJournal();

$year = $request->getUserVar('year');
Expand Down Expand Up @@ -124,7 +124,7 @@ function getStatisticsByMonth() {
* Get statistics (download and abstract) by year from table METRICS
*/
function getStatisticsByYear() {
$request = Application::getRequest();
$request = \Application::get()->getRequest();
$journal =& $request->getJournal();
$year = $request->getUserVar('year');
if (empty($year)) $year = date('Y');
Expand Down Expand Up @@ -154,7 +154,7 @@ function getStatisticsByYear() {
* Get statistics (abstract) by country from table METRICS
*/
function getStatisticsByCountryAbstract() {
$request = Application::getRequest();
$request = \Application::get()->getRequest();
$journal =& $request->getJournal();
$year = $request->getUserVar('year');
if (empty($year)) $year = date('Y');
Expand All @@ -181,7 +181,7 @@ function getStatisticsByCountryAbstract() {
* Get statistics (download) by country from table METRICS
*/
function getStatisticsByCountryDownload() {
$request = Application::getRequest();
$request = \Application::get()->getRequest();
$journal =& $request->getJournal();
$year = $request->getUserVar('year');
if (empty($year)) $year = date('Y');
Expand All @@ -206,7 +206,7 @@ function getStatisticsByCountryDownload() {
* Get statistics (download or abstract, request parameter) most popular articles from table METRICS
*/
function getStatisticsMostPopularDownload() {
$request = Application::getRequest();
$request = \Application::get()->getRequest();
$journal =& $request->getJournal();
$primaryLocale = $journal->getPrimaryLocale();

Expand Down Expand Up @@ -235,7 +235,7 @@ function getStatisticsMostPopularDownload() {
* Get statistics (download) most popular articles from table METRICS
*/
function getStatisticsIssues() {
$request = Application::getRequest();
$request = \Application::get()->getRequest();
$journal =& $request->getJournal();
$primaryLocale = $journal->getPrimaryLocale();

Expand Down
2 changes: 1 addition & 1 deletion locale/en_US/locale.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<message key="plugins.generic.statistics.downloadByCountries">Downloads</message>
<message key="plugins.generic.statistics.viewAbstracts">Views</message>
<message key="plugins.generic.statistics.viewAbstractsByCountry">Article abstract page views</message>
<message key="plugins.generic.statistics.viewDownloads">Donwloads</message>
<message key="plugins.generic.statistics.viewDownloads">Downloads</message>
<message key="plugins.generic.statistics.lastYears2">Last 6 years</message>
<message key="plugins.generic.statistics.byMonthArticle">Last 12 months</message>
<message key="plugins.generic.statistics.byMonth">For months of the year</message>
Expand Down
2 changes: 1 addition & 1 deletion locale/pt_BR/locale.po
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ msgid "plugins.generic.statistics.viewAbstractsByCountry"
msgstr "Visualizações da página de resumo do artigo"

msgid "plugins.generic.statistics.viewDownloads"
msgstr "Donwloads"
msgstr "Downloads"

msgid "plugins.generic.statistics.lastYears2"
msgstr "Últimos 6 anos"
Expand Down
2 changes: 1 addition & 1 deletion locale/pt_BR/locale.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<message key="plugins.generic.statistics.downloadByCountries">Downloads</message>
<message key="plugins.generic.statistics.viewAbstracts">Visualizações</message>
<message key="plugins.generic.statistics.viewAbstractsByCountry">Visualizações da página de resumo do artigo</message>
<message key="plugins.generic.statistics.viewDownloads">Donwloads</message>
<message key="plugins.generic.statistics.viewDownloads">Downloads</message>
<message key="plugins.generic.statistics.lastYears2">Últimos 6 anos</message>
<message key="plugins.generic.statistics.byMonthArticle">Últimos 12 meses</message>
<message key="plugins.generic.statistics.byMonth">Por meses do ano</message>
Expand Down