Supporting read of GRSF records

This commit is contained in:
Luca Frosini 2023-05-31 16:35:12 +02:00
parent 43b8fbbacd
commit 1082e60f81
1 changed files with 4 additions and 1 deletions

View File

@ -837,7 +837,10 @@ public class CKANPackage extends CKAN implements Moderated {
this.itemID = result.get(ID_KEY).asText();
}
this.itemTitle = result.get(TITLE_KEY).asText();
this.itemURL = getExtraField(result, EXTRAS_ITEM_URL_KEY).asText();
JsonNode node = getExtraField(result, EXTRAS_ITEM_URL_KEY);
if(node!=null) {
this.itemURL = node.asText();
}
}