Git Product home page Git Product logo

Comments (15)

craigl-res avatar craigl-res commented on July 3, 2024 1

An update: the plugin appears to work fine (and well) for Zotero records with a DOI entry, and returns the '0 item' message for records without a DOI entry. I haven't tested every record I have but that appears to be a pattern so far.

from zotero-citationcounts.

eschnett avatar eschnett commented on July 3, 2024

Is there an error message?
Does it say that it found 0 citations, or is there any other pop-up message?
Does it work when you manually trigger updating the citation counts by right-clicking on the publication?

from zotero-citationcounts.

LReinoso1 avatar LReinoso1 commented on July 3, 2024

In both cases, it just says that it found 0 citations. More specifically "Semantic Scholar/CrossRef citation counts updated for 0 items."

Manual triggering doesn't help.

from zotero-citationcounts.

LReinoso1 avatar LReinoso1 commented on July 3, 2024

I am wondering if there is any follow-up. Thank you!

from zotero-citationcounts.

eschnett avatar eschnett commented on July 3, 2024

I have no idea what is causing this problem. I will have to debug what is going wrong – I can't promise a particular timeline.

from zotero-citationcounts.

LReinoso1 avatar LReinoso1 commented on July 3, 2024

Thank you!

from zotero-citationcounts.

craigl-res avatar craigl-res commented on July 3, 2024

I'm getting the same issue with each citation source. Happy to beta test a fix if you find one.
Edit: I'm using Zotero 6.0.5 and Windows 11

from zotero-citationcounts.

LReinoso1 avatar LReinoso1 commented on July 3, 2024

Thanks! Is that for both Semantic Scholar and CrossRef? I am pulling articles on CrossRef, but the plugin pulls no Semantic Scholar citations

from zotero-citationcounts.

LReinoso1 avatar LReinoso1 commented on July 3, 2024

Also, I just checked: if I have a DOI for a book, it still does not pull CrossRef citation counts

from zotero-citationcounts.

craigl-res avatar craigl-res commented on July 3, 2024

I tested on one article and it can pull the CrossRef citations too, if a valid DOI is present.

from zotero-citationcounts.

RakhDamir avatar RakhDamir commented on July 3, 2024

I have encountered the same problem. For some references from ArXiv, I do not get any information about the number of citations. It does not show even 0 citations. When I try to trigger the update manually it shows that " ... citation counts were updated for 0 items".

from zotero-citationcounts.

LReinoso1 avatar LReinoso1 commented on July 3, 2024

CrossRef works for articles, not for books (even if I have DOI in "extra" field). Semantic Scholar doesn't work for anything.

from zotero-citationcounts.

glocalglocal avatar glocalglocal commented on July 3, 2024

the add-on seems not to collect book citations for CrossRef

CrossRef only deals with journals, not books. AFAIK, this addon doesn't support counts for books at all unfortunately.

from zotero-citationcounts.

Leonpagliacci avatar Leonpagliacci commented on July 3, 2024

the same problem arose with the pop-up message "Semantic Scholar/CrossRef citation counts updated for 0 items." when I first installed this plug-in.

from zotero-citationcounts.

adrien-perello avatar adrien-perello commented on July 3, 2024

I agree, I think it is most likely is because books and book chapters do not have a "DOI" field.

In In zoterocitationcounts.js there is:

async function getSemanticScholarCount(item, idtype) {
    let doi = null;
    if (idtype == 'doi') {
        doi = item.getField('DOI');
    } else if (idtype == 'arxiv') {
        const arxiv = item.getField('url'); // check URL for arXiv id
        const patt = /(?:arxiv.org[/]abs[/]|arXiv:)([a-z.-]+[/]\d+|\d+[.]\d+)/i;
        const m = patt.exec(arxiv);
        if (!m) {
            // No arxiv id found
            return -1;
        }
        doi = m[1];
    } else {
        // Internal error
        return -1;
    }
    if (!doi) {
        // There is no DOI / arXiv id; skip item
        return -1;
    }

With a bit of regex, we can get the DOI from either the "URL" field or the "extra" (as it is often added there). Which is what @eschnett does, but It seems to me that he assumes that if there is no DOI, then the only reason could be because it is not printed yet, and then he checks for arxiv. But in my case for example the DOI reference is present in the "URL" field (as well as the "extra" field since it is added automatically with the "Save to Zotero" browser plugin).

from zotero-citationcounts.

Related Issues (20)

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.