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:
Dan Stillman 2007-10-02 00:50:38 +00:00
parent 7db177d7f0
commit a94f14870a

View File

@ -1900,6 +1900,12 @@ Zotero.Translate.prototype._exportGetItem = function() {
Zotero.Translate.prototype._exportToArray = function(returnItem) {
var returnItemArray = returnItem.toArray();
// Remove SQL date from multipart dates
if (returnItemArray.date) {
returnItemArray.date = Zotero.Date.multipartToStr(returnItemArray.date);
}
returnItemArray.uniqueFields = new Object();
// get base fields, not just the type-specific ones