Re: [thredds] Missing tdsDap.css -- was: (no subject)

Hi James,

Thank you for the offer - that would be great! Is there an open repository
with your current version of the page?

Thanks!

Sean


On Mon, Feb 29, 2016 at 11:09 AM, James Gallagher <jgallagher@xxxxxxxxxxx>
wrote:

>
>
> On February 29, 2016 at 09:20:39, Sean Arms (sarms@xxxxxxxx) wrote:
>
> Ok, I think I found the issue...
>
> In the "head" element of the opendap html page, there is a "base" element
> that points to opendap.org, which should force all relative links in the
> html file, like the one to the css file, to use that base (base is a
> standard HTML4 element). However, it looks like this might be implemented
> inconsistently among different browsers. For example, in the developer
> tools in Safari, I can click the "/thredds/tdsDap.css" link and it will
> take me to the actual css file distributed with the war file. Yay.
>
> The css appears to be applied on the page (again, in Safari), even though
> the browser should be looking here for the css if it is obeying the base
> element:
>
> http://www.opendap.org/online_help_files/thredds/tdsDap.css
>
> but in other places the base element is working as intended by HTML4. For
> example, the base element is used to take users to the help page for the
> various "blue" links on the left side of the page (e.g. Action, Data URL,
> Global Attributes, etc.) and works as expected.
>
> There is also a link to a perl script hosted at Unidata that has been dead
> for quite some time...no idea about that one.
>
> So, in the end, the cruftyness of the opendap html page bites us again (it
> used to say it was tested on Netscape 4.6, so that's something, right?). We
> need to do a full review/refactor of that page and get it up to modern
> standards.
>
> Sean, et al.,
>
> Nathan has a completely new version of that ‘page.’ I never understood why
> TDS used it - we’ve moved on some time ago. Get in touch if you’d like to
> collaborate on an improvement we can share.
>
> James
>
>
>
> Thanks Rolland and Roy for putting up with our questions, and we will get
> this fixed for the 4.6.5 release.
>
> Cheers,
>
> Sean
>
>
> On Mon, Feb 29, 2016 at 8:02 AM, Roland Schweitzer - NOAA Affiliate <
> roland.schweitzer@xxxxxxxx> wrote:
>
>> Ok. Perhaps I don't understand how CSS works. When I view the source of
>> the page I referenced and try follow the link in the source
>>
>> <link type="text/css" rel="stylesheet" media="screen" href="
>> /thredds/tdsDap.css <http://www.opendap.org/thredds/tdsDap.css>"/>
>>
>> to the view the css file it does not load the css. It wanders off to a
>> page at opendap.org.
>>
>> Roland
>>
>> On Sat, Feb 27, 2016 at 2:18 AM, Christian Ward-Garrison <
>> cwardgar@xxxxxxxx> wrote:
>>
>>> Also, I tried a fresh install of TDS v4.6.4 and verified that tdsDap.css
>>> was being applied to the opendap form on the default data. *shrug*
>>>
>>> On Sat, Feb 27, 2016 at 1:17 AM, Christian Ward-Garrison <
>>> cwardgar@xxxxxxxx> wrote:
>>>
>>>> Hi Roland,
>>>>
>>>> You must be seeing something different than I am, because it looks to
>>>> me like tdsDap.css exists and is being applied to the opendap form as
>>>> it should be (you can tell by the link colors). In fact, here's its URL on
>>>> thredds-main: http://thredds.ucar.edu/thredds/tdsDap.css. Maybe we're
>>>> still not understanding your question?
>>>>
>>>> Cheers,
>>>> Christian
>>>>
>>>> On Fri, Feb 26, 2016 at 4:26 PM, Roy Mendelssohn - NOAA Federal <
>>>> roy.mendelssohn@xxxxxxxx> wrote:
>>>>
>>>>> That is:
>>>>>
>>>>> Version 4.6.5-SNAPSHOT - 2016-02-20T11:31:09-0700
>>>>>
>>>>> -Roy
>>>>>
>>>>> > On Feb 26, 2016, at 3:22 PM, Roland Schweitzer - NOAA Affiliate <
>>>>> roland.schweitzer@xxxxxxxx> wrote:
>>>>> >
>>>>> > Whatever version is running here for example:
>>>>> http://thredds.ucar.edu/thredds/dodsC/grib/NCEP/DGEX/CONUS_12km/TwoD.html
>>>>> >
>>>>> > Roland
>>>>> >
>>>>> > On Fri, Feb 26, 2016 at 10:46 AM, Sean Arms <sarms@xxxxxxxx> wrote:
>>>>> > Hi Rolland,
>>>>> >
>>>>> > I reread your question again, and the content directory comment I
>>>>> made turns out to be a non-issue for your question (sorry about that!). 
>>>>> The
>>>>> css file lives in the war file and was never missing from the war file as
>>>>> far as I can tell (4.6.2, 4.6.3, 4.6.4). Do you have a specific version
>>>>> where the css file was not showing up?
>>>>> >
>>>>> > Sorry again for the confusion,
>>>>> >
>>>>> > Sean
>>>>> >
>>>>> > On Fri, Feb 26, 2016 at 9:33 AM, Roland Schweitzer - NOAA Affiliate <
>>>>> roland.schweitzer@xxxxxxxx> wrote:
>>>>> > Sean,
>>>>> >
>>>>> > Thanks for the reply. I don't understand the question about copying
>>>>> the CSS files to the content directory. I assume now that we've discovered
>>>>> the file went missing in the transition to gradle it'll just be put back
>>>>> where it's supposed to be in the distribution.
>>>>> >
>>>>> > Roland
>>>>> >
>>>>> > On Thu, Feb 25, 2016 at 12:16 PM, Sean Arms <sarms@xxxxxxxx> wrote:
>>>>> > Greetings Rolland!
>>>>> >
>>>>> > The tdsDap.css should be in the root level of thredds war. However,
>>>>> it does not look like it's copied over to the thredds content directory, 
>>>>> as
>>>>> specified by the property -Dtds.content.root.path when that directory is
>>>>> empty (like a first time startup on a new system). Would it be helpful to
>>>>> copy it (and the other css files) over to
>>>>> ${tds.content.root.path}/thredds/public/ directory if one does not exist? 
>>>>> I
>>>>> suspect this file was missed during our transition from the maven to 
>>>>> gradle
>>>>> build system.
>>>>> >
>>>>> > Cheers,
>>>>> >
>>>>> > Sean
>>>>> >
>>>>> > On Fri, Feb 5, 2016 at 4:16 PM, Roland Schweitzer - NOAA Affiliate <
>>>>> roland.schweitzer@xxxxxxxx> wrote:
>>>>> > The HTML interface for a netCDF OPeNDAP link in TDS (e.g.
>>>>> http://thredds.ucar.edu/thredds/dodsC/grib/NCEP/DGEX/CONUS_12km/TwoD.html)
>>>>> references this style sheet:
>>>>> >
>>>>> > <link type="text/css" rel="stylesheet" media="screen"
>>>>> href="/thredds/tdsDap.css"/>
>>>>> >
>>>>> > and that CSS file seems to be missing from recent thredds.war files .
>>>>> >
>>>>> > Is is missing or am I missing something?
>>>>> >
>>>>> > Roland
>>>>> >
>>>>> > _______________________________________________
>>>>> > thredds mailing list
>>>>> > thredds@xxxxxxxxxxxxxxxx
>>>>> > For list information or to unsubscribe,  visit:
>>>>> http://www.unidata.ucar.edu/mailing_lists/
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > _______________________________________________
>>>>> > thredds mailing list
>>>>> > thredds@xxxxxxxxxxxxxxxx
>>>>> > For list information or to unsubscribe,  visit:
>>>>> http://www.unidata.ucar.edu/mailing_lists/
>>>>>
>>>>> **********************
>>>>> "The contents of this message do not reflect any position of the U.S.
>>>>> Government or NOAA."
>>>>> **********************
>>>>> Roy Mendelssohn
>>>>> Supervisory Operations Research Analyst
>>>>> NOAA/NMFS
>>>>> Environmental Research Division
>>>>> Southwest Fisheries Science Center
>>>>> ***Note new address and phone***
>>>>> 110 Shaffer Road
>>>>> Santa Cruz, CA 95060
>>>>> Phone: (831)-420-3666
>>>>> Fax: (831) 420-3980
>>>>> e-mail: Roy.Mendelssohn@xxxxxxxx www: http://www.pfeg.noaa.gov/
>>>>>
>>>>> "Old age and treachery will overcome youth and skill."
>>>>> "From those who have been given much, much will be expected"
>>>>> "the arc of the moral universe is long, but it bends toward justice"
>>>>> -MLK Jr.
>>>>>
>>>>> _______________________________________________
>>>>> thredds mailing list
>>>>> thredds@xxxxxxxxxxxxxxxx
>>>>> For list information or to unsubscribe,  visit:
>>>>> http://www.unidata.ucar.edu/mailing_lists/
>>>>>
>>>>>
>>>>
>>>
>>
> _______________________________________________
> thredds mailing list
> thredds@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe, visit:
> http://www.unidata.ucar.edu/mailing_lists/
>
>
> --
> James Gallagher
> jgallagher@xxxxxxxxxxx
>
  • 2016 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: