Giter VIP home page Giter VIP logo

mostviewed's Introduction

Hi there ๐Ÿ‘‹

mostviewed's People

Contributors

jonasraoni avatar natewr avatar nmueller18 avatar rboelter avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

mostviewed's Issues

3.2 compatibility

This throws an error in v3.2, because we've removed the PublishedSubmissionDAO and PublishedSubmission classes. You can read about this in teh release notes: https://docs.pkp.sfu.ca/dev/release-notebooks/en/3.2-release-notebook#publishedarticle-and-publishedmonograph-removed

We've also introduced a service class for usage stats which should be used if possible. In particular, this part: https://docs.pkp.sfu.ca/dev/documentation/en/statistics-reader#get-a-list-of-objects-ordered-by-their-total-stats

Title field has no language option

Very nice plugin, and generally working as expected. Thank you!
However, at the moment, the title field seems to be hard-coded so if the user chooses to enter a custom title this is used regardless of language. It would be nice if the title varies according to the language chosen by the user.

Initial code review

Looks good! Here are some thoughts on an initial code review and test with 3.1.2.

I notice that it's not yet working with 3.2. I'll make a separate issue about that.

code snippet

@NateWr @nmueller18 @RBoelter

What code snippet I need to use if I want to place it in template manually? I dont want the position you have specified, i want to call the most viewed articles at certain area of the page.. any code to use? thanks

Upgrade plugin to work under OJS 3.4

Describe the problem you would like to solve
The plugin needs some updates to work properly under OJS 3.4.

I'll be working on it, so I'm planning to come back with a PR shortly.

The plugin is not using the configured settings

Describe the bug
The plugin is not using the configured settings at the scheduled task.

To Reproduce

  1. Change the value for the days/amount/years setting
  2. Check the used value at the scheduled task

What application are you using?
OJS 3.3.x

Scheduled task doesn't work

Hi @RBoelter,

My OJS 33014 has the latest version from Most Viewed plugin, running on a linux server with 7.4 php, doesn't update the list from plugin on frontend. If I update any plugin config from panel the list on frontend is updated.

Do you have any idea of what can be happening?

New release backwards compatible?

Thanks for the new release of mostViewed! However, is it supposed to be backwards compatible? On our system with OJS 3.1.2.4, the upgrade let to a "Failed AJAX request or invalid JSON returned" and complete outage. The fatal error in the php-log is obviously related to the change in the get-method from

$request = Application::getRequest();

to

$request = Application::get()->getRequest();

Below is the complete error log:

Sep  3 00:52:28 web08 php73-user: PHP Fatal error:  Uncaught Error: Call to undefined method Application::get() in /www/user/htdocs_ojs/plugins/generic/mostViewed/MostViewedPlugin.inc.php:35
Sep  3 00:52:28 web08 php73-user: Stack trace:
Sep  3 00:52:28 web08 php73-user: #0 /www/user/htdocs_ojs/lib/pkp/classes/plugins/PluginRegistry.inc.php(69): MostViewedPlugin->register('generic', 'plugins/generic...', NULL)
Sep  3 00:52:28 web08 php73-user: #1 /www/user/htdocs_ojs/lib/pkp/classes/plugins/PluginRegistry.inc.php(143): PluginRegistry::register('generic', Object(MostViewedPlugin), 'plugins/generic...', NULL)
Sep  3 00:52:28 web08 php73-user: #2 /www/user/htdocs_ojs/lib/pkp/classes/core/Dispatcher.inc.php(132): PluginRegistry::loadCategory('generic', true)
Sep  3 00:52:28 web08 php73-user: #3 /www/user/htdocs_ojs/lib/pkp/classes/core/PKPApplication.inc.php(252): Dispatcher->dispatch(Object(Request))
Sep  3 00:52:28 web08 php73-user: #4 /www/user/htdocs_ojs/index.php(68): PKPApplication->execute()
Sep  3 00:52:28 web08 php73-user: #5 {main}
Sep  3 00:52:28 web08 php73-user:  thrown in /www/user/htdocs_ojs/plugins/generic/mostViewed/MostViewedPlugin.inc.php on line 35

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.