HabitatFramework / HLUTool

Habitat and Land Use GIS Tool
GNU General Public License v3.0
2 stars 3 forks source link

CR8 (Habitat types) #28

Closed AndyFoy closed 10 years ago

AndyFoy commented 11 years ago
Description

The habitat type drop-down lists on the ‘Sources’ tab all display habitat types for the currently selected habitat class. However, all the habitat type codes are prefixed by their relevant habitat class which means users are unable to select habitat types by entering the first character of a code (or jump to the first type starting with the entered character).

For example, the user cannot jump to NVC type ‘W’ by entering ‘W’ because the NVC types are all prefixed ‘NVC-‘. Instead the user must type ‘NVC-W’.

Proposed Solution

Change the converter class that generates the ‘display’ field for the habitat_type table to show the following:

a) If the ‘name’ and ‘description’ fields are present (and different) display both fields separated by a colon “ : “ (e.g. “W1 : Salix cinerea-Galium palustre woodland”). b) If either field is blank, or both fields are the same, display only the ‘name’ or ‘description’ field as appropriate.

Continue to sort the list using the sort_order column.

AndyFoy commented 10 years ago

This change has been implemented as planned and affects both the Habitat Type fields in the Sources tab and also the new Habitat Type field in the IHS tab.

drewlawson commented 10 years ago

All behaves as described.

GrahamHawker commented 10 years ago

Following on from my comment about NVC in the other issue all NVC dropdown lists are blank.

AndyFoy commented 10 years ago

See comment on CR32 (#52) on how to make these visible.

AndyFoy commented 10 years ago

I can supply a script for the database updater to set the is_local flags for all NVC habitat types to '1' if you need it.

GrahamHawker commented 10 years ago

I've changed them all to -1 using replace and they are appearing now.

GrahamHawker commented 10 years ago

This is fine in MapInfo.

Wolfgang-HBIC commented 10 years ago

Works as expected.