This is a follow up question to biblatex: Make title hyperlink to doi url (if available) and biblatex: make title hyperlink to DOIs, URL or ISBN!
First , I have an issue with breaklinks=true because the urls don't break up and I have to turn breaklinks on but at the same time , if I turn on it, these links are no longer be clickable.
Here is the code from Herbert.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[backend=biber]{biblatex}
\usepackage[colorlinks,breaklinks=false]{hyperref}
\bibliography{biblatex-examples}
\ExecuteBibliographyOptions{doi=false}
\newbibmacro{string+doi}[1]{%
\iffieldundef{doi}{#1}{\href{http://dx.doi.org/\thefield{doi}}{#1}}}
\DeclareFieldFormat{title}{\usebibmacro{string+doi}{\mkbibemph{#1}}}
\DeclareFieldFormat[article]{title}{\usebibmacro{string+doi}{\mkbibquote{#1}}}
\begin{document}
A reference to~\cite{kastenholz} and~\cite{sigfridsson}.
\printbibliography
\end{document}
Second, I would like to know how I can change this to "authors" instead of "title". Thanks for your help.
Best Answer
So finally I ended up putting all other people's work together. (1,2,3,4).Hope I included everyone. Here is the combined code.
Here is the screen shot. Enjoy. This one going to pick DOI first and if DOI is not available , it would find url. Thanks everyone!