Friday, October 30, 2009

Fix Firefox Keyword Search for New PubMed

PubMed updated their main page the otherday, which is nice.



However there was a bug or problem with my Firefox keyword searches as they no longer worked. After a bit of digging I found a few handy to know URLs for use with pubmed/NCBI, such as:

PMID links
http://pubmed.com/19621437

which will open the page for the article "Generation of a conditional CREB Ser133Ala knockin mouse" PMID:19621437

Search URL
http://www.ncbi.nlm.nih.gov/pubmed?term=nur77+dundee
will search PubMed with the following term "nur77 dundee"

In any case, here is how I used the above URL to fix my Firefox keyword search bookmarks. This might be useful for other sites where right-clicking and creating a keyword bookmark doesn't work, as long as you know the correct search URL for the site in question.

You can edit the bookmark HTML by exporting your bookmarks, making changes to the file, then deleting all the bookmarks in firefox (except the toolbar ones) and re-importing the file. No doubt there is a way to directly edit the live copy of the file but I don't know where that is saved...

Find the entry for your PubMed keyword and remove the
post_data".."
part. Also update the URL to the following
http://www.ncbi.nlm.nih.gov/pubmed?term=%s

the end result will look something like this, if your keyword is set as "pub"
<DT><a href=" http://www.ncbi.nlm.nih.gov/pubmed?term=%s" SHORTCUTURL="pub" LAST_CHARSET="UTF-8">PubMed</a>

6 comments:

  1. samantha6:06 pm

    Found this post by Googling for a fix, thanks, it works. You don't need to do the HTML editing/reimporting, though. For those who find that intimidating, here's a point-and-click method:

    Go to "Organize Bookmarks..." under the Bookmarks menu in Firefox. This opens the bookmark library window.

    Find your old PubMed search bookmark and delete it. If you don't know where it is, try typing "pubmed" into the search box at the top of the bookmark library window.

    Create a new bookmark by clicking on the button that looks like a gear and choosing "New Bookmark..."

    Put in the following information:

    Name: PubMed Search (or whatever you want)
    Location: http://www.ncbi.nlm.nih.gov/pubmed?term=%s
    Keyword: pub (or whatever you want, I use pm)
    Description: whatever you want

    Click "Add," close the bookmark library window, and you're done.

    As you correctly noted, you can't just edit the "Location" field of the existing bookmark because of the post_data issue.

    ReplyDelete
  2. Cool thanks for the alternative method, this is a bit quicker than messing around with the HTML files..

    ReplyDelete
  3. Anonymous1:03 pm

    Thanks for the solution :)
    best wishes
    Marek

    ReplyDelete
  4. Anonymous11:56 am

    thank you, using keywords in firefox is definitely timesaving for those of us who have learned to use them..

    thanks !

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Terrific - thanks!

    Following Samantha's method I did not see 'the button that looks like a gear' but used 'New Bookmark...' from the Organize menu.

    ReplyDelete