aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-12-16 12:30:29 -0600
committerFrederick Muriuki Muriithi2024-12-16 12:30:29 -0600
commitff5cbfa7a12fe1d8971ec7c2d1be312a7310b4fe (patch)
tree1831e02b720b55701285de33ae94346a16daf9b1
parent2ee4949f29b4c1e16b949c18a17b9e5b1300b8ba (diff)
downloadgn-uploader-ff5cbfa7a12fe1d8971ec7c2d1be312a7310b4fe.tar.gz
Use January as default month
Sometimes, the publication date only contains the year.
-rw-r--r--uploader/templates/phenotypes/add-phenotypes-base.html2
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],
};
};