Code Monkey home page Code Monkey logo

open_citations's Introduction

Open Citations Demo

Installation

Add the repository to your composer repositories configuration then require it.

composer config repositories.open_citations vcs [email protected]:scotteuser/open_citations.git
composer require scotteuser/open_citations dev-main

Then use drush pm-enable open_citations or the Drupal UI to enable the module.

open_citations's People

Contributors

scotteuser avatar

Stargazers

 avatar  avatar

Watchers

 avatar

open_citations's Issues

Is there a limit, with max citations = 3?

Is there a limit imposed to fetch a maximum of three citations for any publications? On repeated triggers via UI or drush no new citations are added to the publications.

For example, open citations own example with DOI 10.1186/1756-8722-6-59 has 66 citations, but the module only fetches the following three

10.1016/j.biopha.2017.01.070Receptor Tyrosine Kinase-Like Orphan Receptor 1 (Ror-1): An Emerging Target For Diagnosis And Therapy Of Chronic Lymphocytic Leukemia
10.1016/j.bmcl.2015.01.032Potent And Selective Bruton’S Tyrosine Kinase Inhibitors: Discovery Of Gdc-0834
10.1016/j.bmc.2019.06.023Discovery And Biological Evaluation Of Pyrimido[4,5-D]Pyrimidine-2,4(1H,3H)-Dione Derivatives As Potent Bruton’S Tyrosine Kinase Inhibitors

Fetching citations fails

When the trigger is used to update citations via the UI for a single publication or all publications or via drush it completes instantaneously. However, no citations are added to any publications.

Setup: Install module, generate 50 publications using the devel generate option.

The following logs are added to Drupal log
Error: Call to undefined method Drupal\open_citations\Commands\CitationsUpdateDrushCommand::t() in Drupal\open_citations\Commands\CitationsUpdateDrushCommand->updateCitations() (line 25 of /opt/drupal/web/modules/custom/open_citations/src/Commands/CitationsUpdateDrushCommand.php)

This issue can be temporarily avoided by removing the t() function. Running the update citation trigger again logs the following warning.

Warning: Undefined array key 50 in Drupal\open_citations\OpenCitationsBatches::operationCallback() (line 136 of /opt/drupal/web/modules/custom/open_citations/src/OpenCitationsBatches.php)

Seems like the batch processing is not be triggered.

PS: Great talk and module at Drupal Dev Days. Thanks for sharing.

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.