mudrod
mudrod copied to clipboard
Add thumbnail image
Add a thumbnail image to the dataset detail page and possibly search result list as well.
I need more information. What image, is it being generated somewhere?
@gxtchen They were talking about the thumbnail image that shows up when you do a search in PO.DAAC now:
https://podaac.jpl.nasa.gov/datasetlist?search=wind
Maybe you can scrape it straight from PO.DAAC?
@fgreg @gxtchen Actually, the image URL of each dataset is contained in the metadata attribute "Dataset-ImageUrl". For instance, "Dataset-ImageUrl": "https://podaac.jpl.nasa.gov/Podaac/thumbnails/CCMP_MEASURES_ATLAS_L3_OW_L2_5_SSMI_F8_WIND_VECTORS_FLK.jpg"
Or, if my guess is correct, maybe we can just create the image URL using JS. As you can see, the image URL is just "https://podaac.jpl.nasa.gov/Podaac/thumbnails/" + dataset_ShortName + ".jpg".