You can redefine the \bibentry
command so it does not create a hyperref target by adding
\makeatletter
\renewcommand\bibentry[1]{\nocite{#1}{\frenchspacing
\@nameuse{BR@r@#1\@extra@b@citeb}}}
\makeatother
to your preamble.
E.g. your example (with natbib
options added from your commet so it does not throw an error); the in text ordinary citation now links to the bibliography:
\begin{filecontents}{mytestbib.bib}
@ARTICLE{Duhm_AppliedPhysicsLetters_2009,
author = {Duhm, Steffen and Salzmann, Ingo and Bröker, Benjamin and Glowatzki,
Hendrik and Johnson, Robert L. and Koch, Norbert},
title = {Interdiffusion of molecular acceptors through organic layers to metal
substrates mimics doping-related energy level shifts},
journal = {Applied Physics Letters},
year = {2009},
volume = {95},
pages = {093305},
doi = {10.1063/1.3213547},
issn = {00036951},
url = {http://link.aip.org/link/APPLAB/v95/i9/p093305/s1&Agg=doi},
urldate = {2011-11-05}
}
\end{filecontents}
\documentclass{article}
\usepackage{filecontents}
\usepackage[square, sort&compress, numbers]{natbib}
\usepackage{fancyhdr}
\usepackage{bibentry}
\usepackage[pdftex]{hyperref}
\nobibliography*
\makeatletter
\renewcommand\bibentry[1]{\nocite{#1}{\frenchspacing
\@nameuse{BR@r@#1\@extra@b@citeb}}}
\makeatother
\begin{document}
A full in-text cite of
\bibentry{Duhm_AppliedPhysicsLetters_2009}.
A regular citation \cite{Duhm_AppliedPhysicsLetters_2009}.
\bibliographystyle{statto}
\bibliography{mytestbib}
\end{document}
The new definition is just the code from bibentry.sty
, i.e.
\newcommand\bibentry[1]{\nocite{#1}{\frenchspacing
\hyper@natanchorstart{#1\@extra@b@citeb}%
\@nameuse{BR@r@#1\@extra@b@citeb}\hyper@natanchorend}}
with the hyperref anchor start/end commands removed.
Best Answer
The patch provides a function for inserting the DOI:
Replace the line which inserts the DOI
by
to yield the augmented DOI that includes a hyperlink.
That is, the function is replaced with the code %% DOI