Revision: 29200
http://sourceforge.net/p/bibdesk/svn/29200
Author: hofman
Date: 2025-04-26 13:56:18 +0000 (Sat, 26 Apr 2025)
Log Message:
-----------
Don't load several batches at once
Modified Paths:
--------------
trunk/bibdesk/BDSKSRUGroupServer.h
trunk/bibdesk/BDSKSRUGroupServer.m
Modified: trunk/bibdesk/BDSKSRUGroupServer.h
===================================================================
--- trunk/bibdesk/BDSKSRUGroupServer.h 2025-04-26 13:51:48 UTC (rev 29199)
+++ trunk/bibdesk/BDSKSRUGroupServer.h 2025-04-26 13:56:18 UTC (rev 29200)
@@ -54,7 +54,6 @@
NSInteger availableResults;
NSInteger fetchedResults;
NSInteger requestedResults;
- NSInteger limitResults;
NSInteger downloadState;
NSString *errorMessage;
}
Modified: trunk/bibdesk/BDSKSRUGroupServer.m
===================================================================
--- trunk/bibdesk/BDSKSRUGroupServer.m 2025-04-26 13:51:48 UTC (rev 29199)
+++ trunk/bibdesk/BDSKSRUGroupServer.m 2025-04-26 13:56:18 UTC (rev 29200)
@@ -44,7 +44,6 @@
#import "NSURL_BDSKExtensions.h"
#define MAX_RESULTS 100
-#define MAX_TOTAL_RESULTS 100
enum { BDSKIdleState, BDSKSearchState, BDSKFetchState };
@@ -77,7 +76,6 @@
needsReset = NO;
availableResults = 0;
fetchedResults = 0;
- limitResults = 0;
requestedResults = 0;
download = nil;
downloadState = BDSKIdleState;
@@ -148,7 +146,6 @@
[self setSearchTerm:aSearchTerm];
[self resetSearch];
} else if ([self isRetrieving] == NO) {
- limitResults = MIN(availableResults, fetchedResults +
MAX_TOTAL_RESULTS);
[self fetch];
}
} else {
@@ -253,7 +250,6 @@
NSString *countString = [[[root
nodesForXPath:@"/zs:searchRetrieveResponse[1]/zs:numberOfRecords[1]"
error:NULL] lastObject] stringValue];
availableResults = [countString integerValue];
- limitResults = MIN(availableResults, fetchedResults +
MAX_TOTAL_RESULTS);
[self fetch];
@@ -292,10 +288,6 @@
downloadState = BDSKIdleState;
[group addPublications:nil];
}
- else if (limitResults > [self numberOfFetchedResults]) {
- [group addPublications:pubs];
- [self fetch];
- }
else {
// set before addPublications:
downloadState = BDSKIdleState;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit