-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsitemap.xmap
485 lines (409 loc) · 22.9 KB
/
sitemap.xmap
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:components>
<map:generators default="file">
<map:generator name="search" src="org.apache.cocoon.generation.SearchGenerator" />
</map:generators>
<map:transformers default="xslt"/>
<map:serializers default="xhtmlutf8">
<map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html" name="xhtmlutf8" pool-grow="2" pool-max="64" pool-min="2" src="org.apache.cocoon.serialization.XMLSerializer">
<doctype-public>-//W3C//DTD XHTML 1.0 Transitional//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</doctype-system>
<encoding>UTF-8</encoding>
<omit-xml-declaration>yes</omit-xml-declaration>
<indent>yes</indent>
</map:serializer>
<map:serializer logger="sitemap.serializer.text" mime-type="text/plain" name="textutf8" src="org.apache.cocoon.serialization.TextSerializer">
<encoding>UTF-8</encoding>
</map:serializer>
</map:serializers>
<map:selectors default="browser" />
<map:matchers default="wildcard"/>
<map:actions>
<map:action name="request-param-validation" src="edu.unl.cdrh.cocoon.acting.RequestParamValidationAction" />
<map:action name="image-param-validation" src="edu.unl.cdrh.cocoon.acting.cody.ImageParamValidationAction" />
</map:actions>
</map:components>
<map:pipelines>
<!--<map:component-configurations>
<global-variables>
<solr-url>http://solrserver.com:8080/solr/cody/select/?version=2.2&indent=on</solr-url>
<highlight-params>hl=on&hl.fl=text&hl.usePhraseHighlighter=true&hl.highlighMultiTerm=true&hl.snippets=4</highlight-params>
<facet-params>facet=true&facet.sort=lex&facet.method=enum&facet.mincount=1</facet-params>
</global-variables>
</map:component-configurations>
-->
<map:pipeline>
<!-- Static Pages -->
<!-- HOME -->
<map:match pattern="^(index.html)?$" type="regexp">
<map:generate src="structure/wfc.000.home.xml" />
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="home"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<!-- Personography -->
<map:match pattern="life/wfc.person.html">
<map:generate src="data_cody/source/tei/wfc.person.xml" />
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="life"/>
<map:parameter name="subCategory" value="Personography"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<!-- Encyclopedia -->
<map:match pattern="life/wfc.encyc.html">
<map:generate src="data_cody/source/tei/wfc.encyc.xml" />
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="life"/>
<map:parameter name="subCategory" value="Encyclopedia"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<!-- Popup pages (testing) -->
<!--<map:match pattern="popup/*/**/index.html">
<map:generate src="data_cody/source/tei/wfc.{1}.xml" />
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="popup"/>
<map:parameter name="subCategory" value="{1}/{2}"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>-->
<!-- TEI XML File display as HTML -->
<map:match pattern="*/wfc.*.html">
<map:generate src="data_cody/source/tei/wfc.{2}.xml" />
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="{1}"/>
<map:parameter name="pageid" value="{2}"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<!-- XML File display as XML -->
<map:match pattern="*/wfc.*.xml">
<map:read src="data_cody/source/tei/wfc.{2}.xml"/>
</map:match>
<!-- ??? -->
<map:match pattern="search/">
<map:redirect-to uri="index.html" />
</map:match>
<!-- Search results -->
<map:match pattern="search/result.html">
<map:generate src="data_cody/source/tei/wfc.person.xml" /><!-- Any file will do, all info coming from stylesheet -->
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="searchresults" />
<map:parameter name="use-request-parameters" value="true"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<!-- Category results (separated out to enable date sort)
Changed to pull search results from XSL uncoded SOLR url -KD -->
<map:match pattern="category/result.html">
<map:generate src="data_cody/source/tei/wfc.person.xml" /><!-- Any file will do, all info coming from stylesheet -->
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="category" />
<map:parameter name="use-request-parameters" value="true"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<!-- Category results (new)-->
<!-- On hold because I am unsure as of yet what to do with
sub categories with spaces in them. May have to handle on the
input side.-->
<!--<map:match pattern="*/**/">
<map:generate src="structure/wfc.000.{1}.xml" />
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="category"/>
<map:parameter name="subCategory" value="{1}"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<map:match pattern="*/**/index.html">
<map:generate src="structure/wfc.000.{1}.xml" />
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="category"/>
<map:parameter name="subCategory" value="{2}"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>-->
<!-- People search results (for personography) -->
<map:match pattern="search/people.html">
<map:generate src="data_cody/source/tei/wfc.person.xml" /><!-- Any file will do, all info coming from stylesheet -->
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="searchresults" />
<map:parameter name="searchtype" value="people" />
<map:parameter name="use-request-parameters" value="true"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<!-- Places search results -->
<map:match pattern="search/places.html">
<map:generate src="data_cody/source/tei/wfc.person.xml" /><!-- Any file will do, all info coming from stylesheet -->
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="searchresults" />
<map:parameter name="searchtype" value="places" />
<map:parameter name="use-request-parameters" value="true"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<!-- Encyclopedia search results -->
<!-- Same as the others for now, including in case we want to generalize later -->
<map:match pattern="search/encyc.html">
<map:generate src="data_cody/source/tei/wfc.person.xml" /><!-- Any file will do, all info coming from stylesheet -->
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="searchresults" />
<map:parameter name="searchtype" value="encyc" />
<map:parameter name="use-request-parameters" value="true"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<!-- Advanced search results -->
<map:match pattern="search/advanced.html">
<map:generate src="data_cody/source/tei/wfc.person.xml" /><!-- Any file will do, all info coming from stylesheet -->
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="searchresults" />
<map:parameter name="searchtype" value="advanced" />
<map:parameter name="use-request-parameters" value="true"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<!-- The solrURL in pate_templates.xsl template will need to be altered to handle advanced operators -->
<!--<map:match pattern="search/advanced.html">
<map:act type="request">
<map:parameter name="parameters" value="true" />
<map:parameter name="default.start" value="0" />
<map:parameter name="default.rows" value="10" />
<map:act type="request-param-validation">
<map:generate
src="{global:solr-url}&q=({url-encode:{request-param:q}}{people}{places}{author}{year}{category}{subCategory})&{start}&{rows}&{global:highlight-params}" />
</map:act>
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="searchresults" />
<map:parameter name="searchtype" value="advanced" />
<map:parameter name="use-request-parameters" value="false"/>
</map:transform>
</map:act>
<map:serialize type="html"/>
<!-\-map:serialize type="xml"/-\->
</map:match>-->
<!-- View Images -->
<map:match pattern="images/view/*/*">
<map:generate src="data_cody/source/vra/{2}.xml" />
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="use-request-parameters" value="true" />
<map:parameter name="pagetype" value="imagesView"/>
<map:parameter name="imageno" value="{2}"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<!-- View memorabilia as images (e.g. postcards) -->
<map:match pattern="memorabilia/view/*/*">
<map:generate src="data_cody/source/vra/{2}.xml" />
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="use-request-parameters" value="true" />
<map:parameter name="pagetype" value="imagesView"/>
<map:parameter name="imageno" value="{2}"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<!-- Image Search results -->
<map:match pattern="images/*/index.html">
<map:generate src="data_cody/source/tei/wfc.person.xml" /><!-- Any file will do, all info coming from stylesheet -->
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="subCategory" value="{1}"/>
<map:parameter name="pagetype" value="imagesGallery" />
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="start" value="0" />
<map:parameter name="rows" value="12" />
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<!-- Memorabilia as Image Search results (e.g. postcards) -->
<map:match pattern="memorabilia/*/index.html">
<map:generate src="data_cody/source/tei/wfc.person.xml" /><!-- Any file will do, all info coming from stylesheet -->
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="subCategory" value="{1}"/>
<map:parameter name="pagetype" value="imagesGallery" />
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="start" value="0" />
<map:parameter name="rows" value="12" />
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<!--
<map:match pattern="images/*/index.html">
<map:act type="request">
<map:parameter name="parameters" value="true" />
<map:parameter name="default.start" value="0" />
<map:parameter name="default.rows" value="12" />
<map:parameter name="default.subCategory" value="{1}" />
<map:generate
src="{global:solr-url}&q=*:*&fq=category:Images&fq=subCategory:"{subCategory}"&start={start}&rows={rows}&sort=dateSort+asc,titleMain+asc"/>
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="subCategory" value="{subCategory}"/>
<map:parameter name="pagetype" value="imagesGallery" />
<map:parameter name="use-request-parameters" value="false"/>
</map:transform>
</map:act>
<map:serialize type="html"/>
</map:match>-->
<!-- Static pages:
About, support, search
Texts, Images, Multimedia, Ephemera, Life,
Scholarship, Community, Reference tools-->
<map:match pattern="*/">
<map:generate src="structure/wfc.000.{1}.xml" />
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="{1}"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<map:match pattern="*/index.html">
<map:generate src="structure/wfc.000.{1}.xml" />
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="{1}"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<!-- Sub topics -->
<map:match pattern="topics/*">
<map:generate src="structure/wfc.000.topics.{1}.xml" />
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="topics"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<map:match pattern="topics/*/index.html">
<map:generate src="structure/wfc.000.topics.{1}.xml" />
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="topics"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<!-- Rends -->
<!-- this does not appear to be working anymore so I am commenting out -->
<!-- <map:match pattern="admin/rends/index.html">
<map:generate src="structure/wfc.000.rends.xml" />
<map:transform src="stylesheets/xslt/rends.xsl">
<map:parameter name="pagetype" value="rends"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match> -->
<!--<map:match pattern="admin/rends/**">
<map:generate
src="{global:solr-url}&q=(*:*)&rows=10000&fl=id,{1}&facet.field={1}&facet=true&facet.sort=lex&facet.method=enum&facet.missing=on&facet.limit=1000" />
<map:transform src="stylesheets/xslt/rends.xsl" />
<map:serialize type="xhtmlutf8" />
<!-\-<map:serialize type="xml" />-\->
</map:match>-->
<!-- End Rends -->
<map:match pattern="stylesheets/css/**">
<map:read src="stylesheets/css/{1}"/>
</map:match>
<map:match pattern="search/result.html">
<map:generate src="data_cody/source/tei/wfc.person.xml" /><!-- Any file will do, all info coming from stylesheet -->
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="searchresults" />
<map:parameter name="use-request-parameters" value="true"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
<!-- Converted this one to calling the solr search results from inside the stylesheet -KD -->
<map:match pattern="js/solr/*.json">
<map:generate src="data_cody/source/tei/wfc.person.xml" />
<map:transform src="stylesheets/xslt/solr2json-facets.xsl" >
<map:parameter name="category" value="{1}"/>
</map:transform>
<map:serialize type="textutf8" />
</map:match>
<!-- Not sure where the following two are used, commenting out for now. -KD -->
<!--<map:match pattern="js/solr/category/*.json">
<map:generate src="structure/wfc.person.xml" />
<map:transform src="stylesheets/xslt/solr2json-facets.xsl" >
<map:parameter name="category" value="{1}"/>
</map:transform>
<map:serialize type="text" />
</map:match>
<map:match pattern="js/solr/category/*.json">
<map:generate src="{global:solr-url}&indent=on&q=(*:*)&fq=category:{1}&rows=2000&fl=id" />
<map:transform src="stylesheets/xslt/solr2json.xsl">
<map:parameter name="category" value="{1}"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>-->
<map:match pattern="css/**">
<map:read src="css/{1}"/>
</map:match>
<map:match pattern="fonts/**">
<map:read src="fonts/{1}"/>
</map:match>
<map:match pattern="images/**">
<map:read src="images/{1}"/>
</map:match>
<map:match pattern="figures/**">
<map:read src="figures/{1}"/>
</map:match>
<map:match pattern="audio/**">
<map:read src="audio/{1}"/>
</map:match>
<map:match pattern="js/**">
<map:read src="js/{1}"/>
</map:match>
<map:match pattern="plugins/**">
<map:read src="plugins/{1}"/>
</map:match>
<map:match pattern="*/favicon.ico">
<map:read src="favicon.ico"/>
</map:match>
<map:match pattern="*/*/favicon.ico">
<map:read src="favicon.ico"/>
</map:match>
<map:match pattern="*/*/*/favicon.ico">
<map:read src="favicon.ico"/>
</map:match>
<map:match pattern="*/apple-touch-icon.png">
<map:read src="apple-touch-icon.png"/>
</map:match>
<map:match pattern="*/*/apple-touch-icon.png">
<map:read src="apple-touch-icon.png"/>
</map:match>
<map:match pattern="*/*/*/apple-touch-icon.png">
<map:read src="apple-touch-icon.png"/>
</map:match>
<!-- <map:match pattern="^(index.html)?$" type="regexp">
<map:generate src="structure/wfc.000.home.xml" />
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="home"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>-->
<map:match pattern="*">
<map:read src="{1}"/>
</map:match>
<map:match pattern="*favicon.ico">
<map:read src="favicon.ico"/>
</map:match>
<map:handle-errors type="404">
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="error"/>
</map:transform>
<map:serialize type="html" status-code="404"/>
</map:handle-errors>
<map:handle-errors type="500">
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="error"/>
</map:transform>
<map:serialize type="html" status-code="500"/>
</map:handle-errors>
<!-- XML File display as HTML (temporary for non wfc files) -->
<map:match pattern="*/*.html">
<map:generate src="data_cody/source/tei/{2}.xml" />
<map:transform src="stylesheets/xslt/tei.p5.xsl">
<map:parameter name="pagetype" value="{1}"/>
<map:parameter name="pageid" value="{2}"/>
</map:transform>
<map:serialize type="xhtmlutf8" />
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>