Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

This repository contains the (tidied up) code from my entry for the Elsevier
SciVerse challenge at JISC Dev8D 2011.

Sam Adams

== SciVerse Search API ==

I (and other competitors in the SciVerse challenge) found that there is quite
a high barrier to getting started developing SciVerse apps, due in part to the
relatively complex API. After getting fed up fighting with the API I created a
much simpler client API, which hides the complexities of the SciVerse API,
leaving app developers free to focus on the content of their applications.

Source: api/sciverse_search.js 


var sciverse = new SciverseSearch();
sciverse.setSearchCompleteCallback(function() {
	for (var i = 0; i < sciverse.results.length; i++) {
		var entry = sciverse.results[i];
		// do something with entry


User prefs must be initialised by including the following in the
gadget configuration, and specifying the gadget's API Key.

	<ModulePrefs ... </ModulePrefs>

	<UserPref name="secureAuthtoken" datatype="hidden" />
	<UserPref name="contentApiKey" datatype="hidden" default_value="-- put api key here --" />


== Sample Apps ==

The gadgets/ directory contains a number of sample applications:

* gadgets/debugcontext.xml

	Adds a 'debug' panel that displays the current application context.
* gadgets/googlenews.xml

	Adds a news panel, that carries out a Google News search on the current
	ScienceDirect or Hub search terms, and displays the five most relevant

* gadgets/searchmetrics.xml

	Adds a search assistant panel that fetches the first 150 results for the
	current ScienceDirect of Hub search terms, and generates a plot of the
	number of papers published per year from that set, and identifies the
	ten authors with the most papers amongst the results.

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.