Displaying citation counts in DSpace

In the repository world we’ve known for a while now that unless the repository provides value to a researcher, they won’t use it. Nothing pleases a researcher more than to see nice big citation counts for their papers. Wouldn’t it be nice if DSpace repositories could display the citation count for archived papers?

cite

I received an email yesterday about the Scopus API, so thought I’d play with it for a bit of a ‘Friday afternoon experiment’. So here is a quick recipe for adding citation counts to DSpace’s JSPUI:

  1. Register for the Scopus API service: http://searchapi.scopus.com/
  2. Register your website (e.g. http://dspace.example.com/): https://searchapi.scopus.com/developerProfile.url
  3. Download and save this patch (it only edits two files – display-item.jsp and header-default.jsp)
  4. Edit the patch and insert your developer ID where you see XXXXXXXXXXX in the Javascript
  5. Apply the patch to your DSpace instance
  6. Re-build, and redeploy your DSpace instance
  7. Visit any item that has a DOI stored in the dc.identifier.doi field
  8. Look out for the citation count appearing at the top (if the item has a count of more than 0!)
Bookmark and Share
Posted on October 30, 2009 at 3:44 pm by Stuart · Permalink
In: Uncategorized · Tagged with: , ,

4 Responses

Subscribe to comments via RSS

  1. Written by Ronee Francis
    on November 25, 2009 at 7:50 am
    Permalink

    Stuart,

    Cool! Do you think this process will work for the XMLUI?

  2. Written by Stuart
    on November 25, 2009 at 11:52 am
    Permalink

    Hi Ronee,

    Yes – it should work fine. The snippet of code that inserts the Javascript on the page and grabs the DOI will need changing slightly, but otherwise it will work OK.

    Apparently SCOPUS are developing a new citation REST API which should be available early next year, so once that is released I’ll probably rewrite the code to make use of that, and will implement it in the XMLUI too.

    Thanks,

    Stuart

  3. Written by moturi
    on November 30, 2009 at 6:43 pm
    Permalink

    Hi,

    I am having a problem with applying the patch file.

    I saved it in the server as mods.diff.txt and ran the command

    $ patch < mods.diff (for the file defaultheader.jsp)

    I got the following errors:

    bash-2.05$ patch < mods.diff.txt
    bash: mods.diff.txt: No such file or directory
    bash-2.05$ patch < mods.diff.txt
    Looks like a unified context diff.
    Hunk #1 failed at line 66.
    Hunk #2 failed at line 108.
    2 out of 2 hunks failed: saving rejects to header-default.jsp.rej
    The next patch looks like a unified context diff.
    File to patch: header-default.jsp
    Hunk #1 failed at line 107.
    Hunk #2 failed at line 160.
    2 out of 2 hunks failed: saving rejects to header-default.jsp.rej
    done

    Can you please help?

    Thanks in advance.

    Regards,
    moturi

  4. Written by Stuart
    on December 6, 2009 at 8:51 pm
    Permalink

    Hi Moturi,

    It might be that you are trying to patch an old version of the code as the patch is designed for DSpace version 1.6. You could just apply the changes to the file by hand, as there aren’t many. Just add the lines from the patch file which start with a ‘+’, and remove the lines that start with a ‘-’. To find the position of the lines, look at the extra lines before and after each change.

    Thanks,

    Stuart

Subscribe to comments via RSS

Leave a Reply