Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rdmpage/biostor-lite
Simple interface to BioStor
https://github.com/rdmpage/biostor-lite
Last synced: 6 days ago
JSON representation
Simple interface to BioStor
- Host: GitHub
- URL: https://github.com/rdmpage/biostor-lite
- Owner: rdmpage
- Created: 2019-10-13T12:23:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-07T21:09:17.000Z (6 months ago)
- Last Synced: 2024-08-08T00:13:03.744Z (6 months ago)
- Language: JavaScript
- Size: 8.69 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# biostor-lite
Simple interface to BioStor## DNS
Type | Name | Content
-- | -- | --
CNAME | biostor.org | DNS Target from Heroku
CNAME | www | DNS Target from Heroku## Elastic search
## IIIF
Based on @rogerhyam’s [IIIF proof of concept](https://github.com/rogerhyam/iiif_poc) I’ve implemented a IIIF viewer for BioStor content using [Universal Viewer](https://universalviewer.io) and the Internet Archive’s IIIF server.
To install Universal Viewer clone the respository, make sure you have node.js, bower, and grunt, then build the distribution:
1. Install the grunt command line interface (if you haven't already); on the command line, run:
npm install -g grunt-cli
1. Install bower (if you haven't already)
npm install -g bower
1. On the command line, go in to the `universalviewer` folder
1. Run
npm install
bower install
grunt sync1. Build the distribution build (i.e., files to add to your web server)
grunt build
1. Put the files in the ```dist``` folder on your web site (e.g., in a folder called ```uv```)
1. Add a tweaked version of Roger’s ```viewer.php``` script from [iiif_poc](https://github.com/rogerhyam/iiif_poc) and use the InternetArchive IIIF server as the source of the IIIF manifest, e.g. [https://iiif.archivelab.org/iiif/biostor-244961/manifest.json](https://iiif.archivelab.org/iiif/biostor-244961/manifest.json).
Note that IA’s IIIF server seems a bit flaky, so your mileage may vary.
## Managing items### Elasticsearch
Use [scroll search](https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html#scroll-search-results) to get list of all ids. Note that this search requires multiple Elasticsearch queries, only the first includes the specific index, all subsequent queries are to the server.
### Internet Archive
https://archive.org/advancedsearch.php?q=collection%3A%28biostor%29&fl%5B%5D=identifier&sort%5B%5D=&sort%5B%5D=&sort%5B%5D=&rows=300000&page=1&output=json&callback=callback&save=yes#raw will get JSON list of all BioStor items in IA.