diff options
author | Frederick Muriuki Muriithi | 2024-12-16 12:30:29 -0600 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-12-16 12:30:29 -0600 |
commit | ff5cbfa7a12fe1d8971ec7c2d1be312a7310b4fe (patch) | |
tree | 1831e02b720b55701285de33ae94346a16daf9b1 /uploader/templates | |
parent | 2ee4949f29b4c1e16b949c18a17b9e5b1300b8ba (diff) | |
download | gn-uploader-ff5cbfa7a12fe1d8971ec7c2d1be312a7310b4fe.tar.gz |
Use January as default month
Sometimes, the publication date only contains the year.
Diffstat (limited to 'uploader/templates')
-rw-r--r-- | uploader/templates/phenotypes/add-phenotypes-base.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uploader/templates/phenotypes/add-phenotypes-base.html b/uploader/templates/phenotypes/add-phenotypes-base.html index c0dd35d..79d1f05 100644 --- a/uploader/templates/phenotypes/add-phenotypes-base.html +++ b/uploader/templates/phenotypes/add-phenotypes-base.html @@ -223,7 +223,7 @@ "journal": details[pubmed_id].fulljournalname, "volume": details[pubmed_id].volume, "pages": details[pubmed_id].pages, - "month": months[_date[1].toLowerCase()], + "month": _date.length > 1 ? months[_date[1].toLowerCase()] : "jan", "year": _date[0], }; }; |