Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Landing pages with multiple assoc. datasets show duplicates. #7

Open
SimonGoring opened this issue Aug 19, 2019 · 1 comment
Open

Comments

@SimonGoring
Copy link
Contributor

Not sure if this is a lnading page issue or the API, but when we check associated sites for dataset 24302 it looks like the associated datasets are getting duplicated. Each associated dataset should only show up once.

@SimonGoring
Copy link
Contributor Author

Looking at the API response it seems to be a result of a single core having multiple age models, so it's the agerange thats getting plit. It ought to be aggregated:

{
"site": {
"siteid": 3212,
"sitename": "Kupena",
"sitedescription": "Peat bog. Physiography: Depression in slope of Rhodopes mountain. Surrounding vegetation: Pinus sylvestris forest and admixture.",
"sitenotes": null,
"geography": "{\"type\":\"Point\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"EPSG:4326\"}},\"coordinates\":[24.33333,41.98333]}",
"altitude": 1356,
"collectionunitid": 17634,
"collectionunit": "Kepena-3",
"handle": "KUPENA3",
"unittype": "Core",
"datasets": [
{
"doi": [
"10.21233/VJ9N-BT57"
],
"agerange": {
"units": "Calibrated radiocarbon years BP",
"ageold": 33522,
"ageyoung": -61
},
"database": "European Pollen Database",
"datasetid": 24032,
"datasetpi": [
{
"initials": "S.",
"contactid": 1275,
"firstname": "Spassimir",
"familyname": "Tonkov",
"contactname": "Tonkov, Spassimir"
}
],
"datasettype": "pollen",
"datasetnotes": "Data contributed by Tonkov, S."
}
]
}
},
{
"site": {
"siteid": 3212,
"sitename": "Kupena",
"sitedescription": "Peat bog. Physiography: Depression in slope of Rhodopes mountain. Surrounding vegetation: Pinus sylvestris forest and admixture.",
"sitenotes": null,
"geography": "{\"type\":\"Point\",\"crs\":{\"type\":\"name\",\"properties\":{\"name\":\"EPSG:4326\"}},\"coordinates\":[24.33333,41.98333]}",
"altitude": 1356,
"collectionunitid": 17634,
"collectionunit": "Kepena-3",
"handle": "KUPENA3",
"unittype": "Core",
"datasets": [
{
"doi": [
"10.21233/VJ9N-BT57"
],
"agerange": {
"units": "Radiocarbon years BP",
"ageold": 29750,
"ageyoung": 0
},
"database": "European Pollen Database",
"datasetid": 24032,
"datasetpi": [
{
"initials": "S.",
"contactid": 1275,
"firstname": "Spassimir",
"familyname": "Tonkov",
"contactname": "Tonkov, Spassimir"
}
],
"datasettype": "pollen",
"datasetnotes": "Data contributed by Tonkov, S."
}
]
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant