nemac / data_snapshots

0 stars 2 forks source link

Update Download dialog box with descriptions in David Stroud's widget #59

Closed LuAnn closed 9 years ago

LuAnn commented 10 years ago

(I'm not sure if this was on a list from David Stroud or not, so I'm posting it here)

We recommended some additional description beyond the pixel widths. Click Download at http://www.cpcpara.ncep.noaa.gov/datSnapWebBuild/datSnap_Dev1.php to see them. Note that the two columns aren't vertically aligned in David's widget, but I hope they will be in the real deal. :)

frimmel commented 10 years ago

This will need to be resolved on the content generation side. The way the downloads section widget works is that it accepts a list of links and descriptions and then renders that list. This allows it to have any number of downloads for data sources which might have more or fewer than 5 resolutions, and is in general more flexible than tying download links to specific targets. Any additional description desired will need to be added to the csv's generated by Hunter, Larry, etc & will be automatically supported once it is.

LuAnn commented 10 years ago

Thanks for this info, John.

Can you or Mark give us an example of how we can control this? As everything is on Larry's server, perhaps speaking or emailing directly with him would be the best way for us to make additional information available in the download dialog box.

Willing to do what it takes smiles, LuAnn

On Thu, Aug 7, 2014 at 11:03 AM, John Frimmel notifications@github.com wrote:

This will need to be resolved on the content generation side. The way the downloads section widget works is that it accepts a list of links and descriptions and then renders that list. This allows it to have any number of downloads for data sources which might have more or fewer than 5 resolutions, and is in general more flexible than tying download links to specific targets. Any additional description desired will need to be added to the csv's generated by Hunter, Larry, etc & will be automatically supported once it is.

— Reply to this email directly or view it on GitHub https://github.com/nemac/data-snapshots/issues/59#issuecomment-51508781.

LuAnn Dahlman Communication Specialist NOAA Climate Program Office 2020 LLC an Acentia Company Phone: 480-984-8860 Cell: 480-734-3124

frimmel commented 10 years ago

You will need to get in touch with Hunter & Larry and have them modify the generated csv files to include the extra metadata in the download title field.

Currently the format of each line of the csv file is this:

"droughtoutlook-monthly-cpc-2013-08-00","droughtoutlook-monthly-cpc","2013","08-00","droughtoutlook-monthly-cpc for 2013-08-00","http://54.235.203.129/Images/droughtoutlook-monthly-cpc/web/droughtoutlook-monthly-cpc--web--2013-08-00.png","","2014-05-22","620, 1000, hd, hdsd, diy","http://54.235.203.129/Images/droughtoutlook-monthly-cpc/620/droughtoutlook-monthly-cpc--620x460--2013-08-00.png,http://54.235.203.129/Images/droughtoutlook-monthly-cpc/1000/droughtoutlook-monthly-cpc--1000x704--2013-08-00.png,http://54.235.203.129/Images/droughtoutlook-monthly-cpc/hd/droughtoutlook-monthly-cpc--1920x1080--2013-08-00.png,http://54.235.203.129/Images/droughtoutlook-monthly-cpc/hdsd/droughtoutlook-monthly-cpc--1920x1080--2013-08-00.png,http://54.235.203.129/Images/droughtoutlook-monthly-cpc/diy/droughtoutlook-monthly-cpc--4096x2048--2013-08-00.zip"

They would need to be changed to be something like this:

"droughtoutlook-monthly-cpc-2013-08-00","droughtoutlook-monthly-cpc","2013","08-00","droughtoutlook-monthly-cpc for 2013-08-00","http://54.235.203.129/Images/droughtoutlook-monthly-cpc/web/droughtoutlook-monthly-cpc--web--2013-08-00.png","","2014-05-22"," Small: 620px, Large: 1000px, High Definition: 1920px, HD w/SD Title Safe: 1920px, Full Resolution Assets","http://54.235.203.129/Images/droughtoutlook-monthly-cpc/620/droughtoutlook-monthly-cpc--620x460--2013-08-00.png,http://54.235.203.129/Images/droughtoutlook-monthly-cpc/1000/droughtoutlook-monthly-cpc--1000x704--2013-08-00.png,http://54.235.203.129/Images/droughtoutlook-monthly-cpc/hd/droughtoutlook-monthly-cpc--1920x1080--2013-08-00.png,http://54.235.203.129/Images/droughtoutlook-monthly-cpc/hdsd/droughtoutlook-monthly-cpc--1920x1080--2013-08-00.png,http://54.235.203.129/Images/droughtoutlook-monthly-cpc/diy/droughtoutlook-monthly-cpc--4096x2048--2013-08-00.zip"

frimmel commented 9 years ago

Fixed on the server side