pcooksey/bibtex-js

Search bibtex field with exact match

Opened this issue · 0 comments

Currently, the following method would return all entries with the specific field containing the search string.

<select class="bibtex_search bibtex_generate_{bibtex entry name}" search="{bibtex entry name}">
  <option value="">Search {bibtex entry name}</option>
</select>

However, it may cause problem if one item is a substring of another (like journal names Nature and Nature Communications). If searching for the substring (Nature), the entries containing the whole string (Nature Communications) would also be selected.

So, is there a way to use exact match here?