You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -34,11 +59,6 @@ See Specification Chapter: [http://iiif.io/api/presentation/2.1/#annotation-lis
34
59
}
35
60
```
36
61
37
-
## What are annotationsLists?
38
-
39
-
Annotations are simply lists of annotations grouped together.
40
-
They can be re-used by an application that wants to retrieve them.
41
-
42
62
That can also be linked to manifests so that a viewer can bring them together in one cohesive experience.
43
63
44
64
## Embedding an annotationsLists in a manifest
@@ -80,63 +100,90 @@ That can also be linked to manifests so that a viewer can bring them together in
80
100
81
101
What is an annotation store? An annotation store is just a database designed to ingest data structured according to the Open Annotations (or Web Annotations) specifications.
82
102
83
-
There are lots of them. You can make your own or use one that has been made by someone else.
103
+
There are lots of them annotation stores. You can make your own or use one that has been made by someone else.
84
104
85
105
## Local Storage as an annotation store
86
106
87
-
Because an annotation store is nothing other than place to store raw data
107
+
Because an annotation store is nothing other than place to store raw data,
88
108
even your browser's local storage can function as an annotation store.
89
109
90
-
### Activity
91
-
92
-
Turning on annotations in Mirador
93
-
94
-
* Open the index.html page of a mirador instance.
95
-
96
-
* Add the follow key value pair to the configuration of options of your mirador instance.
110
+
### Activity: Configuring and Running Mirador
111
+
112
+
To begin working with annotations, we're going to start going a little bit deeper the image viewer. We're going to begin look at how to download Mirador and configure your personal instance of Mirador so that it supports advanced features, like annotations.
113
+
114
+
1. Download the Mirador Zip File to your Desktop [https://github.com/ProjectMirador/mirador/releases](https://github.com/ProjectMirador/mirador/releases)
115
+
* Or download directly from here [https://github.com/ProjectMirador/mirador/releases/download/v2.6.0/build.zip](https://github.com/ProjectMirador/mirador/releases/download/v2.6.0/build.zip)
116
+
1. Unzip the Mirador Package. It will probably be a folder called "build".
117
+
1. Change the name of the folder to "Mirador"
118
+
*`$ cd ~/Desktop`
119
+
*`$ mv build Mirador`
120
+
1. Now open the Mirador Directory in Atom.
121
+
1. Open the file called `example.html`
122
+
* The example.html provides a basic example of a html that runs the Mirador applications.
123
+
* Line 19 loads in the core application
124
+
* Line 23 begins the configuration of this mirador instance
125
+
* For example lines 27-71 indicate the manifests that Mirador should load with on default
126
+
* With respect to annotations, lines 73-76 are the subject of our current interest.
127
+
* The proper `annotationEndpoint` tells Mirador where it should save annotations.
128
+
1. Double check to make sure your instance of Mirador has the following configuration at lines 73-76
* A module then has to be build (the LocalStorageEndpoint) using distinct set of functions that mirador knows how to call [See https://github.com/ProjectMirador/mirador/blob/develop/js/src/annotations/localStorageEndpoint.js](https://github.com/ProjectMirador/mirador/blob/develop/js/src/annotations/localStorageEndpoint.js).
130
+
* Note: A module then has to be build (the LocalStorageEndpoint) using distinct set of functions that mirador knows how to call [See https://github.com/ProjectMirador/mirador/blob/develop/js/src/annotations/localStorageEndpoint.js](https://github.com/ProjectMirador/mirador/blob/develop/js/src/annotations/localStorageEndpoint.js).
99
131
* This module includes functions like search, deleteAnnotation, updateAnnotation, createAnnotation, getAnnotationList, etc.
100
132
* Each annotation server might have different ways of deleting, updating, creating an annotation thus mirador needs this extra module to know what kind of action to perform.
101
-
* Now that the localstorage module is turned on, go into Mirador and makes some annotations.
102
-
* After you've made some annotations, view them in local Storage
133
+
1. Now that the localstorage module is configured, open Mirador in your browser
134
+
* In your Mirador directory run `$ http-server` and then navigate to http://localhost:8080/example.html
135
+
* Or in your browser, open the example file directly, Files->OpenFile-> locate the example.html file
136
+
1. Tell Mirador you want to see Annotations by click the "comment bubble" near the top left corner.
137
+
1. Make some annotations
138
+
1. Now export your annotations from your browsers local storage.
103
139
* Open the developer tools in the Chrome Browser
104
140
* Go to "Application"
105
141
* View "Local Storage" in the left hand column.
106
-
* Copying the information from you browsers local storage is the most primitive way of *Exporting* your annotations.
142
+
1. Copy the information from you browsers local storage and past it in Atom.
143
+
* This is the most primitive way of *Exporting* your annotations.
107
144
108
145
### Questions and Reflections
109
146
110
147
* What are some of the limitations of using your local storage as a store?
111
148
* What kind of store/database will allow us to overcome those limitations?
112
149
113
-
## Setting up a Remote Local Storage
150
+
## Configuring Mirador to Use a Remote Annotation Store
114
151
115
-
There are several kinds of annotations stores that can be used.
152
+
There are several kinds of remote annotations stores that can be used. We're going to use a Rails based annotation store called "Annotot" developed by Jack Reed.
116
153
117
154
### Activity
118
155
156
+
1. Update the mirador annotation endpoint configuration to following:
157
+
```json
119
158
120
-
* Download the Rails Annotation Server
121
-
* Download from github (git clone ...)
122
-
123
-
* Run your rails server
124
-
* either with `rails server`
125
-
*`docker compose up` or `docker run rails annotation server`
126
-
* Add the annotot module to mirador
127
-
* Rebuild mirador
128
-
* Update the mirador annotation endpoint configuration
129
-
* "annotationEndpoint": {
130
-
"name": 'Annotot',
131
-
"module": 'AnnototEndpoint',
132
-
"options": {
133
-
"endpoint": "http://localhost:3000/annotations"
134
-
}
135
-
},
136
-
* Now make some annotations in mirador
137
-
* Now view those same annotations apart from mirador at http://localhost:3000/annotations/lists?uri=<cavasid>
138
-
* Now you've exported your annotations and free to use them anywhere else.
139
-
* So let's use them somewhere else
159
+
"annotationEndpoint": {
160
+
"name": "Annotot",
161
+
"module": "AnnototEndpoint",
162
+
"options": {
163
+
"endpoint": "http://ras.scta.info/annotations"
164
+
}
165
+
}
166
+
```
167
+
1. Since this annotation store works differently than localstorage, we can expect that Mirador out of the box knows how to talk to it. So we have to provide Mirador with API hook, just as we saw above was supplied for local storage.
* or directly from here [https://raw.githubusercontent.com/mejackreed/annotot/master/app/assets/javascripts/annotot/annotot_endpoint.js](https://raw.githubusercontent.com/mejackreed/annotot/master/app/assets/javascripts/annotot/annotot_endpoint.js)
171
+
1. Save the file in your Mirador Directory
172
+
1. Import the file into your example.html file
173
+
* add `<script src="annotot_endpoint.js"></script>` below `<script src="mirador/mirador.min.js"></script>` (this should be found around line 19)
174
+
1. Refresh Mirador
175
+
1. Now make some annotations in mirador.
176
+
* Because we are all using the same remote server, we should be able to see each others annotations. Let's try it.
177
+
1. Open the the following manifest with a picture of our class.
178
+
1. Annotate yourself in the image.
179
+
1. Navigate away and then back to the image to refresh the annotations. As other make annotations, you should see their annotations as well.
180
+
181
+
182
+
<!-- ## Reusing your annotations from an annotation store
183
+
184
+
1. Now view those same annotations apart from mirador at http://ras.scta.info/annotations/lists?uri=<cavasid>
185
+
1. Now you've exported your annotations and free to use them anywhere else.
186
+
1. So let's use them somewhere else
140
187
* Go to back to your custom project and use jquery to make a request for those annotations
141
188
and display them on your page like so:
142
189
@@ -146,4 +193,4 @@ There are several kinds of annotations stores that can be used.
Copy file name to clipboardExpand all lines: iiif-5-day-workshop/day-three/collections.md
+22-18Lines changed: 22 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,33 +2,37 @@
2
2
3
3
## Description
4
4
5
-
#### Collection Tree Navigator for Mirador
5
+
Collections are away to organize manifests into groups, allow us the ability to share groups of manifest with a single URL.
6
6
7
-
This feature came about to address the need of showing objects in nested collections to ease navigation and avoid server slow-down. Collection-level manifests are often very large and can contain many sub-collections within them. As such, it became important for users to navigate through collections easily and without losing context.
8
7
9
-
See the code for Collection Tree [here](https://github.com/utlib/mirador/tree/develop_collection_tree_lazy)
8
+
## Collection Tree Navigator for Mirador
10
9
11
-
Allows users to:
10
+
The collection tree navigator for Mirador came about to address the need of showing objects in nested collections to ease navigation and avoid server slow-down. Collection-level manifests are often very large and can contain many sub-collections within them. As such, it became important for users to navigate through collections easily and without losing context.
11
+
12
+
The aeature allows users to:
12
13
13
14
- View entire collections with sub-collections in a tree structure on manifest selection panel
14
15
- Easily navigate across collections
15
16
16
-
Demo
17
-
18
-
You can view Mirador advanced features [here](http://projectmirador.org/demo/advanced_features.html)
19
-
20
17
21
18
## Activity
22
19
23
-
Let's create your own collection
20
+
Let's create your and serve your own collection
24
21
25
-
* Find at least five manifests and organize them into a collection, following the IIIF guidelines
22
+
1. Find at least five manifests and organize them into a collection, following the IIIF guidelines
0 commit comments