Git Product home page Git Product logo

islandora_badges's People

Contributors

bondjimbond avatar dmoses avatar manez avatar mjordan avatar ruebot avatar whikloj avatar willtp87 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mjordan

islandora_badges's Issues

Add oaDOI badge

Not necessarily a badge, but fits within the badge suite due to the pieces it uses and what it does (gets DOI, generates a block leading somewhere external based on that DOI).

On citation-only objects (i.e. citation objects with no PDF datastream), generate a link to the free fulltext paper.

Module should check for the presence of a PDF datastream, and only generate a block when datastream does not exist.

First stab taken on the oadoi branch. Currently a few steps from merging.

Put badge-specific code in separate functions

Thought I'd open this issue so we don't forget about it. Low priority for now?

The badge-specific code inside the case blocks in islandora_badges_block_view() should be refactored into functions, which in turn, could be placed in an include file. This would make adding new badges easier, plus keep the .module file smaller and more maintainable.

Error handling for "not found" or invalid DOIs

When a DOI is invalid or just not found by the service, Scopus resolves fine with no block at all. But Altmetric responds with an empty block, and Web of Science responds with an empty set that results in "0" citations and a bad link.

WOS should be easy enough to resolve when there's time.

Altmetric could be resolved after finding out what the callback response is.
Here's the Altmetric API callback data: http://api.altmetric.com/v1/doi/65465?callback=my_callback (where 65465 is a random non-DOI number) results in "Not Found" as results - as opposed to a nice set of results with a valid DOI.

Add error handling for Web of Science

If credentials are invalid or not present, objects display a badge with a citation count of 0 and an invalid link (goes to /array or something like that).

Need to examine $results with invalid credentials, see what the error is, and then exit the case before anything is generated. Also add a drupal_set_message to let admin know that they probably have invalid credentials.

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.