If a JATS XML file has a <self-uri> tag that is not of type "pdf", we will assume it is a web URI for the article.
Rather than a publisher having to provide their preferences for how to generate a URI for each article, by specifying a preferences file doi_pattern value, the Crossref deposit logic can use the value taken from the <self-uri> tag.
It might be suitable to use this logic as the default, and only if a doi_pattern is specified in the preferences file, then instead generate a URI based on the pattern. That would mean removing the default value for doi_pattern in the preferences file.
An alternative could be adding a use_self_uri preference to be True or False, and whether to take the self-uri will consider that preference.
This idea is similar to Crossref's web deposit form https://www.crossref.org/webDeposit/ when uploading an NLM file, it can look for a self-uri.
If a JATS XML file has a
<self-uri>
tag that is not of type "pdf", we will assume it is a web URI for the article.Rather than a publisher having to provide their preferences for how to generate a URI for each article, by specifying a preferences file
doi_pattern
value, the Crossref deposit logic can use the value taken from the<self-uri>
tag.It might be suitable to use this logic as the default, and only if a
doi_pattern
is specified in the preferences file, then instead generate a URI based on the pattern. That would mean removing the default value fordoi_pattern
in the preferences file.An alternative could be adding a
use_self_uri
preference to be True or False, and whether to take theself-uri
will consider that preference.This idea is similar to Crossref's web deposit form https://www.crossref.org/webDeposit/ when uploading an NLM file, it can look for a
self-uri
.