Added pref for sorting notes chronologically by dateAdded (extensions.zotero.sortNotesChronologically)

This commit is contained in:
Dan Stillman 2007-11-05 22:29:48 +00:00
parent 6bb2713c24
commit b625cc9eed
2 changed files with 7 additions and 0 deletions

View File

@ -1481,6 +1481,12 @@ Zotero.Item.prototype.getNotes = function(){
// TODO: move titles into itemNotes table
var sql = "SELECT N.itemID, title FROM itemNotes N NATURAL JOIN items "
+ "LEFT JOIN itemNoteTitles USING (itemID) WHERE sourceItemID=" + this.getID();
if (Zotero.Prefs.get('sortNotesChronologically')) {
sql += " ORDER BY dateAdded";
return Zotero.DB.columnQuery(sql);
}
var notes = Zotero.DB.query(sql);
if (!notes) {
return false;

View File

@ -26,6 +26,7 @@ pref("extensions.zotero.recursiveCollections", false);
pref("extensions.zotero.attachmentRenameFormatString", '{%c - }{%y - }{%t{50}}');
pref("extensions.zotero.capitalizeTitles", true);
pref("extensions.zotero.launchNonNativeFiles", false);
pref("extensions.zotero.sortNotesChronologically", false);
pref("extensions.zotero.lastCreatorFieldMode",0);
pref("extensions.zotero.lastAbstractExpand",0);