Bridging the gap from Wikipedia to scholarly resources:a simple JavaScript search tool<br />Barbara ArnettWeb Services Lib...
Project History:<br />Elsevier 2010 API app challenge (for creative use of the ScienceDirect open content API)<br />Firefo...
Inspiration: Bit.ly bookmarklet<br />
Install page<br />
Bookmarklet in browser<br />
Search prompt<br />
Search results<br />
Bookmarklet<br />Bookmarklet = Bookmark + Applet<br />In this case, JavaScript executed instead of a URL<br />Works on Fir...
JavaScript code in bookmarklet<br />javascript:(function(){document.body.appendChild(document.createElement('script')).src...
 Parts of the Bookmarklet<br />1 – Google Analytics tracking<br />2 – Prompt box for user to edit search terms <br />– use...
javascript that is executed in http://www.stevens.edu/library/js/search.js--<br />{<br />// *****************   Google ana...
More info:<br />Contact:<br />Barbara Arnett: barnett@stevens.edu<br />Valerie Forrestal: valerie.forrestal@stevens.edu<br...
Upcoming SlideShare
Loading in...5
×

Bridging the Gap from Wikipedia to Scholarly Resources

938

Published on

VALE Bookmarklet Presentation

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
938
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Bridging the Gap from Wikipedia to Scholarly Resources

  1. 1. Bridging the gap from Wikipedia to scholarly resources:a simple JavaScript search tool<br />Barbara ArnettWeb Services Librarian<br />Valerie ForrestalCommunications & New Media Strategies Librarian<br />Stevens Institute of Technology<br />
  2. 2. Project History:<br />Elsevier 2010 API app challenge (for creative use of the ScienceDirect open content API)<br />Firefox add-on so researchers can search ScienceDirect from anywhere on the web, without going through the library’s website/ScienceDirect interface<br />Added functionality: auto-populate search box to encourage Wikipedia/Google users to expand their research to library resources<br />Issues: <br />compatibility with other browsers <br />search limited to ScienceDirect content<br />aversion to add-ons due to Firefox memory-hogging<br />managing code updates<br />Solution: Cross-browser compatible JS bookmarklet <br /> (inspired by bit.ly, etc) + Ebsco Discovery Service<br />
  3. 3. Inspiration: Bit.ly bookmarklet<br />
  4. 4. Install page<br />
  5. 5. Bookmarklet in browser<br />
  6. 6. Search prompt<br />
  7. 7. Search results<br />
  8. 8. Bookmarklet<br />Bookmarklet = Bookmark + Applet<br />In this case, JavaScript executed instead of a URL<br />Works on Firefox, Internet Explorer, Safari, Chrome<br />
  9. 9. JavaScript code in bookmarklet<br />javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://www.stevens.edu/library/js/search.js';})();<br />this executes JavaScript in a file that resides on our web server<br />
  10. 10. Parts of the Bookmarklet<br />1 – Google Analytics tracking<br />2 – Prompt box for user to edit search terms <br />– uses the Page Title for initial search terms<br />3 – Execute search in federated search<br />
  11. 11. javascript that is executed in http://www.stevens.edu/library/js/search.js--<br />{<br />// ***************** Google analytics code BEGIN *******************//<br /> var _gaq = _gaq || [];<br /> _gaq.push(['_setAccount', 'UA-18930XXX-1']);<br /> _gaq.push(['_trackPageview']);<br /> (function() {<br /> var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;<br /> ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google- analytics.com/ga.js';<br /> var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);<br /> })();<br />// ***************** Google analytics code END *******************// <br /> var Ti=document.title.replace('- Wikipedia, the free encyclopedia','');<br /> void(Ti=prompt('Edit search terms:',Ti));<br /> if(Ti)<br /> { <br /> 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);<br /> window.location.href=searchString;<br /> }<br />}<br />
  12. 12. More info:<br />Contact:<br />Barbara Arnett: barnett@stevens.edu<br />Valerie Forrestal: valerie.forrestal@stevens.edu<br />Details:<br />Presentation available at: http://slidesha.re/VALEbookmarklet<br />Server-side code available at: http://www.stevens.edu/library/js/search.js<br />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×