PubMed

About the PubMed Search Engine

PubMed comprises more than 30 million citations for biomedical literature from MEDLINE, life science journals, and online books.

The following specific PubMed type search engines are available as search engines in SmartHub:

  • NCBIPCCompound
  • NCBIPCPathwayReaction
  • NCBIPCSubstance
  • NCBIPMC
  • NCBIProtein

To set up PubMed as a search engine in your instance of SmartHub, use the topics below.

How to Set Up the PubMed Search Engine

Use the following steps to configure your PubMed search engine.

Add a New Search Engine to SmartHub

  1. navigate to your SmartHub Administration site: https://<SmartHubSite>:<port>/_admin.
  2. Click Add New Search Engine. The Search Engine page appears.
  3. Type: Select Experimental.
  4. Search Engine: Select your PubMed/PubChem search engine from the drop-down list. Refer to the list of search engines in the About section for more information.


  5. Name: Enter a name for your PubMed search engine.

  6. Maximum number of results to retrieve for a query: Enter a maximum number of results that you want to be retrieved for a query.

  7. (Search Engine) API Key:
    1. When you register a new PubMed account, you are given the option to create a key.
    2. Use that key value here.
  8. Supported result sources (optional):
    1. Add all the results sources where you want to display PubMed/PubChem content.
    2. Add the sources using the following syntax:
      1. Syntax<Result source ID>=pccompound;<Result source ID>=pccompound;
      2. Example: 221c396f-c525-4fe2-a210-c58c81ffeb99=pccompound;661cca31-31ba-4021-9581-9b809a1a7faa=pccompound

Configure Your SmartHub Results Page

  1. Your SmartHub Results page is controlled by the Results.html file, or a modified version of that file if you use a custom Results page.
  2. Reference the PubMed/PubChem search engine name and the Result source ID (added to the search engine set up as above)
    1. Example:

PubChem Settings

If you are setting up PubChem you must also add code to your HTML page's custom settings file, (such as a custom Results page).

The fastest and easiest way to do this is using the UI Builder.

For information about how to access the UI Builder as well as who can access it, see How to Use the UI Builder.

  1. From the SmartHub administration page, click UI Editor.

  2. Click Select a page from the top menu.

  3. Select the Results page

    1. BA Insight recommends you create your own custom page (and folder) to modify and leave the default files as templates. For example: MyResultsPage.html. For more information, see How to Create Custom Pages.

  4. Select Advanced mode from top right.

  5. Select Advanced settings edit.

  6. Scroll down to the PubChem custom settings section around line 225:

  7. Click the link See Default Settings in the top right corner. A new browser tab opens with the available custom settings.

  8. Scroll down or search for "PubChem," around line 1045. Enable PubChem and the ChemComposer:

    1. Add all PubChem code from and including line 1047 to your custom settings file open in the previous tab.
    2. Change the following settings from "false" to "true":
      1. Enabled
      2. ChemComposerEnabled


  9. Enable the PubChem Viewer.
    1. Scroll or navigate to the ContentContainers section in your custom settings file.

    2. Comment in the ContentContainers settings shown below, if necessary.

    3. Change the EnablePubChemViewer value from false to true. See below.

  10. Click Save changes.

  11. Click Preview<html_page>.html at the top of the code editor.

  12. Review/test your changes in the tab that opens. Make any modifications back in the code editor.

  13. Click Save changes when finished.

Example: PubChem Composer enabled in SmartHub:


Results Page Example

Once configured, your site Results page will resemble the screenshot below:

Security Trimming

Note: There is no security on PubMed content.

BA Insight SmartHub requires only an API key to access the content.