Open qifeng-bai opened 1 month ago
When we post ["dr28104","dr27995"]
["dr28104","dr27995"]
to https://collections.ala.org.au/ws/find/dataResource
https://collections.ala.org.au/ws/find/dataResource
It returns a partial JsonObject -> It returns an array of STRING, not an array of Collection object.
Here is the result:
[ "{ \"name\":\"1\",\"acronym\":null,\"uid\":\"dr28104\",\"guid\":null,\"address\":null,\"phone\":null,\"email\":null,\"pubShortDescription\":null,\"pubDescription\":null,\"techDescription\":null,\"dataCollectionProtocolName\":null,\"dataCollectionProtocolDoc\":null,\"suitableFor\":null,\"suitableForOtherDetail\":null,\"focus\":null,\"latitude\":null,\"longitude\":null,\"state\":null,\"websiteUrl\":null,\"alaPublicUrl\":\"https://collections.ala.org.au/public/show/dr28104\",\"networkMembership\":null,\"hubMembership\":[],\"taxonomyCoverageHints\":[],\"attributions\":[],\"dateCreated\":\"2024-09-18T03:46:45Z\",\"lastUpdated\":\"2024-09-18T03:46:45Z\",\"userLastModified\":\"203499\",\"rights\":null,\"licenseType\":\"other\",\"licenseVersion\":null,\"citation\":null,\"resourceType\":\"species-list\",\"dataGeneralizations\":null,\"informationWithheld\":null,\"permissionsDocument\":null,\"permissionsDocumentType\":\"Other\",\"contentTypes\":[],\"hasMappedCollections\":false,\"status\":\"identified\",\"provenance\":null,\"harvestFrequency\":0,\"lastChecked\":null,\"dataCurrency\":null,\"harvestingNotes\":null,\"publicArchiveAvailable\":false,\"publicArchiveUrl\":\"https://dwca-exports.ala.org.au/dr28104.zip\",\"gbifArchiveUrl\":\"https://dwca-exports.ala.org.au/dr28104.zip\",\"downloadLimit\":0,\"gbifDataset\":false,\"isShareableWithGBIF\":true,\"verified\":false,\"gbifRegistryKey\":null,\"doi\":null}", "{\"name\":\"10 Priority Marine Pests Gippsland\",\"acronym\":null,\"uid\":\"dr27995\",\"guid\":null,\"address\":null,\"phone\":null,\"email\":null,\"pubShortDescription\":null,\"pubDescription\":null,\"techDescription\":null,\"dataCollectionProtocolName\":null,\"dataCollectionProtocolDoc\":null,\"suitableFor\":null,\"suitableForOtherDetail\":null,\"focus\":null,\"latitude\":null,\"longitude\":null,\"state\":null,\"websiteUrl\":null,\"alaPublicUrl\":\"https://collections.ala.org.au/public/show/dr27995\",\"networkMembership\":null,\"hubMembership\":[],\"taxonomyCoverageHints\":[],\"attributions\":[],\"dateCreated\":\"2024-09-10T02:12:09Z\",\"lastUpdated\":\"2024-09-10T02:12:09Z\",\"userLastModified\":\"210103\",\"rights\":null,\"licenseType\":\"other\",\"licenseVersion\":null,\"citation\":null,\"resourceType\":\"species-list\",\"dataGeneralizations\":null,\"informationWithheld\":null,\"permissionsDocument\":null,\"permissionsDocumentType\":\"Other\",\"contentTypes\":[],\"hasMappedCollections\":false,\"status\":\"identified\",\"provenance\":null,\"harvestFrequency\":0,\"lastChecked\":null,\"dataCurrency\":null,\"harvestingNotes\":null,\"publicArchiveAvailable\":false,\"publicArchiveUrl\":\"https://dwca-exports.ala.org.au/dr27995.zip\",\"gbifArchiveUrl\":\"https://dwca-exports.ala.org.au/dr27995.zip\",\"downloadLimit\":0,\"gbifDataset\":false,\"isShareableWithGBIF\":true,\"verified\":false,\"gbifRegistryKey\":null,\"doi\":null}" ]
Code: https://github.com/AtlasOfLivingAustralia/collectory/blob/develop/grails-app/controllers/au/org/ala/collectory/DataController.groovy#L590
ala-bie-hub and atlas-index are currently using this service so any changes to it will need to be made there also.
When we post
["dr28104","dr27995"]
to
https://collections.ala.org.au/ws/find/dataResource
It returns a partial JsonObject -> It returns an array of STRING, not an array of Collection object.
Here is the result:
Code: https://github.com/AtlasOfLivingAustralia/collectory/blob/develop/grails-app/controllers/au/org/ala/collectory/DataController.groovy#L590