Remove SQL date part from multipart dates in translate.js -- this prevents date from appearing twice in RIS and other output formats
This commit is contained in:
parent
7db177d7f0
commit
a94f14870a
|
@ -1900,6 +1900,12 @@ Zotero.Translate.prototype._exportGetItem = function() {
|
||||||
|
|
||||||
Zotero.Translate.prototype._exportToArray = function(returnItem) {
|
Zotero.Translate.prototype._exportToArray = function(returnItem) {
|
||||||
var returnItemArray = returnItem.toArray();
|
var returnItemArray = returnItem.toArray();
|
||||||
|
|
||||||
|
// Remove SQL date from multipart dates
|
||||||
|
if (returnItemArray.date) {
|
||||||
|
returnItemArray.date = Zotero.Date.multipartToStr(returnItemArray.date);
|
||||||
|
}
|
||||||
|
|
||||||
returnItemArray.uniqueFields = new Object();
|
returnItemArray.uniqueFields = new Object();
|
||||||
|
|
||||||
// get base fields, not just the type-specific ones
|
// get base fields, not just the type-specific ones
|
||||||
|
|
Loading…
Reference in New Issue
Block a user