Added pref for sorting notes chronologically by dateAdded (extensions.zotero.sortNotesChronologically)
This commit is contained in:
parent
6bb2713c24
commit
b625cc9eed
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user