Skip to content

Latest commit

 

History

History
63 lines (40 loc) · 3.34 KB

File metadata and controls

63 lines (40 loc) · 3.34 KB
layout page
title 1. Select a Manifest
manifests
heresies_01
heresies_02
heresies_03
heresies_04
heresies_05
heresies_06
heresies_07
heresies_08
heresies_09
heresies_10
heresies_11
heresies_12
heresies_13
heresies_14
heresies_15
heresies_16
heresies_17
heresies_18
heresies_19
heresies_20
heresies_21
heresies_22
heresies_23
heresies_24
heresies_25
heresies_26
heresies_27
loaded_manifest heresies_01
<script src="https://use.fontawesome.com/884e80fbb8.js"></script>

Sample pre-loaded annotations can be viewed by toggling the button on the top left of the viewer.

{% include iiif_presentation.html %}

Switch between objects by clicking in the top left corner, followed by Replace Object .

2. Add Annotations



Make sure you are on Image View then toggle the Annotation panel.

Add one or more annotations to one or more pages. Then click the 'view cached annotation JSON' button below.

*Note: This will only include new annotations added in the browser.


{% include annotation_to_json.html %}

3. Store Annotations



<iframe width="100%" height="500" src="https://www.youtube-nocookie.com/embed/nHbsm8T1BnI?rel=0&showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

1. Make sure you a running a modern version of Ruby (v2 or later) and have Jekyll installed.

2. Clone the demo site repository onto your local machine and open it in a text editor like Atom.

3. Serve the site locally by moving into the site directory and running $ bundle install && bundle exec jekyll serve

4. Add some new annotations by following [the instructions above]({{ site.baseurl }}/#2).

5. Continue to add or delete annotations. When you are ready, click 'view cached annotation JSON' again then download the data for each canvas.

6. Clear the cached annotations from your browser storage. (In Chrome, right click > Inspect > Application > Clear Storage > Clear site data). Your annotations will be gone at this point.

7. Stop the Jekyll serve command. (CTRL-C on Mac)

8. Drag the downloaded JSON files into correct folder within the annotation annotation directory of the demo site repository. (Either bnf640 or haemisphaerium. Do not put them into any subfolders.)

8a. Run jekyll b to populate the _site directory (which is needed before the next step can run.

9. Run $ bundle exec rake. This will store your annotations in subfolders and create a copy of the IIIF manifest that will reference them.

10. Serve the site again with $ bundle exec jekyll serve. Your annotations will be back and permanent!

11. Want to add more annotations? Follow the same process and drag new files into the annotations folder. This will not overwrite any existing annotation data.