cl-js is a Javascript library for working with Caltech Library content. Installation is usually a matter of unzipping the lastest release and copying the CL.js
into your web tree where you normally place you JavaScript files. Then you reference that location to include it in your web pages.
If you want to use the production version we use at Caltech Library you can use the following script element in your web page.
<script src="https://feeds.library.caltech.edu/scripts/CL.js"></script>
The latest releases can always be found at
https://github.com/caltechlibrary/dataset/releases/latest
In the following steps I’m assuming your web directory is located at /var/www/htdocs
and that you store your JavaScript files in /var/www/htdocs/scripts
and you have permission to read/write files in those directories.
Here are the command line steps I took for version v0.1.2.
curl -O https://github.com/caltechlibrary/cl-js/releases/download/v0.1.2/cl-js-v0.1.2-webbrowser.zip
unzip cl-js-v0.1.2-webbrowser.zip
cp scripts/*.js /var/www/htdocs/scripts/
From here I can include the JavaScript in the web pages that need it.
<script src="/scripts/CL.js"></script>