biblatex: coloque paréntesis alrededor de toda la información del editor

biblatex: coloque paréntesis alrededor de toda la información del editor

Me gustaría colocar entre paréntesis toda la información del editor en una referencia de colección usando biblatex. Mi referencia actual aparece de la siguiente manera:

Gotelli, Nueva Jersey y Colwell, RK (2010). Estimación de la riqueza de especies. En:Diversidad biológica: fronteras en medición y evaluación. (eds) Magurran, AE & McGill, BJ Oxford University Press, Oxford, Reino Unido, 39–54.

Sin embargo, me gustaría que esta referencia aparezca con toda la información del editor entre paréntesis, seguida de un punto:

Gotelli, Nueva Jersey y Colwell, RK (2010). Estimación de la riqueza de especies. En:Diversidad biológica: fronteras en medición y evaluación. (eds. Magurran, AE y McGill, BJ). Oxford University Press, Oxford, Reino Unido, 39–54.

Mi solución actual es usar \xpatchbibmacro{byeditor+othersstrg}{\printtext}{\printtext[parens]}{}{}, pero esta solución solo coloca la abreviatura de editor entre paréntesis.

Mi MWE es el siguiente:

\documentclass[12pt,Bold]{report}

\usepackage[backend=bibtex,url=false, isbn=false, doi=false, style=authoryear,citestyle=authoryear, sorting=nyt,dashed=FALSE, maxcitenames=2, maxbibnames=100]{biblatex}
\usepackage{xpatch}
\usepackage{filecontents}


%Last names first in bibliography
\DeclareNameAlias{sortname}{last-first}
\DeclareNameAlias{default}{last-first}

%italics for book titles
\DeclareFieldFormat[incollection]{title}{#1}
\DeclareFieldFormat[incollection]{booktitle}{\textit{#1}}


\DeclareFieldFormat[article,incollection]{pages}{#1}

\renewbibmacro*{volume+number+eid}{%
 \printfield{volume}%
  %\setunit*{\adddot}% DELETED
%  \setunit*{\addcolon}% ADDED
 % \printfield{number}%
  %\setunit{\space}%
  \printfield{eid}}

\renewbibmacro*{name:andothers}{% Based on name:andothers from biblatex.def
  \ifboolexpr{
    test {\ifnumequal{\value{listcount}}{\value{liststop}}}
    and
    test \ifmorenames
  }
    {\ifnumgreater{\value{liststop}}{1}
       {\finalandcomma}
       {}%
     \andothersdelim\bibstring[\emph]{andothers}}
    {}}
\renewcommand*{\finalnamedelim}{%
  \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
  \addspace\&\space}

%change order and punctuation between publisher and location
\renewbibmacro*{publisher+location+date}{%
  \printlist{publisher}%
  \iflistundef{location}
    {\setunit*{\addcomma\space}}
    {\setunit*{\addcomma\space}}%
  \printlist{location}%
  \setunit*{\addcomma\space}%
  \usebibmacro{date}%
  \newunit}


%change editor abbrevation
\DefineBibliographyStrings{english}{%
  byeditor = {\lowercase{ed}},%
  byeditor = {\lowercase{eds}},%
}

\xpatchbibmacro{byeditor+othersstrg}{\printtext}{\printtext[parens]}{}{}

\begin{filecontents*}{editor.mwe.bib}

@incollection{magurran_estimating_2010,
    address = {Oxford, United Kingdom},
    title = {Estimating species richness},
    shorttitle = {Estimating species richness},
    booktitle = {Biological diversity: frontiers in measurement and     assessment},
publisher = {Oxford University Press},
author = {Gotelli, N.J. and Colwell, R.K.},
editor = {Magurran, A.E. and McGill, B.J.},
year = {2010},
pages = {39--54},
}


\end{filecontents*}
\addbibresource{editor.mwe.bib}

\begin{document}

\parencite{magurran_estimating_2010}

\printbibliography
\end{document}

Cualquier ayuda sería muy apreciada, ya que llevo un par de semanas buscando una solución.

Respuesta1

Yo sugeriría una redefinición en la línea de

\renewbibmacro*{byeditor+others}{%
  \ifnameundef{editor}
    {}
    {\printtext[parens]{\usebibmacro{byeditor+othersstrg}%
     \setunit{\addspace}%
     \printnames[byeditor]{editor}}%
     \clearname{editor}%
     \newunit}%
  \usebibmacro{byeditorx}%
  \usebibmacro{bytranslator+others}}

Donde agregamos un \printtext[parens]alrededor del bloque imprimiendo a los editores. Puede haber algunos inconvenientes si también tiene editoras o translators, etc.

MWE

\documentclass{article}
\usepackage[backend=bibtex,url=false, isbn=false, doi=false, style=authoryear,citestyle=authoryear, sorting=nyt,dashed=FALSE, maxcitenames=2, maxbibnames=100]{biblatex}
\usepackage{xpatch}
\usepackage{filecontents}

%Last names first in bibliography
\DeclareNameAlias{sortname}{last-first}
\DeclareNameAlias{default}{last-first}

%italics for book titles
\DeclareFieldFormat[incollection]{title}{#1}
\DeclareFieldFormat[incollection]{booktitle}{\textit{#1}}


\DeclareFieldFormat[article,incollection]{pages}{#1}

\renewbibmacro*{volume+number+eid}{%
 \printfield{volume}%
  %\setunit*{\adddot}% DELETED
%  \setunit*{\addcolon}% ADDED
 % \printfield{number}%
  %\setunit{\space}%
  \printfield{eid}}

\renewbibmacro*{name:andothers}{% Based on name:andothers from biblatex.def
  \ifboolexpr{
    test {\ifnumequal{\value{listcount}}{\value{liststop}}}
    and
    test \ifmorenames
  }
    {\ifnumgreater{\value{liststop}}{1}
       {\finalandcomma}
       {}%
     \andothersdelim\bibstring[\emph]{andothers}}
    {}}
\renewcommand*{\finalnamedelim}{%
  \ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
  \addspace\&\space}

%change order and punctuation between publisher and location
\renewbibmacro*{publisher+location+date}{%
  \printlist{publisher}%
  \iflistundef{location}
    {\setunit*{\addcomma\space}}
    {\setunit*{\addcomma\space}}%
  \printlist{location}%
  \setunit*{\addcomma\space}%
  \usebibmacro{date}%
  \newunit}


%change editor abbrevation
\DefineBibliographyStrings{english}{%
  byeditor = {\lowercase{ed}},%
  byeditor = {\lowercase{eds}},%
}

\renewbibmacro*{byeditor+others}{%
  \ifnameundef{editor}
    {}
    {\printtext[parens]{\usebibmacro{byeditor+othersstrg}%
     \setunit{\addspace}%
     \printnames[byeditor]{editor}}%
     \clearname{editor}%
     \newunit}%
  \usebibmacro{byeditorx}%
  \usebibmacro{bytranslator+others}}


\begin{filecontents*}{\jobname.bib}

@incollection{magurran_estimating_2010,
    address = {Oxford, United Kingdom},
    title = {Estimating species richness},
    shorttitle = {Estimating species richness},
    booktitle = {Biological diversity: frontiers in measurement and     assessment},
publisher = {Oxford University Press},
author = {Gotelli, N.J. and Colwell, R.K.},
editor = {Magurran, A.E. and McGill, B.J.},
year = {2010},
pages = {39--54},
}


\end{filecontents*}
\addbibresource{\jobname.bib}

\begin{document}

\parencite{magurran_estimating_2010}

\printbibliography
\end{document}

ingrese la descripción de la imagen aquí

información relacionada