-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unitdate can also be child of unittitle #3
Comments
I've since updated how the test works for unittitle and/or unitdate. I think that the following should work when the context is the "did" element of any component in the "dsc": https://github.com/fordmadox/schematrons/blob/master/ArchivesSpace-EAD-validator.sch#L80-L83 Also, I never did figure out why smart quotes were throwing errors, but I'd like to get to the bottom of that at some point! For now, I've just taken that rule out of the schematron file. I still get the error on our local instances of ASpace, but when testing on a new installation of version 1.3 on my laptop, I don't have any problems. Have you found anything else that's caused trouble for importing EAD? Most recently, I discovered that the importer doesn't like EAD-extent encoding that looks like this: <extent @Unit="extent_value">extent_number, so I added a few tests for that. |
It sounds like I should still test how those unitdates are tested, though. Hopefully I can get to that tomorrow. |
The latest validation issue I found:
AS Import error message is:
I've added that case to my AS prep stylesheet
Although, since I wrote the initial version of that stylesheet, I believe they fixed SOME of the AS doesn't like empty elements problems in the importer. I haven't gone back and tested them or tried to test generalizing the rule beyond the elements where I found problems. I fact, on this latest, I'm not sure if it's specifically the empty |
Most of our guides have unitdate as a child of unittitle .
This is both valid EAD and accepted/ingested by ArchivesSpace, but your schematron rules are flagging it as missing unitdate.
I'm just learning schematron, but I tried just adding that case to this test and it seems to work properly so far.
Or more concisely, this also seems to work:
[ps. did you ever figure out why smart quotes are giving you errors ? ]
The text was updated successfully, but these errors were encountered: