From 5e6baa14636077789c7f8b4727c01b949df201c1 Mon Sep 17 00:00:00 2001 From: Marcos Lopez Gonzalez Date: Mon, 26 Feb 2024 18:24:01 +0100 Subject: [PATCH] fixed migration tool --- .../org/gbif/vocabulary/importer/VocabularyImporter.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vocabulary-importer/src/main/java/org/gbif/vocabulary/importer/VocabularyImporter.java b/vocabulary-importer/src/main/java/org/gbif/vocabulary/importer/VocabularyImporter.java index 32ee1afa..d63db9c0 100644 --- a/vocabulary-importer/src/main/java/org/gbif/vocabulary/importer/VocabularyImporter.java +++ b/vocabulary-importer/src/main/java/org/gbif/vocabulary/importer/VocabularyImporter.java @@ -310,7 +310,10 @@ private Concept migrateConcept( vocabularyName, c.getName(), ConceptClient.ListParams.of( - null, new PagingRequest(page.getOffset() + page.getLimit(), page.getLimit()))); + null, + new PagingRequest( + alternativeLables.getOffset() + alternativeLables.getLimit(), + alternativeLables.getLimit()))); } page = new PagingRequest(0, 100); @@ -328,7 +331,8 @@ private Concept migrateConcept( conceptClient.listHiddenLabels( vocabularyName, c.getName(), - new PagingRequest(page.getOffset() + page.getLimit(), page.getLimit())); + new PagingRequest( + hiddenLabels.getOffset() + hiddenLabels.getLimit(), hiddenLabels.getLimit())); } return created.getConcept();