Disable debug output for Zotero.Date.strToDate()

Too messy, and unlikely that we need it in submitted output
This commit is contained in:
Dan Stillman 2017-06-14 02:58:24 -04:00
parent 4032edcf7d
commit 1bb6217ec1

View File

@ -387,7 +387,7 @@ Zotero.Date = new function(){
if(date.month) date.month--; // subtract one for JS style if(date.month) date.month--; // subtract one for JS style
else delete date.month; else delete date.month;
Zotero.debug("DATE: retrieved with algorithms: "+JSON.stringify(date)); //Zotero.debug("DATE: retrieved with algorithms: "+JSON.stringify(date));
parts.push( parts.push(
{ part: m[1], before: true }, { part: m[1], before: true },
@ -402,7 +402,7 @@ Zotero.Date = new function(){
parts.push({ part: string }); parts.push({ part: string });
} }
} else { } else {
Zotero.debug("DATE: could not apply algorithms"); //Zotero.debug("DATE: could not apply algorithms");
parts.push({ part: string }); parts.push({ part: string });
} }
@ -419,7 +419,7 @@ Zotero.Date = new function(){
{ part: m[1], before: true }, { part: m[1], before: true },
{ part: m[3] } { part: m[3] }
); );
Zotero.debug("DATE: got year (" + date.year + ", " + JSON.stringify(parts) + ")"); //Zotero.debug("DATE: got year (" + date.year + ", " + JSON.stringify(parts) + ")");
break; break;
} }
} }
@ -447,7 +447,7 @@ Zotero.Date = new function(){
{ part: m[1], before: "m" }, { part: m[1], before: "m" },
{ part: m[3], after: "m" } { part: m[3], after: "m" }
); );
Zotero.debug("DATE: got month (" + date.month + ", " + JSON.stringify(parts) + ")"); //Zotero.debug("DATE: got month (" + date.month + ", " + JSON.stringify(parts) + ")");
break; break;
} }
} }
@ -481,7 +481,7 @@ Zotero.Date = new function(){
i, 1, i, 1,
{ part: part } { part: part }
); );
Zotero.debug("DATE: got day (" + date.day + ", " + JSON.stringify(parts) + ")"); //Zotero.debug("DATE: got day (" + date.day + ", " + JSON.stringify(parts) + ")");
break; break;
} }
} }