Accessing UMD ResearchPort from off campus

How to create a bookmarklet that will automatically log in to journal websites from off-campus.

Just a quick post here during my qualifier prep. When accessing journals from off-campus, UMD students can login through ResearchPort in order to get authorization to view the journals. It’s relatively easy to do this with a “bookmarklet” which is just a little bit of javascript code that will fill in the correct URL for you.

Just click and drag the link below to your bookmark folder (or toolbar), and then click on it when on a relevant journal or article website. Enter your UMD credentials like normal, and it will foward you back to the original site through the researchport proxy, meaning you should have access just as if your were on campus. This is really useful when doing quick journal searches through Google Scholar or something, but is also a handy way to login to Web of Knowledge (http://webofknowledge.com) and sites like that.

It may not work perfectly in all situations, but it should at least get you close, and then you can manually tweak the URL if necessary.

UMD ResearchPort Bookmarklet

  • If you’re wondering, here’s what the javascript code looks like:
    javascript:(
    function(){
    var x='http://proxy-um.researchport.umd.edu/login?url='+location.href;
    var found=x.indexOf('?isAuthorized=no');
    if(found > 0) location.href=x.slice(0,found);
    else location.href=x;
    }
    ) ();
    • The bit about the “?isAuthorized=no” is there for when you call the bookmarklet from an AIP site. They like to add that little token to the URL if you go straight to an article page, so we have to remove it before we attempt to login to ResearchPort.

Update:  (March 2013) If you use Google Chrome, I found an extension that can map this to a keyboard shortcut, which greatly speeds things up. It’s called “Shortcut Manager“.  You can either set it up manually, or click “Import settings” and copy the following code into the import box. If all goes to plan, the bookmarklet should be mapped to Ctrl-Shift-R so you don’t need to click on anything to load it.

    // ==UserScript==
    // @ShortcutManager
    // @name Login with UMD ResearchPort
    // @namespace Hra7II2IjzDv
    // @key Ctrl+Shift+r
    // @include *
    // ==/UserScript==
    javascript:(function(){var x='http://proxy-um.researchport.umd.edu/login?url='+location.href; var found=x.indexOf('?isAuthorized=no'); if(found > 0) location.href=x.slice(0,found); else location.href=x;}) ();

Tags: , , ,

Leave a Reply

Search Previous Posts