Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    How to add a DOI Button to the browser

     

    • Product: Primo, SFX, Primo Central

     

    Description:

    The 'DOI button' is a saved link in the web browser which allows to search for DOI name and resolve it. It is based on JavaScrirpt and provides two options:
    1. A dialog box which is opened in which we type/paste the DOI number
    2. Highlighting a DOI that appears on Primo page without a need to type/paste it.

     

    Note: 
    Since the DOI Name Resolver Button is using JavaScript, the Security and Privacy settings, especially for Windows, will affect the performance of this tool. It might not operate properly with some browser version and platform version combinations.

     

    The JavaScript code is:

    
    javascript:Qr=window.getSelection?window.getSelection().toString():document.selection.createRange().text;if(!Qr){void(Qr=prompt('Enter%20DOI%20to%20resolve,%20e.g.%2010.1000/202:',''))}if(Qr){if(Qr.indexOf('doi://')==0)Qr=Qr.substr(6);if(Qr.indexOf('doi:')==0)Qr=Qr.substr(4)}if(Qr)location.href='http://dx.doi.org/'+escape(Qr)


    Instructions for Internet Explorer:
    1. Make sure that the Links toolbar is visible. (Right click on the toolbar and make sure that "Favorites" is checked.) 
    2. Enter any website, and Go to "Favorites" > "Add to Favorites".
    3. Once a favorite was created, right click on it and click on "properties".
    4. Change the URL to the JavaScript code. (The link contains a script. Windows may display a Security Alert. If so, select Yes to continue.) Use the default name or rename it per your convenience. 
    5. Depending on your IE security settings, you may be asked to confirm that you trust the scripted window when you use it.
    6. Resolve a DOI name in a displayed page by highlighting it and clicking on the DOI name button in your Internet Explorer Favorites toolbar. If you click on the button without selecting a DOI name, a dialog box will prompt you to select a DOI name to resolve.


    Instructions for Firefox:
    1. Go to "View"/"Toolbars"/"Menu Bar" to display the Bookmarks Toolbar. 
    2. Enter any website and add it to Bookmarks.
    3. Once a bookmark was created, right click on it and click on "properties".
    4. Change the URL to the JavaScript code. (The link contains a script. Windows may display a Security Alert. If so, select Yes to continue.) Use the default name or rename it per your convenience.
    5. You can now resolve a DOI name by highlighting it and clicking on the item in the toolbar, or clicking on the button and pasting the DOI name into the text box provided.

     

    Instructions for Chrome:
    1. Go to Bookmarks Manager (Ctrl  + Shift + O)
    2. Right Click on an empty place
    3. Add page
    4. Name – "DOI Button", Address - <Copy The JavaScript code>

    Test the button by either clicking on it or pasting 10.1000/261 into the text box, or by highlighting the string 10.1000/261 and then clicking on the DOI name button. Either should redirect your web browser to the DOI System Information Kit.

     

    (All the information was taken from this link - http://www.doi.org/resolver_button/doibutton.html)


    • Article last edited: 22-February-2016