Fix for issue #12: only use active prefixes to abbreviate query results in table view