Name: inspire-citesummary-js
Owner: inspirehep
Description: INSPIRE HEP Citation Summary JS code
Created: 2016-10-17 16:49:28.0
Updated: 2016-10-26 15:13:32.0
Pushed: 2017-05-05 07:43:46.0
Homepage: null
Size: 65968
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A JavaScript module providing Cite Summary functionality for papers, institutions, authors, conferences, etc.
Examples are available in the example directory. Simply follow these instructions to see the examples live.
# from the base directory (where package.json is located)
npm install
gulp build
python -m SimpleHTTPServer # this will run a web server on localhost:8000 by default.
Then open your browser at http://localhost:8000 to see the examples for a single paper, authors, and an institution.
Include these resources in your HTML file.
ipt src="../node_modules/angular/angular.js"></script>
ipt src="../node_modules/jquery/dist/jquery.min.js"></script>
ipt src="../node_modules/crossfilter2/crossfilter.min.js"></script>
ipt src="../node_modules/d3/d3.min.js"></script>
ipt src="../dist/inspire-citesummary-js.js"></script>
k href="../node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>
k href="../node_modules/dc/dc.min.css" rel="stylesheet"/>
Then, you'll be able to invoke the cite summary directive with options indicating the api-endpoint you wish to use and the template you want.
te-summary api-endpoint="http://localhost:8000/examples/data/barbara.json"
template="../dist/templates/papers-and-citations.html">
ite-summary>