Q:

biblatex-verbose: edition as superscript in front of year

I’m using biblatex and Biber, and modifying the verbose style. I’m having trouble with the placement and formatting of the edition: The edition should appear immediately in front of the year, without any “rd”, “th” etc., and without a space in between edition and year.
I’ve been trying to fix this for a good while and I can post one or two MWEs of attempted solutions if it should help, but I’m afraid they’d be more confusing than helpful.
Below is an unadulterated MWE to start with. The relevant bibmacros seem to be in standard.bbx.
\documentclass{article}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@incollection{foo,
    author = {A. Author},
    title = {Foo},
    booktitle = {Book},
    location = {North Pole},
    date = {2013},
    edition = {7},
}
\end{filecontents}

\usepackage[style=verbose, backend=biber]{biblatex}
    \addbibresource{\jobname.bib}

\begin{document}

\nocite{foo}

\printbibliography

Should be: North Pole, \textsuperscript{7}2013

\end{document}

A:

You might want to try the following
We redefine the edition format to use the superscript if possible
\DeclareFieldFormat{edition}{%
  \ifinteger{#1}
    {\textsuperscript{#1}}
    {#1\isdot\setunit{\addcomma\space}}}

Then we let the edition appear before the date.
\renewbibmacro*{publisher+location+date}{%
  \printlist{location}%
  \iflistundef{publisher}
    {\setunit*{\addcomma\space}}
    {\setunit*{\addcolon\space}}%
  \printlist{publisher}%
  \setunit*{\addcomma\space}%
  \printfield{edition}%
  \usebibmacro{date}%
  \newunit}

We then delete the superfluous first appearance of the edition field. We use xpatch for that, it's easier than retyping the whole driver entry.
\newcommand{\replaceedition}[1]{%
  \xpatchbibdriver{#1}
    {\printfield{edition}%
     \newunit}
    {}%
    {}
    {\typeout{failed to patch driver #1}}
}
\replaceedition{book}
\replaceedition{collection}
\replaceedition{inbook}
\replaceedition{incollection}
\replaceedition{manual}

The MWE
\documentclass{article}
\begin{filecontents}{\jobname.bib}
@incollection{foo,
    author = {A. Author},
    title = {Foo},
    booktitle = {Book},
    location = {North Pole},
    date = {2013},
    edition = {7},
}
\end{filecontents}

\usepackage[style=verbose, backend=biber]{biblatex}
\usepackage{xpatch}
\addbibresource{\jobname.bib}

\DeclareFieldFormat{edition}{%
  \ifinteger{#1}
    {\textsuperscript{#1}}
    {#1\isdot\setunit{\addcomma\space}}}

\renewbibmacro*{publisher+location+date}{%
  \printlist{location}%
  \iflistundef{publisher}
    {\setunit*{\addcomma\space}}
    {\setunit*{\addcolon\space}}%
  \printlist{publisher}%
  \setunit*{\addcomma\space}%
  \printfield{edition}%
  \usebibmacro{date}%
  \newunit}

\newcommand{\replaceedition}[1]{%
  \xpatchbibdriver{#1}
    {\printfield{edition}%
     \newunit}
    {}%
    {}
    {\typeout{failed to patch driver #1}}
}
\replaceedition{book}
\replaceedition{collection}
\replaceedition{inbook}
\replaceedition{incollection}
\replaceedition{manual}

\begin{document}
  \nocite{foo}
  \printbibliography
  Should be: North Pole, \textsuperscript{7}2013
\end{document}

gives us

