Bridging the gap from Wikipedia to scholarly resources: a simple JavaScript search tool
-
Upload
valerie-forrestal -
Category
Documents
-
view
1.625 -
download
0
description
Transcript of Bridging the gap from Wikipedia to scholarly resources: a simple JavaScript search tool
![Page 1: Bridging the gap from Wikipedia to scholarly resources: a simple JavaScript search tool](https://reader036.fdocuments.net/reader036/viewer/2022070304/54bbaa434a795939368b4585/html5/thumbnails/1.jpg)
BARBARA ARNETTWEB SERVICES LIBRARIAN
VALERIE FORRESTALCOMMUNICATIONS & NEW MEDIA STRATEGIES
LIBRARIAN
STEVENS INSTITUTE OF TECHNOLOGY
Bridging the gap from Wikipedia to scholarly resources:
a simple JavaScript search tool
![Page 2: Bridging the gap from Wikipedia to scholarly resources: a simple JavaScript search tool](https://reader036.fdocuments.net/reader036/viewer/2022070304/54bbaa434a795939368b4585/html5/thumbnails/2.jpg)
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
![Page 3: Bridging the gap from Wikipedia to scholarly resources: a simple JavaScript search tool](https://reader036.fdocuments.net/reader036/viewer/2022070304/54bbaa434a795939368b4585/html5/thumbnails/3.jpg)
Inspiration: Bit.ly bookmarklet
![Page 4: Bridging the gap from Wikipedia to scholarly resources: a simple JavaScript search tool](https://reader036.fdocuments.net/reader036/viewer/2022070304/54bbaa434a795939368b4585/html5/thumbnails/4.jpg)
Install page
![Page 5: Bridging the gap from Wikipedia to scholarly resources: a simple JavaScript search tool](https://reader036.fdocuments.net/reader036/viewer/2022070304/54bbaa434a795939368b4585/html5/thumbnails/5.jpg)
Bookmarklet in browser
![Page 6: Bridging the gap from Wikipedia to scholarly resources: a simple JavaScript search tool](https://reader036.fdocuments.net/reader036/viewer/2022070304/54bbaa434a795939368b4585/html5/thumbnails/6.jpg)
Search prompt
![Page 7: Bridging the gap from Wikipedia to scholarly resources: a simple JavaScript search tool](https://reader036.fdocuments.net/reader036/viewer/2022070304/54bbaa434a795939368b4585/html5/thumbnails/7.jpg)
Search results
![Page 8: Bridging the gap from Wikipedia to scholarly resources: a simple JavaScript search tool](https://reader036.fdocuments.net/reader036/viewer/2022070304/54bbaa434a795939368b4585/html5/thumbnails/8.jpg)
JavaScript code
Code, part 1: javascript that sits in bookmarklet--
javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://www.stevens.edu/library/js/search.js';})();
![Page 9: Bridging the gap from Wikipedia to scholarly resources: a simple JavaScript search tool](https://reader036.fdocuments.net/reader036/viewer/2022070304/54bbaa434a795939368b4585/html5/thumbnails/9.jpg)
Code, part 2: 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;}
}
![Page 10: Bridging the gap from Wikipedia to scholarly resources: a simple JavaScript search tool](https://reader036.fdocuments.net/reader036/viewer/2022070304/54bbaa434a795939368b4585/html5/thumbnails/10.jpg)
More info:
Contact:Barbara Arnett: [email protected] Forrestal: [email protected]
Details:Presentation available at: http://slidesha.re/LibSearch Server-side code available at:
http://www.stevens.edu/library/js/search.js