Repository navigation
Expand file tree
/
Copy pathhtml-stylesheet.xsl
More file actions
1048 lines (1002 loc) · 62.6 KB
/
Copy pathhtml-stylesheet.xsl
File metadata and controls
1048 lines (1002 loc) · 62.6 KB
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
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<xsl:stylesheet
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:t="http://www.tei-c.org/ns/1.0"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:x="http://www.w3.org/1999/xhtml"
xmlns:srophe="https://srophe.app"
xmlns:saxon="http://saxon.sf.net/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:local="http://syriaca.org/ns"
exclude-result-prefixes="xs t x saxon local" version="3.0">
<!-- ==================================================================
staticHTML.xsl is the analog conversion sheet in the code repo
Generate Static HTML pages of TEI Data
code by:
+ Winona Salesky (wsalesky@gmail.com)
funding provided by:
+ National Endowment for the Humanities (http://www.neh.gov). Any
views, findings, conclusions, or recommendations expressed in
this code do not necessarily reflect those of the National
Endowment for the Humanities.
================================================================== -->
<!-- =================================================================== -->
<!-- import component stylesheets for HTML page portions -->
<!-- =================================================================== -->
<xsl:import href="tei2html.xsl"/>
<xsl:import href="maps.xsl"/>
<!-- =================================================================== -->
<!-- set output for indented HTML -->
<!-- =================================================================== -->
<xsl:output name="html" encoding="UTF-8" method="xhtml" indent="no" omit-xml-declaration="yes"/>
<!--
Step 1:
create HTML page outline
include header
include nav for submodule
transform HTML
Add Footer
Add dynamic (javascript calls to other related items)
-->
<!-- =================================================================== -->
<!-- Parameters for tei2HTML -->
<!-- =================================================================== -->
<xsl:param name="applicationPath" select="'syriaca'"/>
<xsl:param name="staticSitePath" select="'syriaca'"/>
<xsl:param name="dataPath" select="'./data/'"/>
<!-- Example: generate new index.html page for places collection -->
<xsl:param name="convert" select="'false'"/>
<xsl:param name="outputFile" select="''"/>
<xsl:param name="outputCollection" select="''"/>
<!-- Generate new TEI page, run over any TEI.
<xsl:param name="outputFile" select="''"/>
<xsl:param name="outputCollection" select="''"/>
-->
<!-- Find repo-config to find collection style values and page stubs This can also point to the repo-config file in the root directory of the data repo-->
<xsl:variable name="configPath">
<xsl:choose>
<xsl:when test="$staticSitePath != ''">
<xsl:value-of select="concat($staticSitePath, '/siteGenerator/components/repo-config.xml')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'../components/repo-config.xml'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Get configuration file. -->
<xsl:variable name="config">
<xsl:if test="doc-available(xs:anyURI($configPath))">
<xsl:sequence select="document(xs:anyURI($configPath))"/>
</xsl:if>
</xsl:variable>
<!-- Not needed? -->
<xsl:variable name="nav-base" select="'/'"/>
<!-- Base URI for identifiers in app data -->
<xsl:variable name="base-uri">
<xsl:choose>
<xsl:when test="$config/descendant::*:base_uri">
<xsl:value-of select="$config/descendant::*:base_uri"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'http://syriaca.org'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Parameters passed from global.xqm (set in config.xml) default values if params are empty -->
<xsl:param name="data-root" select="$dataPath"/>
<xsl:param name="app-root" select="$applicationPath"/>
<!-- Hard coded values-->
<xsl:param name="normalization">NFKC</xsl:param>
<!-- Variables for building HTML from TEI records -->
<!-- Repository Title -->
<xsl:variable name="repository-title">
<xsl:choose>
<xsl:when test="$config/child::*">
<xsl:value-of select="$config/descendant::*:title[1]"/>
</xsl:when>
<xsl:otherwise>The Gaddel Application</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="collection-title">
<xsl:choose>
<xsl:when test="$config/child::*">
<xsl:choose>
<xsl:when test="$config/descendant::*:collection[@name=$collection]">
<xsl:value-of select="$config/descendant::*:collection[@name=$collection]/@title"/>
</xsl:when>
<xsl:when test="$config/descendant::*:collection[@title=$collection]">
<xsl:value-of select="$config/descendant::*:collection[@title=$collection]/@title"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$repository-title"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$repository-title"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Resource title -->
<xsl:variable name="resource-title">
<xsl:choose>
<xsl:when test="/descendant::t:text/t:body[descendant::*[@srophe:tags = '#syriaca-headword']]">
<xsl:apply-templates select="/descendant::t:text/t:body[descendant::*[@srophe:tags = '#syriaca-headword']][@xml:lang = 'en']/text()"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="/descendant-or-self::t:titleStmt/t:title[1]"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Resource id -->
<xsl:variable name="resource-path" select="substring-after(document-uri(.),':')"/>
<!-- Figure out if document is HTML or TEI -->
<xsl:template match="/">
<xsl:variable name="documentURI" select="document-uri(.)"/>
<!-- File type for conversion or creation -->
<xsl:variable name="fileType">
<xsl:choose>
<xsl:when test="$convert = 'false' and $outputFile != ''">HTML</xsl:when>
<xsl:when test="/html:div[@data-template-with]">HTML</xsl:when>
<xsl:when test="/t:TEI">TEI</xsl:when>
<xsl:when test="/rdf:RDF">RDF</xsl:when>
<xsl:otherwise>OTHER: <xsl:value-of select="name(root(.))"/></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Filename for new HTML file -->
<xsl:variable name="filename">
<xsl:choose>
<!-- For generating a new file using the templates defined in the components directory. -->
<xsl:when test="$convert = 'false' and $outputFile != ''">
<xsl:variable name="collectionPath">
<xsl:if test="$outputCollection != ''">
<xsl:value-of select="$config/descendant::*:collection[@name = $outputCollection]/@app-root"/>
</xsl:if>
</xsl:variable>
<xsl:choose>
<xsl:when test="$outputCollection != ''">
<xsl:value-of select="concat($config/descendant::*:collection[@name = $outputCollection]/@app-root,'',$outputFile)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat('/',$outputFile)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="replace(tokenize($documentURI,'/')[last()],'.xml','.html')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="path">
<xsl:choose>
<xsl:when test="$convert = 'false' and $outputFile != '' and $fileType = 'HTML'">
<path><xsl:value-of select="concat($staticSitePath,$filename)"/></path>
</xsl:when>
<xsl:when test="$fileType = 'HTML'">
<!--<path idno=""><xsl:value-of select="concat($staticSitePath,replace($resource-path,$applicationPath,''))"/></path>-->
<path><xsl:value-of select="concat($staticSitePath,$filename)"/></path>
</xsl:when>
<xsl:when test="$fileType = 'TEI'">
<xsl:variable name="idno" select="replace((descendant::t:idno[@type='URI' and (starts-with(., 'http://syriaca.org/person/') or starts-with(., 'http://syriaca.org/place/') or starts-with(., 'http://syriaca.org/work/') or starts-with(., 'http://syriaca.org/cbss/') or starts-with(., 'http://syriaca.org/manuscript/'))])[1], '/tei', '')"/>
<xsl:message>DEBUG: idno = <xsl:value-of select="$idno"/></xsl:message>
<!-- New: John of Ephesus alternate idno -->
<xsl:variable name="altIdno">
<xsl:choose>
<xsl:when test="descendant::t:idno[starts-with(., 'http://syriaca.org/johnofephesus/persons/')]">
<xsl:value-of select="descendant::t:idno[starts-with(., 'http://syriaca.org/johnofephesus/persons/')][1]"/>
</xsl:when>
<xsl:when test="descendant::t:idno[starts-with(., 'http://syriaca.org/johnofephesus/places/')]">
<xsl:value-of select="descendant::t:idno[starts-with(., 'http://syriaca.org/johnofephesus/places/')][1]"/>
</xsl:when>
<xsl:otherwise/>
</xsl:choose>
</xsl:variable>
<xsl:message>DEBUG: altidno = <xsl:value-of select="$altIdno"/></xsl:message>
<!-- Always emit standard path -->
<path idno="{$idno}">
<xsl:value-of select="concat(replace($idno, $base-uri, concat($staticSitePath, 'data')), '.html')"/>
</path>
<!-- Emit alternate path for JoE pages if exists -->
<xsl:if test="string-length($altIdno) > 0">
<path idno="{$altIdno}">
<xsl:value-of select="concat(replace($altIdno, $base-uri, concat($staticSitePath, 'data')), '.html')"/>
</path>
</xsl:if>
</xsl:when>
<xsl:when test="$fileType = 'RDF'">
<!-- Output a page for each rdf:Description (with http://syriaca.org/taxonomy/) -->
<xsl:for-each select="//rdf:Description[starts-with(@rdf:about,'http://syriaca.org/taxonomy/')]">
<xsl:if test="replace(@rdf:about,'http://syriaca.org/taxonomy/','') != ''">
<xsl:variable name="idno" select="@rdf:about"/>
<xsl:choose>
<xsl:when test="$idno = 'http://syriaca.org/taxonomy/syriac-taxonomy'">
<path idno="{$idno}"><xsl:value-of select="concat($staticSitePath,'/taxonomy/browse.html')"/></path>
</xsl:when>
<xsl:otherwise>
<path idno="{$idno}"><xsl:value-of select="concat(replace($idno,$base-uri,concat($staticSitePath,'data')),'.html')"/></path>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:for-each>
</xsl:when>
<xsl:otherwise><xsl:message>Unrecognizable file type <xsl:value-of select="$fileType"/> [<xsl:value-of select="$documentURI"/>]</xsl:message></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="nodes" select="//t:TEI | //rdf:RDF | *"/>
<xsl:for-each-group select="$path/child::*" group-by=".">
<xsl:result-document href="{replace(.,'.xml','.html')}">
<xsl:choose>
<xsl:when test="$fileType = 'HTML'">
<xsl:call-template name="htmlPage">
<xsl:with-param name="pageType" select="'HTML'"/>
<xsl:with-param name="nodes" select="$nodes"/>
<xsl:with-param name="idno" select="''"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$fileType = 'TEI'">
<xsl:call-template name="htmlPage">
<xsl:with-param name="pageType" select="'TEI'"/>
<xsl:with-param name="nodes" select="$nodes"/>
<xsl:with-param name="idno" select="@idno"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$fileType = 'RDF'">
<xsl:call-template name="htmlPage">
<xsl:with-param name="pageType" select="'RDF'"/>
<xsl:with-param name="nodes" select="$nodes"/>
<xsl:with-param name="idno" select="@idno"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:message>Unrecognizable file type <xsl:value-of select="$fileType"/></xsl:message>
</xsl:otherwise>
</xsl:choose>
</xsl:result-document>
</xsl:for-each-group>
</xsl:template>
<xsl:template name="htmlPage">
<xsl:param name="pageType"/>
<xsl:param name="nodes"/>
<xsl:param name="idno"/>
<!-- Collection variables from repo-config -->
<xsl:variable name="collectionURIPattern">
<xsl:if test="$idno != ''">
<xsl:for-each select="tokenize($idno,'/')">
<xsl:if test="position() != last()"><xsl:value-of select="concat(.,'/')"/></xsl:if>
</xsl:for-each>
</xsl:if>
</xsl:variable>
<xsl:message>DEBUG: collectionURIPattern = <xsl:value-of select="$collectionURIPattern"/></xsl:message>
<xsl:variable name="collectionValues" select="$config/descendant::*:collection[@record-URI-pattern = $collectionURIPattern][1]"/>
<xsl:variable name="collectionTemplate">
<xsl:choose>
<xsl:when test="$idno != ''">
<!--<xsl:message> TEI record with an idno: <xsl:value-of select="$idno"/></xsl:message>-->
<xsl:variable name="templatePath" select="replace(concat($staticSitePath,'/siteGenerator/components/',string($collectionValues/@template),'.html'),'//','/')"/>
<xsl:if test="doc-available(xs:anyURI($templatePath))">
<xsl:sequence select="document(xs:anyURI($templatePath))"/>
</xsl:if>
</xsl:when>
<xsl:when test="$convert = 'false' and $outputFile != ''">
<!-- <xsl:message>Generate new HTML page</xsl:message>-->
<xsl:variable name="templatePath">
<xsl:choose>
<xsl:when test="$config/descendant::*:collection[@name = $outputCollection]/@template">
<xsl:value-of select="concat($config/descendant::*:collection[@name = $outputCollection]/@template,'.html')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'page.html'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="fullTemplatePath"><xsl:value-of select="concat($staticSitePath,'/', replace($templatePath,'templates/','siteGenerator/components/'))"/></xsl:variable>
<xsl:if test="doc-available($fullTemplatePath)">
<xsl:sequence select="document($fullTemplatePath)"/>
</xsl:if>
</xsl:when>
<xsl:when test="$nodes/@data-template-with != ''">
<!-- <xsl:message>Convert HTML from old format </xsl:message>-->
<xsl:variable name="templatePath" select="replace(concat($staticSitePath,'/siteGenerator/components/',substring-after($nodes/@data-template-with,'templates/')),'//','/')"/>
<xsl:if test="doc-available(xs:anyURI($templatePath))">
<xsl:sequence select="document(xs:anyURI($templatePath))"/>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<!--<xsl:message>Find generic page.html template</xsl:message>-->
<xsl:variable name="templatePath" select="replace(concat($staticSitePath,'/siteGenerator/components/page.html'),'//','/')"/>
<xsl:if test="doc-available(xs:anyURI($templatePath))">
<xsl:sequence select="document(xs:anyURI($templatePath))"/>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="collection" select="$collectionValues/@name"/>
<!-- <xsl:apply-templates/> -->
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- HTML Header, use templates as already estabilished, if no template exists, use generic 'page.html' -->
<xsl:variable name="template">
<xsl:choose>
<xsl:when test="$pageType = 'HTML'">
<xsl:choose>
<xsl:when test="$collectionTemplate/child::*">
<xsl:sequence select="$collectionTemplate"/>
</xsl:when>
<xsl:otherwise><xsl:message>Error Can not find matching template for HTML page <xsl:value-of select="replace(concat($staticSitePath,'/siteGenerator/components/',string($collectionValues/@template),'.html'),'//','/')"/></xsl:message></xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="$pageType = 'TEI'">
<xsl:choose>
<xsl:when test="$collectionTemplate/child::*">
<xsl:sequence select="$collectionTemplate"/>
</xsl:when>
<xsl:otherwise><xsl:message>Error Can not find matching template for TEI page <xsl:value-of select="replace(concat($staticSitePath,'/siteGenerator/components/',string($collectionValues/@template),'.html'),'//','/')"/></xsl:message></xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="$pageType = 'RDF'">
<xsl:choose>
<xsl:when test="$collectionTemplate/child::*">
<xsl:sequence select="$collectionTemplate"/>
</xsl:when>
<xsl:otherwise><xsl:message>Error Can not find matching template for TEI page <xsl:value-of select="replace(concat($staticSitePath,'/siteGenerator/components/',string($collectionValues/@template),'.html'),'//','/')"/></xsl:message></xsl:otherwise>
</xsl:choose>
</xsl:when>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$template/descendant::*:head">
<xsl:choose>
<xsl:when test="$template/descendant::*:head">
<xsl:choose>
<xsl:when test="$pageType = 'TEI'">
<!--<xsl:sequence select="$collectionTemplate"/>-->
<head xmlns="http://www.w3.org/1999/xhtml">
<!--<xsl:sequence select="$collectionTemplate"/>-->
<xsl:for-each select="$collectionTemplate/descendant::*:head/child::*">
<xsl:choose>
<xsl:when test="local-name() = 'title'">
<title xmlns="http://www.w3.org/1999/xhtml">
<xsl:choose>
<xsl:when test="$nodes/descendant::t:body[descendant::*[@srophe:tags = '#syriaca-headword']]">
<xsl:value-of select="$nodes/descendant::t:body/descendant::*[@srophe:tags = '#syriaca-headword'][@xml:lang = 'en']"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$nodes/descendant-or-self::t:titleStmt/t:title[1]"/>
</xsl:otherwise>
</xsl:choose>
</title>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</head>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$template/descendant::*:head"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise><xsl:message>Error in template, check template for html:head </xsl:message></xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise><xsl:message>No template found for html:head element</xsl:message></xsl:otherwise>
</xsl:choose>
<body id="body">
<xsl:choose>
<xsl:when test="not(empty($template))">
<xsl:choose>
<xsl:when test="$template/descendant::html:nav">
<xsl:copy-of select="$template/descendant::html:nav"/>
</xsl:when>
<xsl:otherwise>
<xsl:message>No template found for html:head element</xsl:message>
<xsl:call-template name="genericNav"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:message>No template found for html:head element</xsl:message>
<xsl:call-template name="genericNav"/>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="$pageType = 'HTML'">
<xsl:copy-of select="$nodes"/>
</xsl:when>
<xsl:when test="$pageType = 'RDF'">
<xsl:apply-templates select="$nodes/rdf:Description[@rdf:about = $idno]"/>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$collectionTemplate">
<div class="main-content-block">
<div class="interior-content">
<xsl:call-template name="otherDataFormats">
<xsl:with-param name="node" select="t:TEI"/>
<xsl:with-param name="idno" select="$idno"/>
<xsl:with-param name="formats" select="'print,tei,rdf'"/>
</xsl:call-template>
<div class="row">
<div class="col-md-7 col-lg-8">
<xsl:apply-templates select="$nodes/ancestor-or-self::t:TEI">
<xsl:with-param name="collection" select="$collection"/>
<xsl:with-param name="idno" select="$idno"/>
</xsl:apply-templates>
</div>
<div class="col-md-5 col-lg-4 right-menu">
<!-- Make dynamic -->
<!-- WS:ToDo Maps -->
<xsl:choose>
<xsl:when test="$nodes/ancestor-or-self::t:TEI/descendant::t:geo">
<xsl:call-template name="leafletMap">
<xsl:with-param name="nodes" select="$nodes/ancestor-or-self::t:TEI"/>
</xsl:call-template>
</xsl:when>
<!-- Maps for related places -->
</xsl:choose>
<span class="rdfRelationships" data-recordID="{$idno}"/>
</div>
</div>
</div>
</div>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="genericTEIPage">
<xsl:with-param name="config" select="$config"></xsl:with-param>
<xsl:with-param name="repository-title" select="$repository-title"/>
<xsl:with-param name="collection-title" select="$collection-title"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="doc-available(xs:anyURI(concat($staticSitePath,'/siteGenerator/components/footer.html')))">
<xsl:copy-of select="document(xs:anyURI(concat($staticSitePath,'/siteGenerator/components/footer.html')))"/>
</xsl:if>
</body>
<xsl:if test="$template/child::*[1]/html:script">
<xsl:copy-of select="$template/child::*[1]/html:script"/>
</xsl:if>
</html>
</xsl:template>
<xsl:template match="html:li">
<xsl:choose>
<xsl:when test="@data-template='app:shared-content'">
<xsl:variable name="sharedContent" select="@data-template-path"/>
<xsl:if test="doc-available(xs:anyURI(concat($staticSitePath,'/siteGenerator/components/',tokenize($sharedContent,'/')[last()])))">
<xsl:copy-of select="document(xs:anyURI(concat($staticSitePath,'/siteGenerator/components/',tokenize($sharedContent,'/')[last()])))"/>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:element name="{name(.)}" namespace="http://www.w3.org/1999/xhtml">
<xsl:for-each select="@*">
<xsl:attribute name="{name(.)}"><xsl:value-of select="."/></xsl:attribute>
</xsl:for-each>
<xsl:apply-templates/>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="html:span">
<xsl:choose>
<xsl:when test="@data-template='app:keyboard-select-menu'">
<xsl:variable name="inputID" select="@data-template-input-id"/>
<xsl:choose>
<xsl:when test="$config/descendant::*:keyboard-options/child::*">
<span class="keyboard-menu" xmlns="http://www.w3.org/1999/xhtml">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="Select Keyboard">
 <span class="syriaca-icon syriaca-keyboard">  </span><span class="caret"/>
</button>
<ul class="dropdown-menu">
<xsl:for-each select="$config/descendant::*:keyboard-options/*:option">
<li xmlns="http://www.w3.org/1999/xhtml"><a href="#" class="keyboard-select" id="{@id}" data-keyboard-id="{$inputID}"><xsl:value-of select="."/></a></li>
</xsl:for-each>
</ul>
</span>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="generickeyboardSelect"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:element name="{name(.)}" namespace="http://www.w3.org/1999/xhtml">
<xsl:for-each select="@*">
<xsl:attribute name="{name(.)}"><xsl:value-of select="."/></xsl:attribute>
</xsl:for-each>
<xsl:apply-templates/>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="html:link | html:script | html:a">
<xsl:element name="{name()}">
<!--<link rel="stylesheet" type="text/css" href="$nav-base/resources/css/syr-icon-fonts.css"/>-->
<xsl:copy-of select="@*[not(local-name() = 'href')]"/>
<xsl:if test="@href">
<xsl:variable name="href">
<xsl:choose>
<xsl:when test="starts-with(@href,'$nav-base/')">
<xsl:value-of select="replace(@href,'$nav-base/','/')"/>
</xsl:when>
<xsl:when test="not(starts-with(@href,'/'))">
<xsl:value-of select="concat('/',@href)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@href"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:attribute name="href" select="$href"/>
</xsl:if>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<xsl:template match="rdf:Description">
<xsl:variable name="id" select="@rdf:about"/>
<xsl:choose>
<xsl:when test="child::*:hasTopConcept">
<div class="main-content-block">
<div class="interior-content">
<h1>Browse Taxonomy</h1>
<ul class="list-unstyled indent">
<xsl:for-each select="*:hasTopConcept">
<xsl:sort select="@rdf:resource"/>
<xsl:variable name="id" select="@rdf:resource"/>
<xsl:for-each select="//rdf:Description[@rdf:about = $id]">
<xsl:sort select="*:prefLabel[@xml:lang='en']"/>
<li>
<xsl:choose>
<xsl:when test="*:narrower">
<xsl:variable name="uID" select="tokenize(@rdf:about,'/')[last()]"/>
<a href="#" type="button" class="expandTerms" data-toggle="collapse" data-target="#view{$uID}" style="display:inline-block;margin:.5em .75em;">
<span class="glyphicon glyphicon-plus-sign"></span>
</a>
</xsl:when>
<xsl:otherwise>
<a href="#" type="button" class="expandTerms" style="display:inline-block;margin:.5em 1.25em;">
 
</a>
</xsl:otherwise>
</xsl:choose>
<a href="{concat(replace($id,$base-uri,concat($staticSitePath,'data')),'.html')}"><xsl:value-of select="*:prefLabel[@xml:lang='en']"/></a>
<xsl:call-template name="narrowerTerms">
<xsl:with-param name="node" select="."/>
</xsl:call-template>
</li>
</xsl:for-each>
</xsl:for-each>
</ul>
</div>
</div>
</xsl:when>
<xsl:otherwise>
<div class="main-content-block">
<div class="interior-content">
<div class="container otherFormats" xmlns="http://www.w3.org/1999/xhtml">
<a href="javascript:window.print();" type="button" class="btn btn-default btn-xs" id="teiBtn" data-toggle="tooltip" title="Click to send this page to the printer." >
<span class="glyphicon glyphicon-print" aria-hidden="true"></span>
</a><xsl:text> </xsl:text>
</div>
<div class="row">
<div class="col-md-7 col-lg-8">
<div class="title">
<h1><span id="title">
<xsl:value-of select="*:prefLabel[@xml:lang='en']"/>
<xsl:if test="*:prefLabel[@xml:lang='syr']">
<xsl:text> - </xsl:text>
<xsl:value-of select="*:prefLabel[@xml:lang='syr']"/>
</xsl:if>
</span></h1>
</div>
<div class="idno seriesStmt"
style="margin:0; margin-top:.25em; margin-bottom: 1em; padding:1em; color: #999999;">
<small><span class="uri"> <button type="button" class="btn btn-default btn-xs"
id="idnoBtn" data-clipboard-action="copy" data-clipboard-target="#syriaca-id">
<span class="srp-label">URI</span></button>
<span id="syriaca-id"><xsl:value-of select="$id"/></span><script>
var clipboard = new Clipboard('#idnoBtn');
clipboard.on('success', function(e) {
console.log(e);
});
clipboard.on('error', function(e) {
console.log(e);
});
</script>
</span></small>
<div>
<xsl:if test="*:scopeNote[@xml:lang='en']">
<h3>Scope Note</h3>
<p class="indent"><xsl:apply-templates select="*:scopeNote[@xml:lang='en']"/></p>
</xsl:if>
<h3>Label(s)</h3>
<xsl:for-each-group select="*:prefLabel" group-by="@xml:lang">
<h4><xsl:value-of select="local:expand-lang(current-grouping-key(),'')"/></h4>
<p class="indent"><xsl:for-each select="current-group()">
<xsl:value-of select="."/><xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if>
</xsl:for-each></p>
</xsl:for-each-group>
<xsl:if test="*:altLabel">
<h3>Alternate Label(s)</h3>
<xsl:for-each-group select="*:altLabel" group-by="@xml:lang">
<h4><xsl:value-of select="local:expand-lang(current-grouping-key(),'')"/></h4>
<p class="indent"><xsl:for-each select="current-group()">
<xsl:value-of select="."/><xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if>
</xsl:for-each></p>
</xsl:for-each-group>
</xsl:if>
</div>
</div>
</div>
<div class="col-md-5 col-lg-4 right-menu">
<xsl:if test="*:broader">
<h4>Broader</h4>
<ul>
<xsl:for-each select="*:broader">
<xsl:variable name="broaderID" select="@rdf:resource"/>
<xsl:for-each select="//rdf:Description[@rdf:about = $broaderID]">
<li><a href="{concat(replace($broaderID,$base-uri,concat($staticSitePath,'data')),'.html')}"><xsl:value-of select="*:prefLabel[@xml:lang='en']"/></a></li>
</xsl:for-each>
</xsl:for-each>
</ul>
</xsl:if>
<xsl:if test="*:narrower">
<h4>Narrower</h4>
<ul>
<xsl:for-each select="*:narrower">
<xsl:variable name="narrowerID" select="@rdf:resource"/>
<xsl:for-each select="//rdf:Description[@rdf:about = $narrowerID]">
<li><a href="{concat(replace($narrowerID,$base-uri,concat($staticSitePath,'data')),'.html')}"><xsl:value-of select="*:prefLabel[@xml:lang='en']"/></a></li>
</xsl:for-each>
</xsl:for-each>
</ul>
</xsl:if>
<xsl:if test="*:related">
<h4>See also</h4>
<ul>
<xsl:for-each select="*:related">
<xsl:variable name="relatedID" select="@rdf:resource"/>
<xsl:for-each select="//rdf:Description[@rdf:about = $relatedID]">
<li><a href="{replace($relatedID,$base-uri,concat($staticSitePath,'data'))}"><xsl:value-of select="*:prefLabel[@xml:lang='en']"/></a></li> </xsl:for-each>
</xsl:for-each>
</ul>
</xsl:if>
</div>
</div>
</div>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="narrowerTerms">
<xsl:param name="node"/>
<xsl:if test="$node/*:narrower">
<xsl:variable name="uID" select="tokenize(@rdf:about,'/')[last()]"/>
<ul class="collapse list-unstyled indent" id="view{$uID}">
<xsl:for-each select="$node/*:narrower">
<xsl:sort select="@rdf:resource"/>
<xsl:variable name="termID" select="@rdf:resource"/>
<xsl:for-each select="//rdf:Description[@rdf:about = $termID]">
<li>
<xsl:choose>
<xsl:when test="*:narrower">
<xsl:variable name="uID" select="tokenize(@rdf:about,'/')[last()]"/>
<a href="#" type="button" class="expandTerms" data-toggle="collapse" data-target="#view{$uID}" style="display:inline-block;margin:.5em .75em;">
<span class="glyphicon glyphicon-plus-sign"></span>
</a>
</xsl:when>
<xsl:otherwise>
<a href="#" type="button" class="expandTerms" style="display:inline-block;margin:.5em 1.25em;">
 
</a>
</xsl:otherwise>
</xsl:choose>
<a href="{replace($termID,$base-uri,concat($staticSitePath,'data'))}"><xsl:value-of select="*:prefLabel[@xml:lang='en']"/></a> <xsl:call-template name="narrowerTerms">
<xsl:with-param name="node" select="."/>
</xsl:call-template>
</li>
</xsl:for-each>
</xsl:for-each>
</ul>
</xsl:if>
</xsl:template>
<xsl:template name="otherDataFormats">
<xsl:param name="node"/>
<xsl:param name="formats"/>
<xsl:param name="idno"/>
<xsl:variable name="teiRec" select="document-uri(root($node))"/>
<xsl:variable name="dataPath" select="substring-before(concat($staticSitePath,'/data/',replace($resource-path,$dataPath,'')),'.xml')"></xsl:variable>
<xsl:if test="$formats != ''">
<div class="container otherFormats" xmlns="http://www.w3.org/1999/xhtml">
<xsl:for-each select="tokenize($formats,',')">
<xsl:choose>
<xsl:when test=". = 'print'">
<a href="javascript:window.print();" type="button" class="btn btn-default btn-xs" id="printBtn" data-toggle="tooltip" title="Click to send this page to the printer." >
<span class="glyphicon glyphicon-print" aria-hidden="true"></span>
</a><xsl:text> </xsl:text>
</xsl:when>
<xsl:when test=". = 'tei'">
<a href="{concat($idno,'.xml')}" class="btn btn-default btn-xs" id="teiBtn" data-toggle="tooltip" title="Click to view the TEI XML data for this record." >
<span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span> TEI/XML
</a><xsl:text> </xsl:text>
</xsl:when>
<xsl:when test=". = 'text'">
<a href="{concat($dataPath,'.txt')}" class="btn btn-default btn-xs" id="txtBtn" data-toggle="tooltip" title="Click to view the plain text data for this record." >
<span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span> Text
</a><xsl:text> </xsl:text>
</xsl:when>
<xsl:when test=". = 'citations'">
<xsl:variable name="zoteroGrp" select="$config/descendant::*:zotero/@group"/>
<xsl:if test="$zoteroGrp != ''">
(<a href="{concat('https://api.zotero.org/groups/',$zoteroGrp,'/items/',tokenize($idno,'/')[last()])}" class="btn btn-default btn-xs" id="citationsBtn" data-toggle="tooltip" title="Click for additional Citation Styles." >
<span class="glyphicon glyphicon-th-list" aria-hidden="true"></span> Cite
</a><xsl:text> </xsl:text>
</xsl:if>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</div>
</xsl:if>
</xsl:template>
<xsl:template name="genericTEIPage">
<xsl:param name="config"/>
<xsl:param name="repository-title"/>
<xsl:param name="collection-title"/>
<xsl:param name="idno"/>
<div xmlns="http://www.w3.org/1999/xhtml">
<div class="main-content-block">
<div class="interior-content">
<xsl:call-template name="otherDataFormats">
<xsl:with-param name="node" select="t:TEI"/>
<xsl:with-param name="idno" select="$idno"/>
<!-- <xsl:with-param name="formats" select="'print,tei,rdf,text'"/>-->
<xsl:with-param name="formats" select="'print,tei'"/>
</xsl:call-template>
<div class="row">
<div class="col-md-7 col-lg-8">
<xsl:apply-templates select="t:TEI"/>
<!--
<xsl:apply-templates select="t:TEI">
<xsl:with-param name="config" select="$config"/>
<xsl:with-param name="repository-title" select="$repository-title"/>
<xsl:with-param name="collection-title" select="$collection-title"/>
</xsl:apply-templates>
-->
</div>
<div class="col-md-5 col-lg-4 right-menu">
<!-- Make dynamic -->
<!-- WS:ToDo Maps -->
<xsl:choose>
<xsl:when test="descendant::t:geo">
<xsl:call-template name="leafletMap">
<xsl:with-param name="nodes" select="/t:TEI"/>
</xsl:call-template>
</xsl:when>
<!-- Maps for related places -->
</xsl:choose>
<br/>
<!-- WS:Note need to wait for RDF, not sure how to resolve paths to files from URI, they are not dependable paths (NHSL for example) -->
<!--
<xsl:choose>
<xsl:when test="descendant::t:relation">
<xsl:call-template name="leafletMap">
<xsl:with-param name="nodes" select="/t:TEI"/>
</xsl:call-template>
</xsl:when>
</xsl:choose>
-->
<!-- Relationsips listed in the TEI record display: list/sentence -->
<!-- WS:ToDo Relationships -->
<!-- <div data-template="app:internal-relationships" data-template-label="Internal Relationships"/>-->
<!-- Relationships referencing this TEI record -->
<!-- <div data-template="app:external-relationships" data-template-label="External Relationships"/> -->
</div>
</div>
</div>
</div>
<!-- Modal email form-->
<!-- WS:ToDo Contact form? -->
<!-- <div data-template="app:contact-form" data-template-collection="places"/>-->
<xsl:if test="t:TEI/descendant::t:geo">
<script type="text/javascript" src="/resources/leaflet/leaflet.js"/>
<script type="text/javascript" src="/resources/js/maps.js"/>
</xsl:if>
</div>
</xsl:template>
<xsl:template name="genericHeader">
<head xmlns="http://www.w3.org/1999/xhtml">
<title>Generic Header: <xsl:value-of select="$resource-title"/></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="DC.type" property="dc.type" content="Text"/>
<meta name="DC.isPartOf" property="dc.ispartof" content="{$config/html:title[1]}"/>
<link rel="shortcut icon" href="/resources/images/fav-icons/syriaca-favicon.ico"/>
<!-- Bootstrap 3 -->
<link rel="stylesheet" type="text/css" href="/resources/bootstrap/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="/resources/css/sm-core-css.css"/>
<!-- Srophe styles -->
<link rel="stylesheet" type="text/css" href="/resources/css/syr-icon-fonts.css"/>
<link rel="stylesheet" type="text/css" href="/resources/css/style.css"/>
<link rel="stylesheet" type="text/css" href="/resources/css/syriaca.css"/>
<link rel="stylesheet" type="text/css" href="/resources/css/slider.css"/>
<link rel="stylesheet" type="text/css" href="/resources/css/lightslider.css"/>
<link rel="stylesheet" type="text/css" media="print" href="/resources/css/print.css"/>
<!-- Leaflet -->
<link rel="stylesheet" href="/resources/leaflet/leaflet.css"/>
<link rel="stylesheet" href="/resources/leaflet/leaflet.awesome-markers.css"/>
<script defer="defer" data-domain="syriaca.org" src="https://plausible.io/js/plausible.js"/>
<!-- JQuery -->
<link href="/resources/jquery-ui/jquery-ui.min.css" rel="stylesheet"/>
<script type="text/javascript" src="/resources/js/jquery.min.js"/>
<script type="text/javascript" src="/resources/jquery-ui/jquery-ui.min.js"/>
<script type="text/javascript" src="/resources/js/jquery.smartmenus.min.js"/>
<script type="text/javascript" src="/resources/js/clipboard.min.js"/>
<!-- Bootstrap -->
<script type="text/javascript" src="/resources/bootstrap/js/bootstrap.min.js"/>
<!-- ReCaptcha -->
<script src="https://www.google.com/recaptcha/api.js" type="text/javascript" async="async" defer="defer"/>
<!-- keyboard widget css & script -->
<link href="/resources/keyboard/css/keyboard.min.css" rel="stylesheet"/>
<link href="/resources/keyboard/css/keyboard-previewkeyset.min.css" rel="stylesheet"/>
<link href="/resources/keyboard/syr/syr.css" rel="stylesheet"/>
<script type="text/javascript" src="/resources/keyboard/syr/jquery.keyboard.js"/>
<script type="text/javascript" src="/resources/keyboard/js/jquery.keyboard.extension-mobile.min.js"/>
<script type="text/javascript" src="/resources/keyboard/js/jquery.keyboard.extension-navigation.min.js"/>
<script type="text/javascript" src="/resources/keyboard/syr/jquery.keyboard.extension-autocomplete.js"/>
<script type="text/javascript" src="/resources/keyboard/syr/keyboardSupport.js"/>
<script type="text/javascript" src="/resources/keyboard/syr/syr.js"/>
<script type="text/javascript" src="/resources/keyboard/layouts/ms-Greek.min.js"/>
<script type="text/javascript" src="/resources/keyboard/layouts/ms-Russian.min.js"/>
<script type="text/javascript" src="/resources/keyboard/layouts/ms-Arabic.min.js"/>
<script type="text/javascript" src="/resources/keyboard/layouts/ms-Hebrew.min.js"/>
<script type="text/javascript" src="/resources/js/keyboard.js" />
</head>
</xsl:template>
<xsl:template name="genericNav">
<nav xmlns="http://www.w3.org/1999/xhtml" class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"/>
<span class="icon-bar"/>
<span class="icon-bar"/>
</button>
<a class="navbar-brand banner-container" href="index.html">
<span class="syriaca-icon syriaca-syriaca banner-icon">
<span class="path1"/><span class="path2"/><span class="path3"/><span class="path4"/>
</span>
<span class="banner-text"><xsl:value-of select="$config/html:title[1]"/></span>
</a>
</div>
<div class="navbar-collapse collapse pull-right" id="navbar-collapse-1">
<ul class="nav navbar-nav">
<xsl:call-template name="syriacaSharedLinks"/>
<li class="dropdown">
<a href="#" class="dropdown-toggle lonely-caret" data-toggle="dropdown">
<span class="mobile-submenu">About</span> <b class="caret"/>
</a>
<ul class="dropdown-menu pull-right">
<li>
<a href="/about-syriac.html">What is Syriac?</a>
</li>
<li role="presentation" class="divider"/>
<li>
<a href="/about-srophe.html">Project Overview</a>
</li>
<li role="presentation" class="divider"/>
<li>
<a href="/project-team.html">Project Team</a>
</li>
<li role="presentation" class="divider"/>
<li>
<a href="/project-partners.html">Project Partners</a>
</li>
<li role="presentation" class="divider"/>
<li>
<a href="/geo/index.html">
<span class="icon-text">Gazetteer</span>
</a>
</li>
<li role="presentation" class="divider"/>
<li>
<a href="http://vu.edu/syriac">Support Our Work</a>
</li>
<li role="presentation" class="divider"/>
<li>
<a href="/contact-us.html">Contact Us</a>
</li>
<li role="presentation" class="divider"/>
<li>
<a href="/documentation/index.html">
<span class="syriaca-icon syriaca-book icon-nav" style="color:red;"/>
<span class="icon-text">Documentation</span>
</a>
</li>
</ul>
</li>
<li>
<a href="search.html" class="nav-text">Advanced Search</a>
</li>
<li>
<div id="search-wrapper">
<form class="navbar-form navbar-right search-box" role="search" action="search.html" method="get">
<div class="form-group">
<input type="text" class="form-control keyboard" placeholder="search" name="keyword" id="keywordNav"/>
<xsl:call-template name="keyboard-select-menu">
<xsl:with-param name="inputID" select="'keywordNav'"></xsl:with-param>
</xsl:call-template>
<button class="btn btn-default search-btn" id="searchbtn" type="submit" title="Search">
<span class="glyphicon glyphicon-search"/>
</button>
</div>
</form>
</div>
</li>
<li>
<div class="btn-nav">
<button class="btn btn-default navbar-btn" id="font" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="Select Font">
<span class="glyphicon glyphicon-font"/>
</button>
<ul class="dropdown-menu dropdown-menu-right" id="swap-font">
<li>
<a href="#" class="swap-font" id="DefaultSelect" data-font-id="EstrangeloEdessa">Default</a>
</li>
<li>
<a href="#" class="swap-font" id="EstrangeloEdessaSelect" data-font-id="EstrangeloEdessa">Estrangelo Edessa</a>
</li>
<li>
<a href="#" class="swap-font" id="EastSyriacAdiabeneSelect" data-font-id="EastSyriacAdiabene">East Syriac Adiabene</a>
</li>
<li>
<a href="#" class="swap-font" id="SertoBatnanSelect" data-font-id="SertoBatnan">Serto Batnan</a>
</li>
<li>
<a href="/documentation/wiki.html?wiki-page=/How-to-view-Syriac-script&wiki-uri=https://github.com/srophe/syriaca-data/wiki">Help <span class="glyphicon glyphicon-question-sign"/>
</a>