1 / 12

Bridging the gap from Wikipedia to scholarly resources: a simple JavaScript search tool

A JavaScript bookmarklet tool that allows researchers to search scholarly resources from anywhere on the web, bridging the gap between Wikipedia and library resources. Compatible with multiple browsers.

bgamble
Download Presentation

Bridging the gap from Wikipedia to scholarly resources: a simple JavaScript search tool

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Bridging the gap from Wikipedia to scholarly resources:a simple JavaScript search tool Barbara ArnettWeb Services Librarian Valerie ForrestalCommunications & New Media Strategies Librarian Stevens Institute of Technology

  2. Project History: • Elsevier 2010 API app challenge (for creative use of the ScienceDirect open content API) • Firefox add-on so researchers can search ScienceDirect from anywhere on the web, without going through the library’s website/ScienceDirect interface • Added functionality: auto-populate search box to encourage Wikipedia/Google users to expand their research to library resources • Issues: • compatibility with other browsers • search limited to ScienceDirect content • aversion to add-ons due to Firefox memory-hogging • managing code updates • Solution: Cross-browser compatible JS bookmarklet (inspired by bit.ly, etc) + Ebsco Discovery Service

  3. Inspiration: Bit.ly bookmarklet

  4. Install page

  5. Bookmarklet in browser

  6. Search prompt

  7. Search results

  8. Bookmarklet • Bookmarklet = Bookmark + Applet • In this case, JavaScript executed instead of a URL • Works on Firefox, Internet Explorer, Safari, Chrome

  9. JavaScript code in bookmarklet javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://www.stevens.edu/library/js/search.js';})(); this executes JavaScript in a file that resides on our web server

  10. Parts of the Bookmarklet • 1 – Google Analytics tracking • 2 – Prompt box for user to edit search terms • – uses the Page Title for initial search terms • 3 – Execute search in federated search

  11. javascript that is executed in http://www.stevens.edu/library/js/search.js-- { // ***************** Google analytics code BEGIN *******************// var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-18930XXX-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google- analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); // ***************** Google analytics code END *******************// var Ti=document.title.replace('- Wikipedia, the free encyclopedia',''); void(Ti=prompt('Edit search terms:',Ti)); if(Ti) { var searchString='http://ezproxy.stevens.edu/login?url=http://search.ebscohost.com/login.aspx?direct=true&site=eds-live&scope=site&type=0&cli0=FT1&clv0=Y&bquery='+(Ti); window.location.href=searchString; } }

  12. More info: Contact: • Barbara Arnett: barnett@stevens.edu • Valerie Forrestal: valerie.forrestal@stevens.edu Details: • Presentation available at: http://slidesha.re/valebookmarklet • Server-side code available at: http://www.stevens.edu/library/js/search.js

More Related