Question:
I would like to replace the biblatex+biber title when a .bib
entry does not contain a title. For example, if I have the entry:
@article{key123,
author = {Name AA and Name BB},
title = {Article title name},
Year = {2016},
revjournal = {Journal Name},
}
I want to replace the
Name AA and Name BB. “Article Title Name”. In: (2016).
with
Name AA and Name BB. “Article Title Name”. Under review at: Journal Name (2016).
What I have tried:
I have attempted to map revjournal
to usera
with the following:
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldsource=revjournal]
\step[fieldset=usera,origfieldval]
}
}
}
\DeclareFieldFormat{usera}{%
\iffieldundef{title}{%
\mkbibacro{Under review at}\addcolon\space#1%
}{}%
}
But that does nothing. Perhaps there is a better way to replace/overwrite biblatex fields?
MWE:
\documentclass{article}
\usepackage{filecontents}
\usepackage[backend=biber,firstinits=true]{biblatex}
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldsource=revjournal]
\step[fieldset=usera,origfieldval]
}
}
}
\DeclareFieldFormat{usera}{%
\iffieldundef{title}{%
\mkbibacro{Under review at}\addcolon\space{#1}%
}{}%
}
\begin{filecontents}{./pubs.bib}
@article{key123,
author = {Name AA and Name BB},
title = {Article title name},
Year = {2016},
revjournal = {Journal Name},
}
\end{filecontents}
\bibliography{./pubs.bib}
\begin{document}
\fullcite{key123}
\end{document}
Thank you for your help.