On Mon, 20 Jun 2011, Christopher Dickinson wrote: > Also, the MySQL query looks for "='Ellis'" if you have "Ellis" in the > Author field, "LIKE 'Elli%'" if you have "Elli%" in the Author > field. I'm not sure if that's what we want...
When the user is located in the 100__a box in BibEdit and types `elli' followed by `C-S-a' hot key combination, then the auto-suggest facility should look for `elli%' from the SQL point of view. (`%' is the wild card, so `elli%' means auto-completion at the end.) However, there are other auto-suggestion use cases where it would *not* be desirable to do this, e.g. auto-completion of institutions happens by matching words in any field anywhere (e.g. I type `geneva' and system replies `cern'). So this must be made configurable depending on the concrete auto-suggest use case. E.g. 100__a -> autosuggest_via_phrase_endings(), 245__a -> autosuggest_via_word_anywhere(), 65017a -> autosuggest_via_authority(), etc. That is, CFG_BIBEDIT_AUTOSUGGEST_TAGS should be extended to say also how we auto-suggest for various tags. Best regards -- Tibor Simko

