validate(features);
updateLabels(UpdateMaster, true);
checkBibInfoCache();
- d->bibinfo_.collectCitedEntries(*this);
+ d->bibinfo_.makeCitationLabels(*this);
if (!only_body) {
os << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
xs << ", ";
first = false;
}
- docstring const & label = bibinfo.label();
- docstring const & target = label.empty() ? *it : label;
+ docstring citekey = bibinfo.citeKey();
+ if (citekey.empty()) {
+ citekey = bibinfo.label();
+ if (citekey.empty())
+ citekey = *it;
+ }
string const attr = "href='#" + to_utf8(*it) + "'";
- xs << StartTag("a", attr) << target << EndTag("a");
+ xs << StartTag("a", attr) << citekey << EndTag("a");
}
docstring const & after = getParam("after");