{}
-bool BibTeXInfo::hasField(docstring const & field) const
-{
- return count(field) == 1;
-}
-
-
docstring const BibTeXInfo::getAbbreviatedAuthor() const
{
if (!is_bibtex_) {
BibTeXInfo(bool ib) : is_bibtex_(ib) {}
/// constructor that sets the entryType
BibTeXInfo(docstring const & key, docstring const & type);
- ///
- bool hasField(docstring const & field) const;
/// \return the short form of an authorlist
docstring const getAbbreviatedAuthor() const;
///
/// \param pointer to crossref information
docstring const & getInfo(BibTeXInfo const * const xref = 0) const;
///
- int count(docstring const & f) const { return bimap_.count(f); }
- ///
const_iterator find(docstring const & f) const { return bimap_.find(f); }
///
const_iterator end() const { return bimap_.end(); }
data = to_utf8(*it);
else if (field.empty())
data = to_utf8(*it) + ' ' + to_utf8(kvm.allData());
- else if (kvm.hasField(field))
+ else
data = to_utf8(kvm[field]);
if (data.empty())
vector<docstring>::const_iterator end = keys.end();
for (; it != end; ++it) {
// get the bibdata corresponding to the key
- docstring const author(biblist.getAbbreviatedAuthor(*it));
- docstring const year(biblist.getYear(*it));
+ docstring const author = biblist.getAbbreviatedAuthor(*it);
+ docstring const year = biblist.getYear(*it);
// Something isn't right. Fail safely.
if (author.empty() || year.empty())