Ticket #2630 (closed feature: fixed)

Opened 3 years ago

Last modified 3 years ago

Attribute Columns Do Not Accurately Display Case of Attribute Names

Reported by: greycatMV Owned by:
Priority: minor Milestone: 2.10 Release
Component: Filter Version: 2.9
Keywords: Cc:
State: Complete

Description

CQL is case-sensitive. The attribute table in OpenLayers seems to display all attribute names in UPPER case, even if they are not. OpenLayers should display attribute names with accurate casing. Otherwise, if you copy and paste the attribute column header text into a CQL query it breaks -- unless you happen to also name your attributes in UPPER case -- not likely. This lead me to some confusion until I figured out what the problem was, because I would get error messages saying things like "Perhaps BLDGID does not exist or is misspelled?" even though I was looking at the attribute table below where it displays as BLDGID.

You can see this bug in action here:  http://tinyurl.com/2f449zs

View page source and see Line 89, Col 17 of the CSS shipping with GeoServer 2.0.1 for the culprit:

table.featureInfo th {

padding: .2em .2em; text-transform: uppercase; <!-- bad idea ---> font-weight: bold; background: #eee;

}

(GeoServer 2.0.1 on Mac OS 10.4.11)

Cheers, Christine Bush Mountain View, California

 http://linkedin.com/in/greycat  http://maps.greycat.net

Change History

Changed 3 years ago by bartvde

  • status changed from new to closed
  • resolution set to invalid

Hi, please report this issue with Geoserver. This css is not part of OpenLayers.

Changed 3 years ago by bartvde

  • status changed from closed to reopened
  • resolution invalid deleted

Sorry, I do see there is an example in OpenLayers with this style as well, i.e. examples/getfeatureinfo-control.html

I'll adapt this example.

Changed 3 years ago by bartvde

  • keywords CQL, text case removed
  • status changed from reopened to closed
  • state set to Complete
  • resolution set to fixed

(In [10303]) remove text-transform uppercase css from getfeatureinfo-control example, since attributes are case-sensitive (closes #2630)

Note: See TracTickets for help on using tickets.