in addition to breaking the 0.8 functionality, and entering incorrect DOIs into our system, this is also a plos-ism that should be removed before the 0.9 public release.
most articles we ingest have a doi with the following format:
doi/10.1371/journal.abcd.1234567
issue image articles have a different format:
doi/10.1371/image.abcd.i01.v01
prepare sip is adding a "journal" to the dois in ext-link and graphic tags in the image article.
ingest is adding a "journal" to the doi of that actual article on ingest.
the article doi is defined in the article xml, specifically in the <article-id pub-id-type="doi"> tag. any uri fixes made by prepare_sip need to respect that doi, no matter what it is. prepare_sip can't make any assumptions about doi format.
ingest must also respect the doi defined by article xml, and cannot make assumptions about doi format.
i'll attach before and after XML for a recently ingested image article.