data.gov icon indicating copy to clipboard operation
data.gov copied to clipboard

Unknown Contact Email for non-data.json datasets

Open FuhuXia opened this issue 3 years ago • 2 comments

On catalog, datasets always show "Unknown" as value for the field Contact Email. It only happens to datasets harvested from non-data.json harvest type.

How to reproduce

Example dataset 1 Example dataset 2

Expected behavior

Display correct email address if there is a valid value. image

Actual behavior

image

It displays Unknown as value. But the Unknown is actually hyper-linked to a valid email address.

Sketch

FuhuXia avatar Nov 03 '21 19:11 FuhuXia

@hkdctol this is the issue, it's already created. We have another dataset use case of this: https://catalog.data.gov/dataset/large-scale-international-boundaries3 I believe there is something fishy with this logic, and we may be able to fix this to the desired outcome: https://github.com/GSA/ckanext-datagovtheme/blob/main/ckanext/datagovtheme/templates/templates_new/package/read.html#L353-L359

jbrown-xentity avatar Aug 26 '22 17:08 jbrown-xentity

updated link to the above: https://github.com/GSA/ckanext-datagovtheme/blob/main/ckanext/datagovtheme/templates/package/read.html#L353-L359

btylerburton avatar Oct 03 '22 19:10 btylerburton

I don't remember the exact reason for why the fix worked, but it had to do the template not handling the unknown case properly. Either way, the example datasets above have been fixed and this is actually completed.

nickumia-reisys avatar Feb 02 '23 22:02 nickumia-reisys