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




on November 25, 2009 at 7:50 am
Permalink
Stuart,
Cool! Do you think this process will work for the XMLUI?
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
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
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