Skip to content

Commit

Permalink
Make publication date required for JScholarship. Treat properly as a …
Browse files Browse the repository at this point in the history
…date. Use localized date format for date picker display.
  • Loading branch information
markpatton committed Nov 25, 2024
1 parent 9b92737 commit c3926c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,16 @@
},
"publicationDate": {
"type": "date",
"label": "Publication Date <small class=\"text-muted\">(optional)</small>",
"label": "Publication Date <small class=\"text-muted\"></small>",
"hidden": false,
"helpersPosition": "above",
"validate": true,
"inputType": "date",
"fieldClass": "date-time-picker",
"picker": {
"format": "L",
"allowInputToggle": true
},
"order": 8
},
"abstract": {
Expand Down Expand Up @@ -308,12 +316,11 @@
"label": "Embargo End Date",
"helper": "<i>After the embargo end date, your submission manuscripts or article can be made public. <b>If this publication is not under embargo, please leave this field blank.<b></i>",
"helpersPosition": "above",
"placeholder": "dd/mm/yyyy",
"validate": true,
"inputType": "date",
"fieldClass": "date-time-picker",
"picker": {
"format": "MM/DD/YY",
"format": "L",
"allowInputToggle": true
},
"order": 12,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"$ref": "global.json#/properties/authors"
}
},
"required": ["authors"]
"required": ["authors", "publicationDate"]
},
"options": {
"$ref": "global.json#/options"
Expand Down

0 comments on commit c3926c1

Please sign in to comment.