-
Notifications
You must be signed in to change notification settings - Fork 11
/
routes.ini
212 lines (179 loc) · 8.93 KB
/
routes.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
[routes]
;-: Reverse root URI
iiifitems_root.route = ""
; ===== IIIF ROUTES =====
;GET: collection.json for top-level
iiifitems_top_collection.route = "oa/top.json"
iiifitems_top_collection.defaults.module = "iiif-items"
iiifitems_top_collection.defaults.controller = "collections"
iiifitems_top_collection.defaults.action = "top"
iiifitems_top_collection.reverse = "oa/top.json"
;-: Reverse route URI (OA)
iiifitems_oa_uri.route = "oa/:things/:id/:typeext"
iiifitems_oa_uri.reqs.things = "(collections|items|files|exhibit_page_blocks)"
iiifitems_oa_uri.reqs.id = "(\d+)"
iiifitems_oa_uri.reqs.typeext = "(collection|manifest|sequence|canvas|anno|range|layer|annolist).json"
iiifitems_oa_uri.map.1 = "things"
iiifitems_oa_uri.map.2 = "id"
iiifitems_oa_uri.map.3 = "typeext"
iiifitems_oa_uri.reverse = "oa/%s/%d/%s"
;GET: annolist.json for items (OA)
iiifitems_annolist.route = "oa/items/:id/annolist.json"
iiifitems_annolist.defaults.module = "iiif-items"
iiifitems_annolist.defaults.controller = "annotation"
iiifitems_annolist.defaults.action = "list"
iiifitems_annolist.reqs.id = "(\d+)"
iiifitems_annolist.reverse = "oa/items/:id/annolist.json"
;GET: manifest.json for things (OA)
iiifitems_manifest.route = "oa/:things/:id/manifest.json"
iiifitems_manifest.defaults.module = "iiif-items"
iiifitems_manifest.defaults.controller = "manifest"
iiifitems_manifest.defaults.action = "manifest"
iiifitems_manifest.reqs.things = "(collections|items|files|exhibit_page_blocks)"
iiifitems_manifest.reqs.id = "(\d+)"
iiifitems_manifest.reverse = "oa/:things/:id/manifest.json"
;GET: collection.json for collections (OA)
iiifitems_collection.route = "oa/collections/:id/collection.json"
iiifitems_collection.defaults.module = "iiif-items"
iiifitems_collection.defaults.controller = "collections"
iiifitems_collection.defaults.action = "collection"
iiifitems_collection.reqs.id = "(\d+)"
iiifitems_collection.reverse = "oa/collections/:id/collection.json"
;GET: search for manifests and items (OA)
iiifitems_search.route = "oa/:things/:id/search"
iiifitems_search.defaults.module = "iiif-items"
iiifitems_search.defaults.controller = "search"
iiifitems_search.defaults.action = "search"
iiifitems_search.reqs.things = "(collections|items)"
iiifitems_search.reverse = "oa/:things/:id/search"
; ===== Accessory pages =====
;POST: Repair item
iiifitems_repair_item.route = "iiif-items/items/:id/repair"
iiifitems_repair_item.defaults.module = "iiif-items"
iiifitems_repair_item.defaults.controller = "import"
iiifitems_repair_item.defaults.action = "repair-item"
iiifitems_repair_item.reqs.id = "(\d+)"
iiifitems_repair_item.reverse = "iiif-items/items/:id/repair"
;GET: Collection member view
iiifitems_collection_members.route = "collections/:id/members"
iiifitems_collection_members.defaults.module = "iiif-items"
iiifitems_collection_members.defaults.controller = "collections"
iiifitems_collection_members.defaults.action = "members"
iiifitems_collection_members.reqs.id = "(\d+)"
iiifitems_collection_members.reverse = "collections/:id/members"
;GET: Collection explorer player (embedded)
iiifitems_collection_explorer.route = "collections/:id/explorer"
iiifitems_collection_explorer.defaults.module = "iiif-items"
iiifitems_collection_explorer.defaults.controller = "collections"
iiifitems_collection_explorer.defaults.action = "explorer"
iiifitems_collection_explorer.reqs.id = "(\d+)"
iiifitems_collection_explorer.reverse = "collections/:id/explorer"
;GET: Collection tree viewer
iiifitems_collection_tree.route = "iiif-items/tree"
iiifitems_collection_tree.defaults.module = "iiif-items"
iiifitems_collection_tree.defaults.controller = "collections"
iiifitems_collection_tree.defaults.action = "tree"
iiifitems_collection_tree.reverse = "iiif-items/tree"
;GET: Collection tree viewer lazy-loading AJAX
iiifitems_collection_tree_ajax.route = "iiif-items/collection/:id/tree-ajax"
iiifitems_collection_tree_ajax.defaults.module = "iiif-items"
iiifitems_collection_tree_ajax.defaults.controller = "collections"
iiifitems_collection_tree_ajax.defaults.action = "tree-ajax"
iiifitems_collection_tree_ajax.reverse = "iiif-items/collection/:id/tree-ajax"
; ===== Jobs =====
;GET: Import form
iiifItemsImport.route = "iiif-items/import"
iiifItemsImport.defaults.module = "iiif-items"
iiifItemsImport.defaults.controller = "import"
iiifItemsImport.defaults.action = "form"
;GET: Status panel
iiifItemsStatus.route = "iiif-items/status"
iiifItemsStatus.defaults.module = "iiif-items"
iiifItemsStatus.defaults.controller = "import"
iiifItemsStatus.defaults.action = "status"
;GET: Maintenance
iiifItemsMaintenance.route = "iiif-items/maintenance"
iiifItemsMaintenance.defaults.module = "iiif-items"
iiifItemsMaintenance.defaults.controller = "import"
iiifItemsMaintenance.defaults.action = "maintenance"
;POST: Clean cache
iiifItemsCleanCache.route = "iiif-items/clean-cache"
iiifItemsCleanCache.defaults.module = "iiif-items"
iiifItemsCleanCache.defaults.controller = "import"
iiifItemsCleanCache.defaults.action = "clean-cache"
;GET: Status update JSON
iiifItemsStatusUpdate.route = "iiif-items/status-update"
iiifItemsStatusUpdate.defaults.module = "iiif-items"
iiifItemsStatusUpdate.defaults.controller = "import"
iiifItemsStatusUpdate.defaults.action = "status-update"
; ===== Mirador Players =====
;GET: Embedded player for individual things
iiifitems_mirador.route = ":things/mirador/:id"
iiifitems_mirador.defaults.module = "iiif-items"
iiifitems_mirador.defaults.controller = "mirador"
iiifitems_mirador.defaults.action = "viewer"
iiifitems_mirador.reqs.things = "(collections|items|files|exhibit_page_blocks)"
iiifitems_mirador.reqs.id = "(\d+)"
iiifitems_mirador.reverse = ":things/mirador/:id"
;GET: Multi-item embedded player for exhibits and other uses
iiifitems_exhibit_mirador.route = "iiif-items/multiviewer"
iiifitems_exhibit_mirador.defaults.module = "iiif-items"
iiifitems_exhibit_mirador.defaults.controller = "mirador"
iiifitems_exhibit_mirador.defaults.action = "multiviewer"
iiifitems_exhibit_mirador.reverse = "iiif-items/multiviewer"
;GET: Embedded player on Neatline (simple single view)
iiifitems_neatline_mirador.route = "iiif-items/nlmirador/:id"
iiifitems_neatline_mirador.defaults.module = "iiif-items"
iiifitems_neatline_mirador.defaults.controller = "mirador"
iiifitems_neatline_mirador.defaults.action = "neatline"
iiifitems_neatline_mirador.reqs.id = "(\d+)"
iiifitems_neatline_mirador.reverse = "iiif-items/nlmirador/:id"
; ===== Mirador Annotator =====
;GET: Wrapper page for annotator
iiifitems_annotate.route = ":things/:id/annotate"
iiifitems_annotate.defaults.module = "iiif-items"
iiifitems_annotate.defaults.controller = "annotator"
iiifitems_annotate.defaults.action = "annotate"
iiifitems_annotate.reqs.things = "(collections|items)"
iiifitems_annotate.reqs.id = "(\d+)"
iiifitems_annotate.reverse = ":things/:id/annotate"
;GET: Annotator-enabled internal Mirador
iiifitems_annotator.route = ":things/:id/annotator"
iiifitems_annotator.defaults.module = "iiif-items"
iiifitems_annotator.defaults.controller = "mirador"
iiifitems_annotator.defaults.action = "annotator"
iiifitems_annotator.reqs.things = "(collections|items)"
iiifitems_annotator.reqs.id = "(\d+)"
iiifitems_annotator.reverse = ":things/:id/annotator"
;GET: Annotation endpoint - List
iiifitems_annotator_list.route = "iiif-items/annotator/:things/:id/index"
iiifitems_annotator_list.defaults.module = "iiif-items"
iiifitems_annotator_list.defaults.controller = "annotator"
iiifitems_annotator_list.defaults.action = "index"
iiifitems_annotator_list.reqs.things = "(collections|items)"
iiifitems_annotator_list.reqs.id = "(\d+)"
iiifitems_annotator_list.reverse = "iiif-items/annotator/:things/:id/index"
;POST: Annotation endpoint - Create
iiifitems_annotator_create.route = "iiif-items/annotator/:things/:id"
iiifitems_annotator_create.defaults.module = "iiif-items"
iiifitems_annotator_create.defaults.controller = "annotator"
iiifitems_annotator_create.defaults.action = "create"
iiifitems_annotator_create.reqs.things = "(collections|items)"
iiifitems_annotator_create.reqs.id = "(\d+)"
iiifitems_annotator_create.reverse = "iiif-items/annotator/:things/:id"
;PUT: Annotation endpoint - Update
iiifitems_annotator_update.route = "iiif-items/annotator/:things/:id/update"
iiifitems_annotator_update.defaults.module = "iiif-items"
iiifitems_annotator_update.defaults.controller = "annotator"
iiifitems_annotator_update.defaults.action = "update"
iiifitems_annotator_update.reqs.things = "(collections|items)"
iiifitems_annotator_update.reqs.id = "(\d+)"
iiifitems_annotator_update.reverse = "iiif-items/annotator/:things/:id/update"
;DELETE: Annotation endpoint - Delete
iiifitems_annotator_delete.route = "iiif-items/annotator/:things/:id/delete"
iiifitems_annotator_delete.defaults.module = "iiif-items"
iiifitems_annotator_delete.defaults.controller = "annotator"
iiifitems_annotator_delete.defaults.action = "delete"
iiifitems_annotator_delete.reqs.things = "(collections|items)"
iiifitems_annotator_delete.reqs.id = "(\d+)"
iiifitems_annotator_delete.reverse = "iiif-items/annotator/:things/:id/delete"