Skip to content

Commit

Permalink
Remove custom DOI field in form and update DOI placeholders in manusc…
Browse files Browse the repository at this point in the history
…riptData
  • Loading branch information
nlisgo committed Dec 9, 2024
1 parent ad9d38e commit d708f44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ export const generateManuscriptDataTwoStepsAllEvaluationsForm = () => htmlPage(
<label for="author-response-id">Author Response ID:</label>
<input id="author-response-id" name="authorResponseId"/>
</p>
<p>
<label for="doi">Custom DOI:</label>
<input id="doi" name="doi"/>
</p>
<p>
<button type="submit">Submit</button>
</p>
Expand Down
5 changes: 3 additions & 2 deletions src/manuscriptData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const prepareManuscriptStructure = async (
const evaluation = (reviewType: string, date: Date, participants: string[], contentUrl: string) => ({
reviewType,
date: formatDate(date),
doi: `[ ${reviewType}-doi ]`,
participants: participants.map((name) => ({
name,
role: 'curator',
Expand Down Expand Up @@ -123,7 +124,7 @@ const prepareManuscriptStructure = async (

return {
id: versionId,
doi: versionDoi || preprintDoi,
doi: versionDoi || '[ version-doi ]',
publishedDate: formatDate(date),
versionIdentifier,
preprint: {
Expand All @@ -149,7 +150,7 @@ const prepareManuscriptStructure = async (
return {
id,
manuscript: {
doi: preprintNotRevised.doi,
doi: '[ umbrella-doi ]',
publishedDate: formatDate(preprintNotRevised.date),
},
versions: await Promise.all(gatheredPreprints.map(async (preprint, i) => version(
Expand Down

0 comments on commit d708f44

Please sign in to comment.