Addresses #493, Checkbox to display contents of subcollections when viewing collection

I don't know that this merits an option in the prefs, but here's a hidden pref for displaying collection items recursively
This commit is contained in:
Dan Stillman 2007-02-18 04:45:03 +00:00
parent a908e087ac
commit ca2ce1fc9d
2 changed files with 8 additions and 1 deletions

View File

@ -729,6 +729,9 @@ Zotero.ItemGroup.prototype.getSearchObject = function() {
if (this.isCollection())
{
s.addCondition('collectionID', 'is', this.ref.getID());
if (Zotero.Prefs.get('recursiveCollections')) {
s.addCondition('recursive', 'true');
}
}
else if (this.isSearch())
{
@ -744,6 +747,9 @@ Zotero.ItemGroup.prototype.getSearchObject = function() {
else if (this.isCollection()){
s.addCondition('noChildren', 'true');
s.addCondition('collectionID', 'is', this.ref.getID());
if (Zotero.Prefs.get('recursiveCollections')) {
s.addCondition('recursive', 'true');
}
}
else if (this.isSearch()){
s.load(this.ref['id']);

View File

@ -1,6 +1,5 @@
// These are DEFAULT prefs for the INSTALL. You will have to reinstall the extension to see differences!
// Display internal shortcut
pref("extensions.zotero.debug.log",false);
pref("extensions.zotero.debug.level",5);
pref("extensions.zotero.automaticScraperUpdates",true);
@ -15,6 +14,8 @@ pref("extensions.zotero.downloadAssociatedFiles",false);
pref("extensions.zotero.reportTranslationFailure",true);
pref("extensions.zotero.automaticTags",true);
pref("extensions.zotero.fontSize", "1.0");
pref("extensions.zotero.recursiveCollections", false);
pref("extensions.zotero.lastCreatorFieldMode",0);
pref("extensions.zotero.lastAbstractExpand",0);