-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.xsl
2095 lines (1629 loc) · 95.5 KB
/
variables.xsl
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
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:ead="urn:isbn:1-931666-22-9"
xmlns:functx="http://www.functx.com"
xmlns:snac="http://socialarchive.iath.virginia.edu/"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
exclude-result-prefixes="#all"
version="2.0">
<!--
Author: Tom Laudeman, Daniel Pitti
The Institute for Advanced Technology in the Humanities
Copyright 2013 University of Virginia. Licensed under the Educational Community License, Version 2.0
(the "License"); you may not use this file except in compliance with the License. You may obtain a
copy of the License at
http://www.osedu.org/licenses/ECL-2.0
http://opensource.org/licenses/ECL-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied. See the License for the specific language governing permissions and limitations under the
License.
This file contains shared variables imported into eadToCpf.xsl.
Note @force added to support QA files reverting to ussing pStart and pEnd which has been overridden
during development. Eventually we need a command line param for all the normal EAD files.
The CPF localType values are in av.xml since they are shared variables with the earlier CPF
extraction in ../eac_project. (MARC, British Library, SIA archives format, SIA Field Books, etc.)
-->
<xsl:variable name="cr" select="'
'"/>
<xsl:variable name="this_year" select="year-from-date(current-date())"/>
<xsl:variable name="start" as="xs:integer">
<xsl:choose>
<xsl:when test="snac:list/@force = '1'">
<xsl:value-of select="snac:list/@pStart"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="1"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="stop" as="xs:integer">
<xsl:choose>
<xsl:when test="snac:list/@force = '1'">
<xsl:value-of select="snac:list/@pEnd"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="20"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="sourceID">
<xsl:value-of select="snac:list/@sourceCode"/>
</xsl:variable>
<xsl:variable name="aposLiteral">'</xsl:variable>
<xsl:variable name="quoteLiteral">"</xsl:variable>
<xsl:variable name="quoteEscape">"</xsl:variable>
<xsl:variable name="aposEscape">'</xsl:variable>
<xsl:variable name="sourceList">
<!--
Dec 11 2014 See up to date info in readme_cpf.txt and todo.txt.
The actual URL code is in fix_url.xsl Building URLs on the fly was slowing down CPF extraction,
therefore URL creation is now down as a batch job before CPF extraction.
-->
<source>
<sourceCode>aao</sourceCode>
<sourceName>Arizona Archives Online</sourceName>
<!--
/data/source/findingAids/aao/uoa_university_of_az/UAMS469.xml
<eadid encodinganalog="852"> PUBLIC "-//University of Arizona Library Special
Collections//text(US::AzU::Theatre Progams collection)//en"
"UAMS469.xml"</eadid>
<unitid label="Collection Number:" encodinganalog="099" repositorycode="AzU" countrycode="us">MS 469</unitid>
http://www.azarchivesonline.org/xtf/view?docId=ead/uoa/UAMS469.xml&doc.view=toc&brand=default&toc.id=0
# Works. Human readable (inspite of the .xml extension)
http://www.azarchivesonline.org/xtf/view?docId=ead/uoa/UAMS469.xml
/data/source/findingAids/aao/phm_postal_history_museum/PHF_MS_COLL_2010.26.xml
<eadid countrycode="US" encodinganalog="identifier" mainagencycode="US-AzTuPHF"
publicid="-//Postal History Foundation::Peggy J. Slusser Memorial Philatelic Library//TEXT
(US::US-AzTuPHF::PHF_MS COLL 2010.26::Arizona Territorial Correspondence
Collection)//EN">PHF_MS_COLL_2010.26.xml</eadid>
http://www.azarchivesonline.org/xtf/view?docId=ead/phm/PHF_MS_COLL_2010.26.xml
> grep fn: logs/aao.log | perl -ne '$_ =~ m/aao\/(.*?)\//; print "$1\n"' | sort -u
asl_az_state_library
asm_az_state_museum
asu_az_state_university
ccp_center_for_creative_photography
hm_heard_museum
lo_lowell_observatory
mna_museum_of_northern_az
nau_northern_az_university
phm_postal_history_museum
sh_sharlot_hall
uoa_university_of_az
> find /data/source/findingAids/aao/ -type d
/data/source/findingAids/aao/
/data/source/findingAids/aao/ccp_center_for_creative_photography
/data/source/findingAids/aao/nau_northern_az_university
/data/source/findingAids/aao/asu_az_state_university
/data/source/findingAids/aao/asm_az_state_museum
/data/source/findingAids/aao/asl_az_state_library
/data/source/findingAids/aao/uoa_university_of_az
/data/source/findingAids/aao/mna_museum_of_northern_az
/data/source/findingAids/aao/lo_lowell_observatory
/data/source/findingAids/aao/hm_heard_museum
/data/source/findingAids/aao/sh_sharlot_hall
/data/source/findingAids/aao/phm_postal_history_museum
-->
<url></url>
<identifier>concat('UA', normalize-space(ead/archdesc/did/unitid), '.xml')</identifier>
</source>
<source>
<sourceCode>aar</sourceCode>
<sourceName>Archives of American Art (Smithsonian Institution)</sourceName>
<!--
/data/source/findingAids/aar/moorbens.xml
<eadid mainagencycode="DSI-AAA" countrycode="us"
url="http://www.aaa.si.edu/collections/findingaids/xml/moorbens.xml">moorbens</eadid>
# Works. Redirects to human readable link below. Discovered this by editing the pdf link
http://www.aaa.si.edu/collections/findingaids/moorbens.xml
# Page redirects to 404 or if /collections to a human readable collections browsing page.
http://www.aaa.si.edu/collections/findingaids/xml/moorbens.xml
# The actual finding aid. Yes, it has "/more" on the end
http://www.aaa.si.edu/collections/benson-bond-moore-papers-6095/more
# pdf
http://www.aaa.si.edu/collections/findingaids/moorbens.pdf
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>afl</sourceCode>
<sourceName>Archives Florida</sourceName>
<!--
See afl-ufl (below where ufl used to be) for the ufl data.
/data/source/findingAids/afl/11180_M1982_10.xml
<eadid mainagencycode="FWA" countrycode="us" url="http://fusionmx.lib.uwf.edu/archon/ead.php?id=18">M1982-10SC</eadid>
<titleproper>Howard, James William, Diary</titleproper>
# Works, redirects to finding aid, human readable
http://digitool.fcla.edu/webclient/DeliveryManager?pid=11180&custom_att_2=direct
# no, error
http://digitool.fcla.edu/R/?func=search-advanced-go&find_code1=PID&request1=11180
# no
http://digitool.fcla.edu/R/?func=search-advanced-go&find_code1=WID&request1=11180
# no
http://digitool.fcla.edu/R/?func=search-advanced-go&find_code1=PAA&request1=11180
# No.
http://digitool.fcla.edu/R/?func=search-advanced-go&find_code1=WID&request1=M1982_10
# no.
http://digitool.fcla.edu/R/?func=search-advanced-go&find_code1=WID&request1=M1982_10.xml
# result with single record
http://digitool.fcla.edu/R/?func=search-advanced-go&find_code1=WID&request1=M1982%2010.xml
# returns search with single record
http://digitool.fcla.edu/R/?func=search-advanced-go&find_code1=WID&request1=M1982%2010
# returns a web page with a single finding aid result
http://digitool.fcla.edu/R/?func=search-advanced-go&find_code1=WID&request1=M1982-10
http://digitool.fcla.edu/R/LTIYXDEHY9A55NAN94R3VIQAHTXEDPM199PYEKJ72NV2BT77GL-00140
http://digitool.fcla.edu/view/action/singleViewer.do?dvs=1396619909143~578&locale=en_US&VIEWER_URL=/view/action/singleViewer.do?&DELIVERY_RULE_ID=7&search_terms=m1982%2010sc&adjacency=N&application=DIGITOOL-3&frameId=1&usePid1=true&usePid2=true
# This seems to work:
http://143.88.66.76/archon/index.php?p=collections/controlcard&id=18
# 404
http://fusionmx.lib.uwf.edu/archon/ead.php?id=18
/data/source/findingAids/afl/165407_FTaSU1977012j.xml
<eadid countrycode="US" mainagencycode="FTaSU" publicid="-//Florida State
University::Strozier Library::Special Collections//TEXT (US::FTaSU::MSS 1977-012j::Autograph
letter signed from Charlotte, Countess of Leicester, October 23, 1794)//TEXT//EN">MSS
1977-012j.xml</eadid>
# works, redirects to finding aid, human readable
http://digitool.fcla.edu/webclient/DeliveryManager?pid=165407&custom_att_2=direct
# no, error. PID is not in list of options for find_code1
http://digitool.fcla.edu/R/?func=search-advanced-go&find_code1=PID&request1=165407
# works, search with 1 result
http://digitool.fcla.edu/R/?func=search-advanced-go&find_code1=WRD&request1=165407
# works, search with 1 result
http://digitool.fcla.edu/R/?func=search-advanced-go&find_code1=WRD&request1=FTaSU1977012j.xml
# works, search result with one finding aid link
http://digitool.fcla.edu/R/?func=search-advanced-go&find_code1=WID&request1=FTaSU1977012j.xml
# Works, returns a web page with one finding aid link
http://digitool.fcla.edu/R/?func=search-advanced-go&find_code1=WTI&request1=Autograph%20letter%20signed%20from%20Charlotte,%20Countess%20of%20Leicester,%20October%2023,%201794
# Nope
http://digitool.fcla.edu/R/?func=search-advanced-go&find_code1=WID&request1=MSS1977-012
# Works
http://fsuarchon.fcla.edu/index.php?p=collections/controlcard&id=3887&q=Bryant
# works
http://fsuarchon.fcla.edu/index.php?p=collections/findingaid&id=3887&q=Bryant&rootcontentid=141809
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>ahub</sourceCode>
<sourceName>ArchivesHub (UK)</sourceName>
<!--
jun 04 2014 Disable ahub until we get a new data set.
Old data not working, inconsistent, new, revised data coming soon.
Old comments move to code_archive.txt
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>anfra</sourceCode>
<sourceName>Archives nationales (France)</sourceName>
<!--
No files as of mar 24 2014.
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>aps</sourceCode>
<sourceName>American Philosophical Society</sourceName>
<!--
/data/source/findingAids/aps/Mss.649.962.Sh6m-ead.xml
<eadid countrycode="US" mainagencycode="US-PPAmP" url="http://www.amphilsoc.org/mole/view?docId=ead/Mss.649.962.Sh6m-ead.xml"/>
The URL is complete and works, html human readable
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>bnf</sourceCode>
<sourceName>Bibliothèque nationale de France / BnF Archives et manuscripts</sourceName>
<!--
/data/source/findingAids/bnf/preliminary/Christine_of_Pizan_ms.xml
<eadid>FRBNFEAD000050858</eadid>
# This has some (most?) of the data, but the online version seems to be more extensive (the online
# version has a summary at the top and a "Bibliographie" that we don't have in our ead file.
# works, html
http://archivesetmanuscrits.bnf.fr/ead.html?id=FRBNFEAD000050858
Images of the actual bound manuscript:
<dao href="http://gallica.bnf.fr/ark:/12148/btv1b52000943c"/>
Images of the actual bound manuscript:
<dao actuate="onrequest" href="http://gallica.bnf.fr/ark:/12148/btv1b60007552" title="Accéder au manuscrit numérisé"/>
# In this case, the online ead seems to be closer to the EAD we have:
/data/source/findingAids/bnf/preliminary/selection_of_letters_Francis_I.xml
<eadid>FRBNFEAD000050342</eadid>
http://archivesetmanuscrits.bnf.fr/ead.html?id=FRBNFEAD000050342
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>byu</sourceCode>
<sourceName>Brigham Young University</sourceName>
<!--
/data/source/findingAids/byu/UPB_MSS4085.xml
<eadid countrycode="US" mainagencycode="US-UPB" publicid="-//L. Tom Perry Special
Collections::20th Century Western & Mormon Manuscripts//TEXT(US::US-UPB::MSS 4085::Uintah
County Juvenile Court records)//EN" encodinganalog="identifier">UPB_MSS4085</eadid>
# Note the %20 in the URL. HTML, human readable
http://findingaid.lib.byu.edu/viewItem/MSS%204085
/data/source/findingAids/byu/UPB_MSSSC2175.xml
<eadid countrycode="US" mainagencycode="US-UPB" publicid="-//L. Tom Perry Special
Collections::19th Century Western & Mormon Manuscripts//TEXT (US::US-UPB::MSS SC
2175::Sybren van Dyk diaries)//EN" encodinganalog="identifier">UPB_MSSSC2175</eadid>
# Yikes! Two %20 in the url.
http://findingaid.lib.byu.edu/viewItem/MSS%20SC%202175
/data/source/findingAids/byu/UPB_UA5399.xml
<eadid countrycode="US" mainagencycode="US-UPB" publicid="-//L. Tom Perry Special
Collections::University Archives//TEXT(US::US-UPB::UA 5399::Ephraim Hatch photographs of the
Harold B. Lee Library and the Provo City Library)//EN"
encodinganalog="identifier">UPB_UA5399</eadid>
# Seems to work to parse out "UA 5399" from eadid@publicid.
http://findingaid.lib.byu.edu/viewItem/UA%205399
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>ccfr</sourceCode>
<sourceName>Catalogue Collectif de France</sourceName>
<url/>
<identifier/>
</source>
<source>
<sourceCode>cjh</sourceCode>
<sourceName>Center for Jewish History</sourceName>
<!--
/data/source/findingAidscjh/yum-ead-snac/1078462_BernardBernstein.xml
<eadid mainagencycode="NyNyCJH" countrycode="us" encodinganalog="856$u" publicid="-//us::nnlbi//TEXT
us::nnlbi::FILENAME.xml//EN">BernardBernstein</eadid>
Guide to the Papers of Bernard Bernstein
# works, via google. Use the pid from the filename.
http://findingaids.cjh.org/?pID=1078462
# nope
http://findingaids.cjh.org/BernardBernstein.html
/data/source/findingAids/cjh/yum-ead-snac/92140_RuthAbrams02.xml
<eadid mainagencycode="NyNyCJH">RuthAbrams02</eadid>
# (old) Odd with double // after the domain name.
http://findingaids.cjh.org//RuthAbrams02.html
# (old) This works (single / after the domain name). human readable
http://findingaids.cjh.org/RuthAbrams02.html
/data/source/findingAids/cjh/yum-ead-snac/92138_SampsonEngoren.xml
<eadid mainagencycode="NyNyCJH" encodinganalog="856$u" publicid="-//us::nnyu//TEXT us::nnyu::FILENAME.xml//EN" countrycode="us">SampsonEngoren</eadid>
# (old) Seems to work using the eadid value.
http://findingaids.cjh.org/SampsonEngoren.html
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>colu</sourceCode>
<sourceName>Columbia University</sourceName>
<!--
/data/source/findingAids/colu/nnc-ua/ldpd_8429267_ead.xml
<eadid countrycode="US" encodinganalog="Identifier" publicid="-//us::nnc-ua//TEXT
us::nnc-ua::ldpd_8429267_ead//EN" mainagencycode="nnc-ua">ldpd_8429267_ead.xml</eadid>
# Odd that there are URLs with double //. Single / works fine of course., human readable
http://findingaids.cul.columbia.edu/ead//nnc-ua/ldpd_8429267
# Adding the suffix "_ead.xml" does not work, and it is unclear what that document is.
# "_ead" also doesn't work. Both urls with a suffix appear to be empty.
# Works fine.
http://findingaids.cul.columbia.edu/ead/nnc-ua/ldpd_8429267
> find /data/source/findingAids/colu/ -type d | less
/data/source/findingAids/colu/
/data/source/findingAids/colu/nnc-ua
/data/source/findingAids/colu/nnc-rb
/data/source/findingAids/colu/nnc-ea
/data/source/findingAids/colu/nnc-a
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>crnlu</sourceCode>
<sourceName>Cornell University</sourceName>
<!--
/data/source/findingAids/crnlu/KCL05619-040.xml
<eadid mainagencycode="nic" countrycode="us" publicid="-//Cornell University::Cornell
University Library::Kheel Center for Labor-Management Documentation and
Archives//TEXT(US::NIC::KCL05619-040::ACWA's Sidney Hillman Foundation
Records)//EN">KCL05619-040.xml</eadid>
# Works, human readable
http://rmc.library.cornell.edu/EAD/xml/dlxs/KCL05619-040.xml
# Works, but their server suggests the "xml" url above
http://rmc.library.cornell.edu/EAD/xml/dlxs/KCL05619-040
# Also works, but probably not the record of reference:
http://ebooks.library.cornell.edu/cgi/f/findaid/findaid-idx?c=rmc;cc=rmc;rgn=main;view=text;didno=KCL05619-040.xml
/data/source/findingAids/crnlu/RMM04613.xml
<eadid mainagencycode="nic" countrycode="us" publicid="-//Cornell University::Cornell
University Library::Division of Rare and Manuscript
Collections//TEXT(US::NIC::RMM04613::A.J. Liebling collection)//EN">RMM04613.xml</eadid>
# Works
http://rmc.library.cornell.edu/EAD/xml/dlxs/RMM04613.xml
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>duke</sourceCode>
<sourceName>Duke University</sourceName>
<!--
/data/source/findingAids/duke/toolkit-EAD/taylorcharlesforbes.xml
<eadid countrycode="US" mainagencycode="US-NcD" url="http://library.duke.edu/rubenstein/findingaids/taylorcharlesforbes/taylorcharlesforbes/">taylorcharlesforbes</eadid>
# workes, guessed, apparent typo in eadid@url
http://library.duke.edu/rubenstein/findingaids/taylorcharlesforbes/
# no
http://library.duke.edu/rubenstein/findingaids/taylorcharlesforbes/taylorcharlesforbes/
/data/source/findingAids/duke/toolkit-EAD/jarrattpuryearfamily.xml
<eadid countrycode="US" mainagencycode="US-NcD" url="http://library.duke.edu/rubenstein/findingaids/jarrattpuryear/">jarrattpuryear</eadid>
# works, via google, and this: http://184.168.105.185/archivegrid/collection/data/19933762
http://library.duke.edu/rubenstein/findingaids/jarrattpuryearfamily/
# no
http://library.duke.edu/rubenstein/findingaids/jarrattpuryear/
/data/source/findingAids/duke/toolkit-EAD/barnsleygodfrey.xml
<eadid countrycode="US" mainagencycode="US-NcD"
url="http://library.duke.edu/rubenstein/findingaids/barnsleygodfrey/">barnsleygodfrey</eadid>
# Works, human readable
http://library.duke.edu/rubenstein/findingaids/barnsleygodfrey/
/data/source/findingAids/duke/classic-EADs/uafacman.xml
<eadid countrycode="us" mainagencycode="ndd" publicid="-//University Archives//TEXT
(US::ndd::Facilities Management Department records, 1990-2006)//EN"
url="http://library.duke.edu/rubenstein/findingaids/uafacman/">uafacman</eadid>
# Works. Title is very slightly different.
http://library.duke.edu/rubenstein/findingaids/uafacman/
> find /data/source/findingAids/duke/ -type d
/data/source/findingAids/duke/
/data/source/findingAids/duke/toolkit-EAD
/data/source/findingAids/duke/classic-EADs
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>fivecol</sourceCode>
<sourceName>Five Colleges</sourceName>
<!--
/data/source/findingAids/fivecol/manosca47.xml
<eadid publicid="-//us::manosca//TEXT us::manosca::manosca47.xml//EN" countrycode="us" mainagencycode="manosca">manosca47</eadid>
# Works
http://asteria.fivecolleges.edu/findaids/smitharchives/manosca47.html
/data/source/findingAids/fivecol/mshm484.xml
<eadid publicid="-//us::mshm//TEXT us::mshm::mshm484.xml//EN" countrycode="us" mainagencycode="mshm">mshm484</eadid>
# works
http://asteria.fivecolleges.edu/findaids/mountholyoke/mshm484.html
/data/source/findingAids/fivecol/ma19.xml
<eadid publicid="-//us::ma//TEXT us::ma::ma19.xml//EN" countrycode="us" mainagencycode="ma">ma19</eadid>
# works
http://asteria.fivecolleges.edu/findaids/amherst/ma19.html
/data/source/findingAids/fivecol/mah1.xml
<eadid publicid="-//us::mah//TEXT us::mah::mah1.xml//EN" countrycode="us" mainagencycode="mah">mah1</eadid>
# works
http://asteria.fivecolleges.edu/findaids/hampshire/mah1.html
/data/source/findingAids/fivecol/manoscmr16.xml
<eadid countrycode="us" mainagencycode="manoscmr" url="http://asteria.fivecolleges.edu/findaids/mortimer/manoscmr16.html">manoscmr16</eadid>
# works
http://asteria.fivecolleges.edu/findaids/mortimer/manoscmr16.html
/data/source/findingAids/fivecol/mnsss450.xml
<eadid publicid="-//us::mnsss//TEXT us::mnsss::msss502.xml//EN" countrycode="us" mainagencycode="mnsss">msss502</eadid>
# works
http://asteria.fivecolleges.edu/findaids/sophiasmith/mnsss450.html
/data/source/findingAids/fivecol/msss502.xml
<eadid publicid="-//us::mnsss//TEXT us::mnsss::msss502.xml//EN" countrycode="us" mainagencycode="mnsss">msss502</eadid>
# works
http://asteria.fivecolleges.edu/findaids/sophiasmith/msss502.html
/data/source/findingAids/fivecol/mufs060.xml
<eadid publicid="-//us::mu//TEXT us::mu::mufs060.xml//EN" countrycode="us" mainagencycode="mu">mufs060</eadid>
# works
http://asteria.fivecolleges.edu/findaids/umass/mufs060.html
/data/source/findingAids/fivecol/mums235.xml
<eadid publicid="-//us::mu//TEXT us::mu::mums235.xml//EN" countrycode="us" mainagencycode="mu">mums235</eadid>
# works
http://asteria.fivecolleges.edu/findaids/umass/mums235.html
/data/source/findingAids/fivecol/muph006.xml
<eadid publicid="-//us::mu//TEXT us::mu::muph006.xml//EN" countrycode="us" mainagencycode="mu">muph006</eadid>
# works
http://asteria.fivecolleges.edu/findaids/umass/muph006.html
/data/source/findingAids/fivecol/murg3_1_b88.xml
<eadid publicid="-//us::mu//TEXT us::mu::murg3_1_b88.xml//EN" countrycode="us" mainagencycode="mu">murg3_1_b88</eadid>
# works
http://asteria.fivecolleges.edu/findaids/umass/murg3_1_b88.html
> grep -Po "fivecol\/.*?\d+" logs/fivecol.log | perl -ne '$_ =~ m/fivecol\/(.*?)\d+/; print "$1\n";' | sort -u
ma
mah
manosca
manoscmr
mnsss
mshm
msss
mufs
mums
muph
murg
# Index
http://asteria.fivecolleges.edu/findaids/hampshire/
# Cocoon failure
http://asteria.fivecolleges.edu/findaids/hampshire/mah1.xml
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>fsga</sourceCode>
<sourceName>Freer Sackler Gallery Archives (Smithsonian Institution)</sourceName>
<!--
Update July 16 2014 See fsga_e2u.xml
# Apparently not possible to find the "real" finding aid without looking at the href in the
# title="Finding Aid" link. Even the siris_bib id links to an incomplete summary of the real finding aid.
# Daniel suggested this:
https://www.asia.si.edu/research/archivesFindingAids.asp
/data/source/findingAids/fsga/FSA.A1989.xml
<eadid countrycode="US" mainagencycode="US-DSI-FSA"
url="http://www.asia.si.edu/visitor/archivesFindingAids.htm">FSA.A1989.xml</eadid>
<titleproper>A Finding Aid to the Dwight William Tryon papers, circa 1872-1930</titleproper>
<notestmt><note><p>This finding aid was created from a MARC collection-level record.<num
type="siris_bib">279719</num></p></note></notestmt>
# Incomplete summary, has a link with a different format from the link in the finding aid below.
http://collections.si.edu/search/results.htm?q=record_ID:siris_arc_279719
# Print version, incomplete summary
http://collections.si.edu/search/results.htm?print=yes&q=record_ID:siris_arc_279719
# Works, but doesn't use any of our EAD data. Found this on the summary page above.
http://www.asia.si.edu/archives/finding_aids/tryon.htm
# no
http://www.asia.si.edu/archives/finding_aids/FSA.A1989.xml
# no
http://www.asia.si.edu/collections/finding_aids/FSA.A1989.xml
# no
http://collections.si.edu/findingaids/FSA.A1989.xml
# Ditto, plain xml
http://www.asia.si.edu/archives/finding_aids/tryon.xml
/data/source/findingAids/fsga/FSA.A2001.14.xml
<eadid countrycode="US" mainagencycode="US-DSI-FSA">FSA.A2001.14.xml</eadid>
<num type="siris_bib">279715</num>
# summary only
http://collections.si.edu/search/results.htm?q=record_ID:siris_arc_279715
# more complete finding aid, but still not as much info as FSA.A2001.14.xml
http://siris-archives.si.edu/ipac20/ipac.jsp?&profile=all&source=~!siarchives&uri=full=3100001~!279715~!0#focus
#
http://www.asia.si.edu/archives/finding_aids/bahr.htm
http://www.asia.si.edu/archives/finding_aids/bahr.xml
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>harvard</sourceCode>
<sourceName>Harvard University</sourceName>
<!--
/data/source/findingAids/harvard/med00075.xml
<eadid identifier="000603644">med00075</eadid>
# Works, human readable, Must change & to & for the real url
http://oasis.lib.harvard.edu//oasis/deliver/deepLink?_collection=oasis&uniqueId=med00075
-->
<url>http://oasis.lib.harvard.edu//oasis/deliver/deepLink?_collection=oasis&uniqueId=</url>
<identifier>baseFileName</identifier>
</source>
<source>
<sourceCode>howard</sourceCode>
<sourceName>Howard University</sourceName>
<!--
# No finding aids found.
/data/source/findingAids/howard/Coll._007-ead.xml
<eadid countrycode="US" mainagencycode="US-DHU-MS"/>
<unitid>Coll. 007</unitid>
http://www.howard.edu/msrc/manuscripts_processed_listings.html
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>inu</sourceCode>
<sourceName>Indiana University</sourceName>
<!--
/data/source/findingAids/inu/InU-Ar-VAC0395.xml
<eadid countrycode="US" encodinganalog="identifier" mainagencycode="InU-Ar" identifier="InU-Ar-VAC0395">InU-Ar-VAC0395</eadid>
# works, human readable
http://webapp1.dlib.indiana.edu/findingaids/view?doc.view=entire_text&docId=InU-Ar-VAC0395
/data/source/findingAids/inu/InU-Li-VAA1280.xml
<eadid encodinganalog="identifier" identifier="InU-Li-VAA1280" countrycode="US" mainagencycode="InU-Li">InU-Li-VAA1280</eadid>
# works
http://webapp1.dlib.indiana.edu/findingaids/view?doc.view=entire_text&docId=InU-Li-VAA1280
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>lds</sourceCode>
<sourceName>Church of Latter Day Saints Archives</sourceName>
<!--
# No clear rule(s) to transform eadid into the URL. Can't predict when to insert a space,
# where to insert space. Instead use the addressline/extptr with eadview.lsd.org instead.
# extptr not reliable.
/data/source/findingAids/lds/MS_15339.xml
<eadid encodinganalog="identifier" countrycode="US" mainagencycode="US-USlC" publicid="-//The Church of Jesus
Christ of Latter-day Saints::Church History Library//TEXT (US::US-USlC::USlC_MS15339.xml::Armintia Achsa
Wilson Wilkins Family papers//EN">USlC_MS15339</eadid>
# addressline/extptr
<extptr xlink:href="https://eadview.lds.org/findingaid/MS 15339"/>
# Works The actual URL needs " " encoded as %20, human readable
https://eadview.lds.org/findingaid/MS%2015339
# Note that filenames had spaces changed to "_", but the eadid is unchanged and has a mixture
# of underscore and spaces with no clear logic.
/data/source/findingAids/lds/M270_K49h_v._1-8_1992.xml
<eadid encodinganalog="identifier" countrycode="US" mainagencycode="US-USlC" publicid="-//The
Church of Jesus Christ of Latter-day Saints::Church History Library//TEXT
(US::US-USlC::USlC_M270K49h_v. 1-8 1992.xml::Heber C. Kimball family
history//EN">USlC_M270K49h_v. 1-8 1992</eadid>
<extptr xlink:href="https://eadview.lds.org/findingaid/M270 K49h v. 1-8 1992"/>
# No.
https://eadview.lds.org/findingaid/M270 K49h v. 1-8 1992
# No.
https://eadview.lds.org/findingaid/M270K49h_v.1-81992
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>lc</sourceCode>
<sourceName>Library of Congress</sourceName>
<!--
/data/source/findingAids/lc/ms010225.xml
<eadid mainagencycode="US-DLC" countrycode="US" identifier="hdl:loc.mss/eadmss.ms010225"
encodinganalog="856$u">http://hdl.loc.gov/loc.mss/eadmss.ms010225</eadid>
# works, human readable, redirects to a summary page, this is what they request people bookmark/cite
http://hdl.loc.gov/loc.mss/eadmss.ms010225
# What they give as the link to the xml version
http://hdl.loc.gov/loc.mss/eadmss.ms010225.2
-->
<url></url>
<identifier>eadid/@identifier</identifier>
<!-- substring after hdl: or just use the eadid value (which is simpler) -->
</source>
<source>
<sourceCode>meas</sourceCode>
<sourceName>Maine Archives Search</sourceName>
<!--
# Can't determine if the id in the URL has a dot or space (%20). Any leading zero on the id
# number seems to be removed.
/data/source/findingAids/meas/plummeremacon.xml
<eadid publicid="MS.0413" countrycode="US" mainagencycode="US-meU">MS.0413</eadid>
# Works. found via http://www.library.umaine.edu/speccoll/eadsearch/
http://www.library.umaine.edu/speccoll/eadsearch/detail.aspx?pno=0&id=MS.413
# Found via a browsing page
http://www.library.umaine.edu/speccoll/FindingAids/PlummerE.htm
<eadid encodinganalog="852$a" publicid="MS 447" countrycode="US" mainagencycode="US-MeU">Source=DLC System ID= MS 447</eadid>
/data/source/findingAids/meas/sanfordf.xml
# Works, from the search page
http://www.library.umaine.edu/speccoll/eadsearch/detail.aspx?pno=0&id=MS%20447
# No.
http://www.library.umaine.edu/speccoll/eadsearch/detail.aspx?pno=0&id=MS.447
/data/source/findingAids/meas/kellmanpetermacon.xml
<eadid publicid="MS.0271" countrycode="US" mainagencycode="US-meU">MS.0271</eadid>
# Works, from the search
http://www.library.umaine.edu/speccoll/eadsearch/detail.aspx?pno=0&id=MS%20271
# No.
http://www.library.umaine.edu/speccoll/eadsearch/detail.aspx?pno=0&id=MS.271
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>mhs</sourceCode>
<sourceName>Minnesota Historical Society</sourceName>
<!--
# Some eadid values have .xml which needs to be trimmed off since we always add a .xml suffix.
# Only 10 failures
missing file: mhs/00908.xml url: http://www.mnhs.org/library/findaids/00908.xml
missing file: mhs/00378.xml url: http://www.mnhs.org/library/findaids/00378.xml
missing file: mhs/govcdd05.xml url: http://www.mnhs.org/library/findaids/govcdd05.xml
missing file: mhs/00480.xml url: http://www.mnhs.org/library/findaids/00480.xml
missing file: mhs/00790.xml url: http://www.mnhs.org/library/findaids/00790.xml
missing file: mhs/00445.xml url: http://www.mnhs.org/library/findaids/00445.xml
missing file: mhs/00444.xml url: http://www.mnhs.org/library/findaids/00444.xml
missing file: mhs/P400.xml url: http://www.mnhs.org/library/findaids/P400.xml
missing file: mhs/00443.xml url: http://www.mnhs.org/library/findaids/00443.xml
missing file: mhs/00494.xml url: http://www.mnhs.org/library/findaids/00494.xml
/data/source/findingAids/mhs/00908.xml
<eadid countrycode="us" mainagencycode="MnHi">00908.xml</eadid>
GREAT NORTHERN RAILWAY COMPANY: ADVERTISING AND PUBLICITY DEPARTMENT: An Inventory of Its Lantern Slides at
the Minnesota Historical Society
# no, but is in a link on their web site, so probably a mistaken 40
# linked from here: http://www.mnhs.org/library/findaids/index-WhatsNew-June2011.htm
http://www.mnhs.org/library/findaids/00908.xml
/data/source/findingAids/mhs/P2513.xml
<eadid countrycode="us" mainagencycode="MnHi">Fraternal organizationsp2513</eadid>
UNION VETERANS' UNION. JOHN A. LOGAN REGIMENT, NO. 2: An Inventory of Its Records at the
Minnesota Historical Society
# works, via google.
http://www.mnhs.org/library/findaids/P2513.xml
# no
http://www.mnhs.org/library/findaids/Fraternalorganizationsp2513.xml
# no
http://www.mnhs.org/library/findaids/Fraternal%20organizationsp2513.xml
# no
http://www.mnhs.org/library/findaids/Fraternal organizationsp2513.xml
/data/source/findingAids/mhs/lb00055.xml
<eadid countrycode="us" mainagencycode="MnHi"> <?replace_text {fileName, or delete if there
is no file name}?> </eadid>
Norman County, Minnesota : An Inventory of Telephone Directories at the Minnesota Historical
Society
# works, find by guessing
http://www.mnhs.org/library/findaids/lb00055.xml
# no
http://www.mnhs.org/library/findaids/.xml
/data/source/findingAids/mhs/SAM184.xml
<eadid countrycode="us" mainagencycode="MnHi">SAM184,xml</eadid>
# works, found by guessing
http://www.mnhs.org/library/findaids/SAM184.xml
# No
http://www.mnhs.org/library/findaids/SAM184,xml.xml
/data/source/findingAids/mhs/gr00027.xml
<eadid countrycode="us" mainagencycode="MnHi">gr00027</eadid>
# works, human readable
http://www.mnhs.org/library/findaids/gr00027.xml
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>mit</sourceCode>
<sourceName>Massachusetts Institute of Technology</sourceName>
<!--
/data/source/findingAids/mit/AC.0072-ead.xml
# Apparently missing "/collections" in the middle of the URL.
<eadid countrycode="US" mainagencycode="US-mcm"
url="http://libraries.mit.edu/archives/research/collections-ac/ac72.html">AC 72</eadid>
# This works. human readable, eadid@url is wrong, but can be modified to work
http://libraries.mit.edu/archives/research/collections/collections-ac/ac72.html
/data/source/findingAids/mit/MC.0572-ead.xml
<eadid countrycode="US" mainagencycode="US-mcm"
url="http://libraries.mit.edu/archives/research/collections/collections-mc/mc572.html">MC
572</eadid>
# Works. This is eadid@url unmodified, so clearly some records have @url correct
http://libraries.mit.edu/archives/research/collections/collections-mc/mc572.html
# Works. Odd that ac205 is a directory and not an html file name.
http://libraries.mit.edu/archives/research/collections/collections-ac/ac205/
# There are two files with lowercase ac or mc. Both have missing finding aids.
> grep fn: logs/mit.log| grep -Pv "mit\/MC|mit\/AC" | less
fn: /data/source/findingAids/mit/ac.0048-ead.xml
fn: /data/source/findingAids/mit/mc.0670-ead.xml
# Missing. Unclear why.
/data/source/findingAids/mit/ac.0048-ead.xml
# 404
http://libraries.mit.edu/archives/research/collections/collections-ac/ac48.html
# Missing 404, even after fixing the URL to by adding "/collections"
/data/source/findingAids/mit/mc.0670-ead.xml
<eadid countrycode="US" mainagencycode="US-mcm" url="http://libraries.mit.edu/archives/research/collections-mc/mc670.html">MC 670</eadid>
# 404
http://libraries.mit.edu/archives/research/collections/collections-mc/mc670.html
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>ncsu</sourceCode>
<sourceName>North Carolina State University</sourceName>
<!--
# ncsu does not respond to wget \-\-spider unclear why.
/data/source/findingAids/ncsu/ua023_020.xml
<eadid url="http://www.lib.ncsu.edu/findingaids/ua023_020">ua023_020</eadid>
# Works. Human readable.
http://www.lib.ncsu.edu/findingaids/ua023_020
# Works. Full xml
http://www.lib.ncsu.edu/findingaids/ua023_020.xml
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>nlm</sourceCode>
<sourceName>National Library of Medicine</sourceName>
<!--
/data/source/findingAids/nlm/sydenham.xml
<eadid publicid="PUBLIC "-//National Library of Medicine::History of Medicine
Division//TEXT (US::DNLM::MS C 243::Sydenham Hospital Records)//EN" "sydenham"
countrycode="us" mainagencycode="DNLM">sydenham</eadid>
# Works, human readable
http://oculus.nlm.nih.gov/sydenham
# redirects to
http://oculus.nlm.nih.gov/cgi/f/findaid/findaid-idx?c=nlmfindaid;idno=sydenham
# Works, full text, didno is required
http://oculus.nlm.nih.gov/cgi/f/findaid/findaid-idx?c=nlmfindaid;view=text;didno=sydenham
/data/source/findingAids/nlm/101549021.xml
<eadid publicid="-//National Library of Medicine::History of Medicine Division::Archives and
Modern Manuscripts Collection//TEXT//EN" countrycode="us"
mainagencycode="DNLM">101549021</eadid>
# Works, human readable
http://oculus.nlm.nih.gov/101549021
# Works, full text
http://oculus.nlm.nih.gov/cgi/f/findaid/findaid-idx?c=nlmfindaid;cc=nlmfindaid;view=text;rgn=main;didno=101549021
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>nmaia</sourceCode>
<sourceName>National Museum of the American Indian Archives (Smithsonian Institution)</sourceName>
<!--
/data/source/findingAids/nmaia/NMAI.AC.024.xml
<eadid countrycode="US" mainagencycode="US-MdSuSIAI">AC024_kaplan</eadid>
# Works. Seems odd to only have a pdf.
http://nmai.si.edu/sites/1/files/archivecenter/AC024_kaplan.pdf
# Works. html
http://nmai.si.edu/sites/1/files/archivecenter/AC024_kaplan.html
# The "finding aid" link here goes to the same pdf.
http://siris-archives.si.edu/ipac20/ipac.jsp?session=1E9U6941W0493.58133&profile=all&uri=full=3100001~!282696~!1&ri=1&aspect=Browse&menu=search&source=~!siarchives&ipp=20&spp=20&staffonly=&term=Oaxaca+(Mexico+:+State)&index=PSUBJ&uindex=&aspect=Browse&menu=search&ri=1
-->
<url/>
<identifier/>
</source>
<source>
<sourceCode>nwda</sourceCode>
<sourceName>Northwest Digital Archives</sourceName>
<!--
/data/source/findingAids/nwda/lewis_and_clark_college/OLPb056WHI.xml
<eadid countrycode="us" encodinganalog="identifier"
url="http://nwda.orbiscascade.org/ark:/80444/xv57653" mainagencycode="OrPL"
identifier="80444/xv57653">OLPb056WHI.xml</eadid>
# Works. human readable, The directory name ends in a colon because it is an ark, not a directory name.
http://nwda.orbiscascade.org/ark:/80444/xv57653