With Chesnutt, we have a problem where we link to files in the tei (either in the body of the text, in the footnotes, or in the previous/next links in the header) and some of those files might not be available in production.
Suggested fix, if necessary (we my just get them all published before a fix is needed)
All in data repo:
In XSLT (tei_to_html.xsl):
Read in the config/allowlist.txt file <- this is the part I'm not sure about, if XSLT won't allow it we might be able to pass it in as a variable using datura
For every link in the body of the document (inline links, footnotes, etc) make a choose statement and only create the link if the ID matches an id in the allowlist
In Ruby (tei_to_es.rb)
for previous/next link population, check first if the id is in the allowlist. Will already has a working example of this in the file_csv file to check for links for the correspondence catalog.
Note: This could potentially be a problem for any site that uses an allow list.
With Chesnutt, we have a problem where we link to files in the tei (either in the body of the text, in the footnotes, or in the previous/next links in the header) and some of those files might not be available in production.
Suggested fix, if necessary (we my just get them all published before a fix is needed)
All in data repo:
Note: This could potentially be a problem for any site that uses an allow list.