Because back in 2.4.8 we used this field of issue and paper as “Custom DOI field” where patten was %x for the DOI plugin and crossref to deposit.
Also this field by default will affect the final URL of the published issue & paper.
Our format before was: xxx.1.1
In current OJS we are not allow to input this value.
So I changed these files:
\lib\pkp\schemas\context.json
“urlPath”: {
“type”: “string”,
“validation”: [
“regex:/^[a-zA-Z0-9]+([\-_.][a-zA-Z0-9]+)*$/”
],
“apiSummary”: true
}
\controllers\grid\issues\form\IssueForm.inc.php
$this->addCheck(new FormValidatorRegExp($this, ‘urlPath’, ‘optional’, ‘validator.alpha_dash’, ‘/^[a-zA-Z0-9]+([\-_.][a-zA-Z0-9]+)*$/’));
\controllers\grid\issues\form\IssueGalleyForm.inc.php
$this->addCheck(new FormValidatorRegExp($this, ‘urlPath’, ‘optional’, ‘validator.alpha_dash’, ‘/^[a-zA-Z0-9]+([\-_.][a-zA-Z0-9]+)*$/’));
With above 3 changes i am now able to put xxxx.1.1 into the url Path field in either create issue panel and edit issue panel. I was happy.
Then i want to make submmison workflow#publication panel - Issue tab to be the same to add url path for articles.
I changed:
\controllers\grid\articleGalleys\form\ArticleGalleyForm.inc.php
$this->addCheck(new FormValidatorRegExp($this, ‘urlPath’, ‘optional’, ‘validator.alpha_dash’, ‘/^[a-zA-Z0-9]+([\-_.][a-zA-Z0-9]+)*$/’));
Update:
Found the last reg expression in:
\lib\pkp\schemas\publication.json
"urlPath": {
"type": "string",
"description": "An optional path to use in the URL instead of the ID.",
"validation": [
"nullable",
"regex:/^[a-zA-Z0-9]+([\\-_.][a-zA-Z0-9]+)*$/"
]
So with above changes all field can input dots now.
My question is: DOI plugin is not generating new DOI using the url path field value:
Use the pattern entered below to generate DOI suffixes. Use %j for journal initials, %v for the volume number, %i for the issue number, %Y for the year, %a for the OJS article ID, %g for the OJS galley ID, %f for the OJS file ID, %p for the page number and %x for "Custom Identifier".
%x
Current warning is: You can not generate a DOI because one or more parts of the DOI pattern are missing data. You may need to assign the publication to an issue, set a publisher ID or enter page numbers.
So i assume %x does not read from URL path slot anymore. Which field does it read from now?
Also crossref plugin seems does not support register by whole issue, why is that?
Thanks
Stanley