Skip to content

Commit d188361

Browse files
committed
MakeDataCount MDC API - Use cursor method for pagination to fix infinite loop issue
1 parent 2faca62 commit d188361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/edu/harvard/iq/dataverse/api/MakeDataCountApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public Response updateCitationsForDataset(@PathParam("id") String id) throws IOE
160160
url = new URI(JvmSettings.DATACITE_REST_API_URL.lookup(pidProvider.getId()) +
161161
"/events?doi=" +
162162
authorityPlusIdentifier +
163-
"&source=crossref&page[size]=1000").toURL();
163+
"&source=crossref&page[size]=1000&page[cursor]=1").toURL();
164164
} catch (URISyntaxException e) {
165165
//Nominally this means a config error/ bad DATACITE_REST_API_URL for this provider
166166
logger.warning("Unable to create URL for " + persistentId + ", pidProvider " + pidProvider.getId());

0 commit comments

Comments
 (0)