Closed AndyFoy closed 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.
All behaves as described.
Following on from my comment about NVC in the other issue all NVC dropdown lists are blank.
See comment on CR32 (#52) on how to make these visible.
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.
I've changed them all to -1 using replace and they are appearing now.
This is fine in MapInfo.
Works as expected.
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.