	% \iffalse meta-comment
%<*internal>
\begingroup
\input docstrip.tex
\keepsilent
\preamble
  ______________________________________________________
  The biblatex-philosophy package 
  Copyright (C) 2009-2013 Ivan Valbusa 
  All rights reserved

  License information appended

\endpreamble
\postamble

 Copyright 2009-2013 by Ivan Valbusa

 This program is provided under the terms of the
 LaTeX Project Public License distributed from CTAN
 archives in directory macros/latex/base/lppl.txt.

 Author: Ivan Valbusa
         ivan dot valbusa at univr dot it

 This work has the LPPL maintenance status "author-maintained".

\endpostamble
\askforoverwritefalse

\Msg{*** Generating the class file ***}
\generate{
\file{philosophy-standard.bbx}{\from{biblatex-philosophy.dtx}{standard-bbx}}
\file{philosophy-classic.bbx}{\from{biblatex-philosophy.dtx}{classic-bbx}}
\file{philosophy-modern.bbx}{\from{biblatex-philosophy.dtx}{modern-bbx}}
\file{philosophy-verbose.bbx}{\from{biblatex-philosophy.dtx}{verbose-bbx}}
\file{philosophy-classic.cbx}{\from{biblatex-philosophy.dtx}{classic-cbx}}
\file{philosophy-modern.cbx}{\from{biblatex-philosophy.dtx}{modern-cbx}}
\file{philosophy-verbose.cbx}{\from{biblatex-philosophy.dtx}{verbose-cbx}}
\file{italian-philosophy.lbx}{\from{biblatex-philosophy.dtx}{italian-lbx}}
\file{english-philosophy.lbx}{\from{biblatex-philosophy.dtx}{english-lbx}}
}

\Msg{***********************************************************}
\Msg{*}
\Msg{* To finish the installation you have to move the following}
\Msg{* files into a directory searched by TeX:}
\Msg{*}
\Msg{* \space\space philosophy-standard.bbx}
\Msg{* \space\space philosophy-classic.bbx}
\Msg{* \space\space philosophy-modern.bbx}
\Msg{* \space\space philosophy-verbose.bbx}
\Msg{* \space\space philosophy-classic.cbx}
\Msg{* \space\space philosophy-modern.cbx}
\Msg{* \space\space philosophy-verbose.cbx}
\Msg{* \space\space italian-philosophy.lbx}
\Msg{* \space\space english-philosophy.lbx}
\Msg{*}
\Msg{*}
\Msg{* To produce the documentation run}
\Msg{* the file ending with `.dtx' through (pdf)LaTeX. See the}
\Msg{* README file for more details.}
\Msg{*}
\Msg{* Happy TeXing}
\Msg{***********************************************************}
\endgroup
%</internal>
%
% Copyright (C) 2009-2012 by Ivan Valbusa 
% <ivan dot valbusa at univr dot it>
% -------------------------------------------------------
% 
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% \fi
%
% \iffalse
%<*driver>
\ProvidesFile{biblatex-philosophy.dtx}
%</driver>
%<standard-bbx>\ProvidesFile{philosophy-standard.bbx}
%<classic-bbx>\ProvidesFile{philosophy-classic.bbx}
%<modern-bbx>\ProvidesFile{philosophy-modern.bbx}
%<verbose-bbx>\ProvidesFile{philosophy-verbose.bbx}
%<classic-cbx>\ProvidesFile{philosophy-classic.cbx}
%<modern-cbx>\ProvidesFile{philosophy-modern.cbx}
%<verbose-cbx>\ProvidesFile{philosophy-verbose.cbx}
%<italian-lbx>\ProvidesFile{italian-philosophy.lbx}
%<english-lbx>\ProvidesFile{english-philosophy.lbx}
    [2013/03/27 v0.8c valbusa beta]

%<*driver>
\documentclass{ltxdoc}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\let\cs\relax
\let\cmd\relax
\usepackage{ltxdockit}
\usepackage{btxdockit}

\makeatletter
\renewenvironment*{optionlist}
  {\list{}{%
     \setlength{\labelwidth}{\marglistwidth}%
     \setlength{\labelsep}{\z@}%
     \setlength{\leftmargin}{2cm}%
     \renewcommand*{\makelabel}[1]{\hss\optionlistfont##1}}%
   \ltd@optionlist}
  {\endlist}
\renewenvironment*{ltxsyntax}
  {\list{}{%
     \setlength{\labelwidth}{\marglistwidth}%
     \setlength{\labelsep}{0pt}%
     \setlength{\leftmargin}{1cm}%
     \renewcommand*{\makelabel}[1]{%
       \hss\ltxsyntaxfont\ltxsyntaxlabelfont##1}}%
   \let\csitem\ltd@csitem
   \let\cmditem\ltd@cmditem
   \let\envitem\ltd@envitem
   \let\lenitem\ltd@csitem
   \let\boolitem\ltd@boolitem
   \let\cntitem\ltd@item
   \let\optitem\ltd@item}
  {\endlist}

  \makeatother
\renewcommand*{\marglistfont}{\spotcolor\sffamily\displayverbfont}
\renewcommand*{\optionlistfont}{\spotcolor\sffamily\displayverbfont}
\renewcommand*{\ltxsyntaxlabelfont}{\spotcolor\displayverbfont}

\usepackage{csquotes}
\usepackage[style=philosophy-modern,backend=biber,annotation=true]{biblatex}
  \addbibresource{biblatex-philosophy.bib}
  
\usepackage{guit}

\usepackage{geometry}
 \geometry{margin=1cm,bottom=1.5cm,paperwidth=8in,paperheight=6.25in}
\usepackage{fourier}
\renewcommand{\sfdefault}{lmss}
\usepackage{sectsty}
	\sectionfont{\spotcolor\sffamily}
	\subsectionfont{\spotcolor}
	\subsubsectionfont{\spotcolor} 
	\paragraphfont{\spotcolor}
	\subparagraphfont{\spotcolor} 

\usepackage{mdframed}
  \newenvironment{bibexample}{%
\begin{mdframed}%
			[linewidth=1,
			 linecolor=black!30, 
		   innertopmargin=.5\baselineskip,
			 skipbelow=.5\baselineskip]}
  {\end{mdframed}}

\usepackage{hyperref}
\hypersetup{%
    pdftitle={User's Guide to \textsf{biblatex philosophy}},
    pdfsubject={Bibliography styles for (Italian) users of biblatex},
    pdfauthor={Ivan Valbusa},
    pdfkeywords={bibliography},
    citecolor=spot}   

\newcommand{\emphasize}[1]{\textcolor{blue!40!black}{#1}}
  
\EnableCrossrefs         
\CodelineIndex
\RecordChanges

\begin{document}
  \DocInput{biblatex-philosophy.dtx}
\end{document}
%
%</driver>
% \fi
%
% \CheckSum{2947}
%
% \CharacterTable
%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%   Digits        \0\1\2\3\4\5\6\7\8\9
%   Exclamation   \!     Double quote  \"     Hash (number) \#
%   Dollar        \$     Percent       \%     Ampersand     \&
%   Acute accent  \'     Left paren    \(     Right paren   \)
%   Asterisk      \*     Plus          \+     Comma         \,
%   Minus         \-     Point         \.     Solidus       \/
%   Colon         \:     Semicolon     \;     Less than     \<
%   Equals        \=     Greater than  \>     Question mark \?
%   Commercial at \@     Left bracket  \[     Backslash     \\
%   Right bracket \]     Circumflex    \^     Underscore    \_
%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%   Right brace   \}     Tilde         \~}
%
% \changes{v0.8c}{2013/03/27}{Removed \sty{biber.conf} configuration file. Added internal \file{biber} settings with \cmd{DeclareDriverSourcemap} command. Added \bibfield{trans-} field alias.}
% \changes{v0.8b}{2013/03/22}{Added \sty{biber.conf} configuration file}
% \changes{v0.8a}{2013/04/18}{New \bibfield{entrysubtype} field for citing classical texts. New \bibfield{related} field mechanism. New \opt{relatedformat} option. New English documentation. Fixed some bugs}
% \changes{v0.7c}{2011/05/16}{Fixed some bugs. New \opt{origfieldtype} option. Added \bibfield{nodate} bibliography string. Updated documentation}
% \changes{v0.7b}{2010-04-23}{Removed package option \opt{romanvol}. Added package option \opt{volumeformat}. Added package option \opt{editionformat}. Activated the option \opt{singletitle} for style \sty{philosophy-verbose}. Added bibliography driver \bibtype{review}. Added bibliography string \opt{cit}. Added bibliography string \opt{reviewof}. Updated documentation}
% \changes{v0.7a}{2010-04-03}{Added command \opt{volumfont}. Added command \opt{footcitet}. Updated documentation}
% \changes{v0.7}{2010-03-30}{Removed package option \opt{colonloc}. Removed package options \opt{origparens} \opt{origbrackets}. Added package options \opt{origfieldsformat}, \opt{publocformat}, \opt{commacit}, \opt{inbeforejournal}, \opt{romanvol}, \opt{volnumformat}. Added command \opt{volnumpunct}. Added citation commands \cmd{sdcite}, \cmd{ccite}. Updated documentation}
% \changes{v0.6}{2010-03-07}{Added localization file \file{italian-philosophy.lbx}. Added file \file{philosophy-standard.bbx}. New documentation file \file{biblatex-philosophy}. Removed files \file{philosophy-authoryear-doc.tex}, \file{philosophy-verbose-doc.tex}.}
% \changes{v0.5}{}{Added new bibliography style \texttt{philosophy-verbose}. Added localization file \file{italian-philosophy.lbx}. Added package options \opt{origparens}, \opt{origbrackets}, \opt{latinemph}. Changed package options \opt{scauthors}, \opt{scauthorscite}, \opt{scauthorsbib}. Renamed file \file{biblatex-philosophy-doc.tex} to \texttt{philosophy-authoryear-doc.tex}. Added file \file{philosophy-verbose-doc.tex}. Updated documentation}
% \changes{v0.4}{}{Improved compatibility for \sty{biblatex} version 0.9}
%
% \GetFileInfo{biblatex-philosophy.dtx}
%
% \DoNotIndex{\newcommand,\newenvironment,\def,\begin,\vskip,\ }
% \DoNotIndex{\DeclareOption,\ExecuteOptions,\RequirePackage}
% \DoNotIndex{\@@end,\@empty,\@ifclassloaded,\@nameuse,\@nil}
% \DoNotIndex{\@undefined,\\,\`,\addtocounter,\advance,\bfseries}
% \DoNotIndex{\centering,\closeout,\define@key,\documentclass}
% \DoNotIndex{\edef,\else,\end,\endinput,\endtitlepage,\expandafter}
% \DoNotIndex{\extracolsep,\fi,\fill,\fontsize,\g@addto@macro,\toks}
% \DoNotIndex{\hrule,\hspace,\if,\if@twoside,\ifcase,\ifdefined}
% \DoNotIndex{\iffalse,\IfFileExists,\ifnum,\ifx,\immediate,\setcounter}
% \DoNotIndex{\jobname,\let,\long,\MakeUppercase,\MessageBreak}
% \DoNotIndex{\newcount,\newif,\newpage,\newtoks,\newwrite,\next}
% \DoNotIndex{\noexpand,\nofiles,\normalfont,\normalsize,\null}
% \DoNotIndex{\openout,\or,\styage,\styageError,\styageWarning}
% \DoNotIndex{\styageWarningNoLine,\paperheight,\paperwidth,\par}
% \DoNotIndex{\parbox,\parindent,\relax,\scshape,\selectfont,\setkeys}
% \DoNotIndex{\sffamily,\space,\stretch,\string,\textheight,\textwidth}
% \DoNotIndex{\the,\thispagestyle,\unexpanded,\unless,\unskip,\upshape}
% \DoNotIndex{\usepackage,\vbox,\vfill,\vspace,\write,\z@}
% \DoNotIndex{\CurrentOption,\AtEndDocument,\@ne,\c@page,\m@ne}
% \DoNotIndex{\@firstofone,\@gobble,\@makeother,\begingroup,\endgroup}
% \DoNotIndex{\eTeXversion,\hbox,\hsize,\includegraphics,\newlinechar}
% \DoNotIndex{\titlepage,\vss,\vtop,\xdef,\@gobbletwo,\color,\dimexpr}
% \DoNotIndex{\huge,\large,\makebox,\ProcessOptions,\renewcommand}
%
%
%
% \title{\color{spot}\bfseries  User's Guide to \textsf{biblatex-philosophy}\\
% \large\itshape Bibliography styles for (Italian) users of~\textsf{biblatex}}
% \author{Ivan Valbusa \\
%   \texttt{ivan dot valbusa at univr dot it}}
% \date{\fileversion{} -- \filedate}
%
%
% \newgeometry{margin=4cm,top=2cm}
%
% \maketitle
%
% \thispagestyle{empty}
%
%\begin{abstract}
%	This package provides a small collection of bibliography and citation styles for use with Philipp Lehman’s \sty{biblatex} package. The styles follow the most popular conventions of the Italian publications but can be used in other languages too. They offer some useful features to compose detailed bibliographic entries including the translation data of foreign texts, annotations etc. Many options allow you to change the style defaults.
%	\end{abstract} 
%
% \null\vfill
% \newgeometry{margin=2cm,bottom=1.5cm,top=1cm}
%
% \begin{multicols}{2}
% \fontsize{9.5}{11}\selectfont
% \tableofcontents
% \end{multicols}
%
% \newgeometry{margin=3cm,bottom=1.5cm,top=1cm}
%
%\section{Introduction}
%
%\subsection{License}
%
%Copyright \copyright\ 2009-2010 Ivan Valbusa. This package is author-maintained. 
%Permission is granted to copy, distribute and/or modify this software under the 
%terms of the LaTeX Project Public License, version 1.3c.\footnote{\url{http://www.ctan.org/tex-archive/macros/latex/base/lppl.txt.}} This software is provided “as is”, without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose.
%
%\subsection{Acknowledgments}
%
%The firs step toward the creation of the \sty{philosophy-modern} style (used for this documentation) was the request of Lorenzo Pantieri in the \GuIT{} Forum: \url{http://www.guit.sssup.it/phpbb/viewtopic.php?t=6472}.\footnote{See the discussion on \url{http://www.guit.sssup.it/phpbb/viewtopic.php?t=6717.}} Now this is the bibliography style of \citetitle{pantieri:artelatex}, the most popular Italian guide to \LaTeX{} \parencite{pantieri:artelatex}. I am very grateful to everybody who took part in the debate.
%
%Many styles available in \TeX Live inspired \sty{biblatex-philosophy}, specifically: \sty{dw} by Dominik \textcite{wassenhoven:dw}, \sty{mla} by James \textcite{clawson:mla} and \sty{historian} by Sander \textcite{glibof:historian}.
%
%
%
%\subsection{Feedback}
%
%
%If you have any questions, feedback or requests please email me. 
%My mail address is at the top of this document. If you need specific features not already implemented, remember to attach the example and \file{.bib} files.
%
%
%
%
%\subsection{Syles features}\label{sec:introduction}
%
%
%This package provides two author-year bibliography styles suitable for both text and footnotes citations (\sty{philosophy-classic} e \sty{philosophy-modern}; henceforth \sty{classic} e \sty{modern}) and a verbose style appropriate for bibliographies supplied in the footnotes (\sty{philosophy-verbose}; henceforth \sty{verbose}).
%
%These styles aim to match the needs of the Italian writers, particularly those concerned in the humanities (for example the comma is used to distinguish the units of the entry). Only the English and Italian support is available for now but you can use the styles with all the languages supported by \sty{babel} (or \sty{polyglossia}) adding simple redefinitions in the preamble of your document (section \ref{sec:languages}).
%
%
%\subsubsection{The \sty{philosophy-classic} style}
%
%
%The \sty{classic} style is a standard author-year style that uses commas instead of dots to separate the parts of the entry:
%\begin{bibexample}
%\begin{description}
%\setlength{\itemsep}{-1mm}
%\item[\mdseries Donald E. Knuth]
%(1984–1986),	\emph{Computers \& Typesetting}, 5 vols., Addison-Wesley, Reading, Mass.
%\item[---]
%(1984)	\emph{Computers \& Typesetting}, vol. A: \emph{The \TeX book}, Addison-Wesley, Reading, Mass.
%\item[---]
%(1986a)	\emph{Computers \& Typesetting}, vol. B: \emph{\TeX: The Program}, Addison-Wesley, Read- ing, Mass.
% \item[---]
%(1986b)	\emph{Computers \& Typesetting}, vol. C: \emph{The METAFONTbook}, Addison-Wesley, Reading, Mass.
%  \item[---]
%(1986c)	\emph{Computers \& Typesetting}, vol. D: \emph{METAFONT: The Program}, Addison-Wesley, Reading, Mass.
%  \item[---]
%(1986d)	\emph{Computers \& Typesetting}, vol. E: \emph{Computer Modern Typefaces}, Addison- Wesley, Reading, Mass.
%\end{description}
%	\end{bibexample}
%
%
%It is associated to a compact citation scheme which allows to cite multiple entries of the same author and/or published in the same year, omitting some redundant informations:
%\begin{bibexample}
%Knuth (1984, 1986a,b,c,d)
%\end{bibexample}
%
%
%\subsubsection{The \sty{philosophy-modern} style} \label{esempio-modern}
%
%The \sty{modern} style uses the \sty{classic} style for the citations but produces a fancy bibliography divided into blocks, which is particularly suited for bibliographies with many entries for the same author:
%\begin{bibexample}
%\begin{list}{}{%
%\setlength{\itemsep}{-1mm}
%\setlength{\labelwidth}{2cm}
%\setlength{\itemindent}{0cm}
%\setlength{\leftmargin}{2.3cm}
%\setlength{\labelsep}{3mm}}
%\item[Donald E. Knuth]
%\item[1984–1986]
%	\emph{Computers \& Typesetting}, 5 vols., Addison-Wesley, Reading, Mass.
%\item[1984]
%	\emph{Computers \& Typesetting}, vol. A: \emph{The \TeX book}, Addison-Wesley, Reading, Mass.
%\item[1986a]
%	\emph{Computers \& Typesetting}, vol. B: \emph{\TeX: The Program}, Addison-Wesley, Read- ing, Mass.
% \item[1986b]
%	\emph{Computers \& Typesetting}, vol. C: \emph{The METAFONTbook}, Addison-Wesley, Reading, Mass.
%  \item[1986c]
%	\emph{Computers \& Typesetting}, vol. D: \emph{METAFONT: The Program}, Addison-Wesley, Reading, Mass.
%  \item[1986d]
%	\emph{Computers \& Typesetting}, vol. E: \emph{Computer Modern Typefaces}, Addison- Wesley, Reading, Mass.
%\end{list}
%	\end{bibexample}
%
%\subsubsection{The \sty{philosophy-verbose} style}\label{sec:verbose}
%
%This style is aimed for citations given in the footnotes and follows the most popular scheme used in the Italian humanities.
%
%It prints a full citation similar to a bibliography entry when an item is cited for the first time, and a short citation afterwards, using the title (possibly shortened in the \bibfield{shorttitle} field), followed by the string ``cit.''.
%Citing the same entry two times, in the second one the string ``Ivi'' is used; citing the same place of the previous citation you will have ``Ibidem'':
%		\begin{bibexample}
%		\rule{5cm}{.4pt}\\[1ex]
%				\textsuperscript{1} Cfr. Cartesio, \emph{Discorso sul metodo}, trad. e 
%				introd. di Lucia Urbani Ulivi, 1\textsuperscript{a} ed., testo francese a fronte, Bompiani, 
%				Milano 2002, p. 43.\\
%				\textsuperscript{2} Ivi, p. 26. \\
%				\textsuperscript{3} Ibidem. \\
%				\textsuperscript{4} Settimo Termini, «Vita morte e miracoli di Alan 
%				Mathison Turing», in \emph{Vite matematiche. Protagonisti del '900 da 
%				Hilbert a Wiles}, a cura di Claudio Bartocci \emph{et al.}, Springer-Verlag Italia, 
%				Milano 2007, pp. 59-61.\\
%				\textsuperscript{5} Cartesio, \emph{Discorso sul metodo} cit., p. 35.
%		\end{bibexample}
%
%When there is only one entry for the same author, with the \opt{singletitle=true} option 
%the string ``op. cit.'' is used instead of the (short) title followed by ``cit.'':%
%\begin{bibexample}
%		\rule{5cm}{.4pt}\\[1ex]
%\textsuperscript{6} Cartesio, op. cit., p. 35.
%\end{bibexample}
%
%All the scholarly abbreviations (\emph{latinitates}) but ``cit.'' are printed by default in normal font. With the \opt{latinemph} option (section \ref{sec:options-verbose}) you can get them in italic shape.
%
%
%\subsection{Use}
%
% 
%To ensure Italian-style quotation marks, you need to call the \sty{babel} and \sty{csquotes} packages in the preamble of your \LaTeX document:
%\begin{verbatim}
%\usepackage[italian]{babel} 
%\usepackage[style=italian]{csquotes} 
%\usepackage[style=philosophy-<style>,backend=biber]{biblatex}
% \addbibresource{<bibfile>.bib}
%\end{verbatim}
%
%Replace ``<style>'' with \sty{classic}, \sty{modern} or \sty{verbose}, and ``<bibfile>'' with the name of your bibliography file (``.bib'' must be declared).
%
%To uniform the style of quotation marks in multilingual bibliographies typeset using the \opt{babel=other} package option, you can use the following commands:
%\begin{verbatim}
%\DeclareQuoteAlias{italian}{french}
%\DeclareQuoteAlias{italian}{german}
%\DeclareQuoteAlias{italian}{...}
%\end{verbatim}
%
% The philosophy styles require \bin{biber} so remembar to configure your editor properly. If you prefer \bin{bibtex} you have to declare it with the \opt{backend=bibtex} option but some bibliography drivers 
% will not work properly.
%
%
%\section{Translations and original editions}\label{sec:related}
%
%
%
%The \sty{philosophy} styles use the mechanism provided by the \bibfield{related} field to typeset complex entries comprising both the original publication data and the translation data \parencite[\lefthand][]{Poincare:1968-ORIG}.\footnote{Previous versions of the styles provided a different mechanism to manage translations. This feature is now deprecated and it is still supported only for backward compatibility. See section \ref{sec:origfields} for details.} 
%	\begin{bibexample}
% Jules-Henri Poincaré (1968), \emph{La science et l'hypothèse}, Flammarion, Paris; trans. as \emph{La scienza e l'ipotesi}, ed. by Corrado Sinigaglia, Bompiani, Milano 2003.
%	\end{bibexample}
%
%\begin{verbatim}
%@book{Poincare:1968-ORIG,
%	  author = {Jules-Henri Poincaré},
%	  title = {La science et l'hypothèse},
%	  publisher = {Flammarion},
%	  location = {Paris},
%	  date = {1968},
%	  related = {Poincare:1968-ITA}}
%
%@book{Poincare:1968-ITA,
%	  author = {Jules-Henri Poincaré},
%	  editor = {Corrado Sinigaglia},
%	  title = {La scienza e l'ipotesi},
%	  publisher = {Bompiani},
%	  location = {Milano}}
%	\end{verbatim}
%	
%With Biber 1.6 you can have cascading relations too \parencite[\lefthand][]{popper-logik}.\footnote{Download biber 1.6 binary for your platform from \url{SourceForge} and drop this over \texttt{/usr/texbin/biber}.}
%\begin{verbatim}
%@Book{key1, 
%  ...
%  related	= {key2}, 
%  ...
%}
%@Book{key2, 
%  ...
%  related	= {key3}, 
%  
%@Book{key3, 
%  ...
%}
%\end{verbatim}
%
%The related entry is preceded by the \texttt{translationas} string which defaults to ``trad.~it.'' for Italian documents and ``trans.~as'' for English documents. If you want to change it, use the \bibfield{relatedstring} field. For example:
%\begin{verbatim}
%@book{Poincare:1968-ORIG,
%	  author = {Jules-Henri Poincaré},
%	  ...
%	  related = {Poincare:1968-ITA},
%	  relatedstring = {ed.~it.}}
%\end{verbatim}
%
%
%
%
%\section{Style-specific fields}\label{sec:specific-fields}
% 
%
%\begin{fieldlist}
%
%\fielditem{library}{literal} 
%
%This field is printed at the end of the entry, in a new period. It is aimed for secondary informations such as the location of the texts, historical notes, etc. \parencite[\lefthand][]{heidegger:sz}.
%
%\fielditem{annotation/annote}{literal} 
%
%This field is printed in a new paragraph at the very end of the entry. It requires the \opt{annotation} package option. The default font can be changed  redefining the \cmd{annotationfont} command (section \ref{sec:commands}). See the  examples in the references of this documentation.
%
%\fielditem{nameaddon}{literal} 
%
%An addon to be printed immediately after the author name in the bibliography. 
%It is useful for those author known with alias, Latinized names, etc. \parencite[\lefthand][]{comenio:oo}.
%
% \fielditem{entrysubtype}{literal} 
% This feature is active only for the \sty{classic} and \sty{modern} styles. 
% With the \opt{classical} value the citation commands will produce an 
% author-title label. This is useful for citing works from classical antiquity, such as \cite[\lefthand][]{aristotle:physics}:
%\begin{verbatim}
%@book{aristotle:physics,
%	entrysubtype = {classical},
%	author = {Aristotle},
%	title = {Physics},
% ...
% }
%\end{verbatim}
%In the bibliography the entry is printed with the author-year label, but with the \opt{skipbib} option in the \opt{options} field you can exclude it from the bibliography.
%	\end{fieldlist}
%
%
%
%
%\section{Package options}\label{sec:options}
%
%
%
%
%\subsection{Global options}
%
%\begin{optionlist}
% \setlength{\labelwidth}{2.5cm}%
%\optitem[semicolon]{relatedformat}{\opt{semicolon}, \opt{parens}, \opt{brackets}}
%\begin{valuelist}
%\item[semicolon] 
%The ``related'' entry data are preceded by a semicolon.
%\item[parens] 
%Puts the ``related'' entry data data  in parentheses.
%\item[brackets] 
%Same as the previous option but with brackets.
%\end{valuelist}
%
%\boolitem[true]{shorthandintro}
%
%		\begin{valuelist}
%			\item[true] Prints a language-specific expression such as ``hence- forth cited as [<shorthand>]'' to introduce shorthands on the first citation. You can overwrite the default expression using the \bibfield{shorthandintro} field. Note that the alternative expression must include the shorthand.	
%			\begin{bibexample}
%			Kant (1968a [\emphasize{henceforth cited as KpV}])
%			\end{bibexample}
%
%			\item[false] Does not print the intro to the shorthand. This option requires a list of shorthands (\cmd{printshorthand} command).
%		\end{valuelist}
%
%\boolitem[false]{scauthors}
%Prints the names (author, editor, etc.) at the beginning of the entry in small caps shape, both in citations and in bibliography:
%
%If you want \emph{all} the names (translator, commentator, etc.) in small caps, you have to redefine the \cmd{mkbibname...} commands (see \sty{biblatex} documentation for details).
%
%\boolitem[false]{scauthorsbib}
%Same as the previous, but only for the bibliography.
%
%\boolitem[false]{scauthorscite}
%Same as the previous, but only for the citations.
%
%\optitem[publocyear]{publocformat}{\opt{publocyear}, \opt{locpubyear}, \opt{loccolonpub}}
%	This option provides three styles for typesetting the ``publisher/location/date'' block. 
%	It is active also for the related entry (see above) and for the \bibfield{orig-}fields (see section \ref{sec:origfields}).
%				\begin{valuelist}[labelwidth={a}]
%				\item[publocyear] Oxford University Press, Oxford 2007
%						
%				\item[locpubyear] Oxford, Oxford University Press, 2007
%						
%				\item[loccolonpub] Oxford: Oxford University Press, 2007 
%				\end{valuelist}
%
%\optitem[plain]{volnumformat}{\opt{strings}, \opt{parens}, \opt{default}}
%This option provides three styles for typesetting the ``volume/number'' block in  \bibtype{article} entries.
%				\begin{valuelist}[labelwidth={a}]
%				\item[plain]
%							\ldots \emph{Journal Title}, 5, 8, \ldots 
%				\item[strings] 
%							\ldots \emph{Journal Title}, vol.~5, n.~8, \ldots
%				\item[parens]
%							\ldots \emph{Journal Title} (5, 8), \ldots 
%				\end{valuelist}
%You can combine this option with \opt{volumeformat} options and re-defining the \cmd{volnumpunct}
%command you can get other styles (see section \ref{sec:lengths}):
%					\begin{bibexample}
%					\ldots\ \emph{Journal Title}, 5/8, \ldots \\
%					\ldots\ \emph{Journal Title}, \textsc{V}/8, \ldots \\
%					\ldots\ \emph{Journal Title} (5/8), \ldots \\
%					\ldots\ \emph{Journal Title} (\textsc{V}/8), \ldots
%					\end{bibexample}
%
%\optitem[arabic]{volumeformat}{\opt{roman}, \opt{romanupp}, \opt{romansc}, \opt{arabic}}
%This option provides three styles for typesetting the \bibfield{volume} field:
%				\begin{valuelist}
%				\item[arabic]
%								\ldots \emph{Book Title}, vol. 5, \ldots 
%					\item[roman] 
%								\ldots \emph{Book Title}, vol. iv, \ldots 
%					\item[romansc]
%								\ldots \emph{Book Title}, vol. \textsc{xi}, \ldots 
%					\item[romanupp]
%								\ldots \emph{Book Title}, vol. X, \ldots 
%					\end{valuelist}
%
%With the command
%\begin{verbatim}
%\DeclareFieldFormat{volume}{\bibstring{volume}~#1}
%\end{verbatim}
%you can restore the default format for all but \bibtype{article} entries.
%
%\optitem[arabic]{editionformat}{\opt{roman}, \opt{romanupp}, \opt{romansc}, \opt{arabic}}
%This option provides three styles for typesetting the \bibfield{edition} field:
%				\begin{valuelist}
%				\item[arabic] 
%							\ldots \emph{Book Title}, 5\textsuperscript{a} ed., \ldots 
%					\item[roman] 
%							\ldots \emph{Book Title}, iii ed., \ldots 
%					\item[romansc] 
%							\ldots \emph{Book Title}, \textsc{xi} ed., \ldots 
%					\item[romanupp] 
%							\ldots \emph{Book Title}, X ed., \ldots 
%					\end{valuelist}
%
%\boolitem[false]{inbeforejournal}
%Prints the string ``in'' before the \bibfield{journaltitle} in the  \bibtype{article} entries.
%
%\boolitem[false]{annotation}
%Shows the \bibfield{annotation} field, only in the bibliography (see also section \ref{sec:specific-fields}). 
%
%\boolitem[true]{library}
%Shows the \bibfield{library} field, both in the bibliography and in the citations (see also section \ref{sec:specific-fields}). 
%
%
%
%
%\subsection{Style-pecific options}
%
%
%
%\subsubsection[\sty{philosophy-classic} and 
%	\sty{modern}]{\sty{philosophy-classic} and 
%	\sty{philosophy-modern}}\label{sec:options-classic-modern}
%
%
%
%\boolitem[false]{square}
%Uses brackets instead of parentheses in the citations and in the author-year label used in the bibliography.
%
%\boolitem[false]{yearleft}
%Prints the  date flushed left in the bibliography.
%
%\boolitem[true]{restoreclassic}
%This option can be given as an optional argument of \cmd{printbibliography}:
%\begin{verbatim}
%\printbibliography[restoreclassic]
%\end{verbatim}
%It restores the \sty{classic} style in a document typeset using  the  \sty{modern} style. It is useful to compose a ``Web List'' like that at the end of this document (active only for the  \sty{philosophy-modern}). 
%
%\subsubsection{\sty{philosophy-verbose}}\label{sec:options-verbose}
%
%\boolitem[false]{latinemph}
%Prints the \emph{latinitates} ``{ivi}'' and ``{ibidem}'' in italic shape.
%
%
%\boolitem[false]{commacit}
%Adds a comma at the end of the \bibfield{shorttitle} field when this is followed by the string \emph{cit.}: 
%``Descartes, \emph{Discours de la méthode}, cit. ''.
%\end{optionlist}
%
%
%
%
%
%
%\section{New commands}\label{sec:commands}
%
%
%
%\begin{ltxsyntax}
%
%
%\cmditem{annotationfont}{code}\hfill default: \cmd{footnotesize}
%
%The font of the \bibfield{annotation} field. It can be redefined with:
%\begin{verbatim}
%\renewcommand*{\annotationfont}{\normalsize\sffamily}
%\end{verbatim}
%
%\cmditem{libraryfont}{code}\hfill default: \cmd{normalfont}
%
%The font of the \bibfield{library} field. It can be redefined with:
%
%\begin{verbatim}
%\renewcommand*{\libraryfont}{\sffamily}
%\end{verbatim}
%
%\cmditem{volnumpunct}{code}\hfill default: \cmd{addcomma}\cmd{space}
% 
%The separator between \bibfield{volume} and \bibfield{number} in \bibtype{article} entries.
%It can be redefined with:
%\begin{verbatim}
%\renewcommand*{\volnumpunct}{/}
%\end{verbatim}
%
%\end{ltxsyntax}
%
%
%
%
%\section{New lengths}\label{sec:lengths}
%
%
%
%The new lengths described in this section are defined only for the \sty{modern} style. For the other customizable lengths see the \sty{biblatex} documentation \parencite{lehman:biblatex}.
%
%\begin{ltxsyntax}
%
%	\lenitem{postnamesep}  
%	
%	The space between author (or editor) and the first entry relating to him.
%
%	\lenitem{yeartitle} 
%	
%	The space between year and title. 
%\end{ltxsyntax}
%
%The \sty{modern} style redefines also the following \sty{biblatex} lengths:
%\begin{ltxsyntax}
%	\lenitem{bibnamesep} The vertical space between two blocks of authors.
%	\lenitem{bibitemsep} The vertical space between the individual entries in the bibliography.
%	\lenitem{bibhang} The hanging indentation of the bibliography.
%\end{ltxsyntax}
%
%These are the default values for the lengths used by \sty{modern} style:
%\begin{verbatim}
%\setlength{\yeartitle}{0.8em}
%\setlength{\postnamesep}{0.5ex plus 2pt minus 1pt}
%\setlength{\bibitemsep}{\postnamesep}
%\setlength{\bibnamesep}{1.5ex plus 2pt minus 1pt}
%\setlength{\bibhang}{4\parindent}
%\end{verbatim}
%If you want to change them past these codes in the preamble of your document and modify the values according to your needs.
%	
%	
%	
%
%\section{New citation commands}\label{sec:commands:citations}
%
%
%
%\begin{ltxsyntax}
%
%
%\cmditem{sdcite}{key}
%
%Uses an author-title label instead of an author-year label (defined only for the \sty{classic} and \sty{modern} styles). 
%It is useful for some classical or undated works (see section \ref{sec:senzadata}). Writing
% \verb!\sdcite[15]{guzman:sd}! you will obtain: \sdcite{guzman:sd}.
% This command is deprecated. Use the \bibfield{entrysubtype} field instead (see section \ref{sec:specific-fields}).
%
%\cmditem{footcitet}{key}
%
%Same as \cmd{footcite},\footcite[12-13]{corrocher:2009} but with the \cmd{textcite} style.\footcitet[12-13]{corrocher:2009} (defined only for the \sty{classic} and \sty{modern} styles).
%
%\cmditem{ccite}{key}
%
%The same as  \cmd{cite}, but omits the author's (editor's) name (defined only for the \sty{verbose} style). Here is an example:
%\begin{verbatim}
%This topic is discussed in \cite{Rossi:2007} and in the recent 
%\ccite{Rossi:2008}.
%\end{verbatim}
%\begin{bibexample}
%This topic is discussed in P. Rossi, \emph{History of Types}, La TeXnica, Verona 2007 and in the recent \emph{Types of History}, Typographica, Milano 2008.
%\end{bibexample}
%\end{ltxsyntax}
%
%
%
%
%\section{Classical and undated works}\label{sec:senzadata}
%
%
%
%The treatment of the classical works and other writings with uncertain or omitted date is particularly difficult and inevitably imposes some choices.
%
%If there is a critical edition you should cite it directly, such as \lefthand\textcite{heidegger:sz}. If you do not like this anachronistic label you may use the \bibfield{shorthand} field, such as \lefthand\textcite{kant:kpv}. 
% Note that a ``shorthand intro'' is automatically printed when the entry is cited for the first time and omitted afterwards.  To turn off this capability load the  option \opt{shorthandintro=false}. In this case you will need a list of shorthands (\cmd{printshorthands} command). If you do not like these solutions you can use the \bibfield{entrysubtype} field with \texttt{classical} value (see section \ref{sec:specific-fields}) or the  \cmd{sdcite} command (section \ref{sec:commands:citations}).
%
%
%
%\section{Crossreferences}\label{sec:crossref}
%
%
%The \sty{philosophy} styles allow you to manage 
%entries referring to other entries through the \bibfield{crossref} fields. This is very useful when you have to cite two or more \bibtype{incollection} of the same \bibtype{collection} \parencite[\lefthand][]{corrocher:2009,federspil:2009}. In this way the \bibtype{collection} is printed in the bibliography and is cross-referenced inside the \bibtype{incollection}, using the corresponding author-year label (the mechanism is the same for \bibtype{inbook} items).
%
%
%When you have to cite only one \bibtype{incollection} of a single \bibtype{collection} you have three choices:
%		\begin{enumerate}
%		\item use the \bibfield{crossref} field  \parencite[\lefthand][]{Rossitto:1977,Termini:2007}. In this case all the  \bibtype{collection} data are automatically printed inside the \bibtype{incollection} entry;
%	\item put the \bibtype{collection} data in the fields of the \bibtype{incollection} entry \parencite[\lefthand][]{Valbusa:2007}. In this case the \bibtype{incollection} is self-contained;
%	\item put the \bibtype{collection} data in the fields of the \bibtype{incollection} entry and put the \bibtype{collection} label in the \bibfield{xref} field of the \bibtype{incollection} \parencite[\lefthand][]{kant:kpv:xref,kant:ku:xref}.
%		\end{enumerate}
%
%With the \sty{verbose} style, when citing \bibtype{incollection}s entries, the data of the \bibtype{collection} are printed entirely in the first citation and shortened afterwards. Anyway in the final bibliography the \bibtype{incollection} is always complete of all the informations about the corresponding \bibtype{collection}.
%
%
%
%\section[Languages]{Using the styles with other languages}\label{sec:languages}
%
%
%The \sty{philosophy} styles can be used for both Italian and English documents simply loading the \sty{babel} package (or \sty{polyglossia}). 
%
%In order to use the styles with different languages, you have to define all the string not defined in the language used in the preamble of your document. This is a sample code for using the styles in german documents:
%\begin{verbatim}
%\NewBibliographyString{transtolang,edorig,cit,reviewof,nodate}
%\DefineBibliographyStrings{german}{%
%	inherit={german},
%	transtolang = {deut\adddotspace \"Ubers\adddot},
%	edorig = {...},
%	cit = {...},
%	reviewof {...},
%	nodate ={...}}
%\end{verbatim}
%
%
%
%
%\section{Backward compatibility}
%
%
%
%This section explain a different mechanism (now deprecated) to manage
%entries comprising both the original publication data and the translation data. This mechanism uses some special fields.
%
%\subsection{Deprecated fields}\label{sec:origfields}
%
%The following fields can hold the translation or the original edition data. They are precede by the string ``trans.'' or ``orig. ed.'', respectively according to the \opt{origfields=trans} (default)  or \opt{origfields=origed} option (see below).
%
%\begin{fieldlist}
%
%\fielditem{origtitle}{literal}\mbox{}\\[-9ex] 
%\fielditem{transtitle}{list \file{biber} only}  
%
%The title of the translation/original edition.
%
%\fielditem{origpublisher}{list}\mbox{}\\[-9ex] 
%\fielditem{transpublisher}{list \file{biber} only}  
%
%The publisher of the translation/original edition.
%
%\fielditem{origlocation}{list}\mbox{}\\[-9ex] 
%\fielditem{translocation}{list \file{biber} only}  
%
%The location of the translation/original edition.
%
%\fielditem{origdate}{range}\mbox{}\\[-9ex] 
%\fielditem{transdate}{range \file{biber} only} 
 
%
%The publication date of the translation/original edition.
%\begin{bibexample}
%Robert Bringhurst (1992), \emph{The Elements of Typographic Style}, Hartley \& Marks Publisher Inc., Vancouver, Canada; trad. it. \emphasize{\emph{Gli elementi dello stile tipografico}, Sylvestre Bonnard, Milano 2009.}
%\end{bibexample}
%
%\fielditem{reprinttitle}{literal} 
%If the work has a reprint, the title of the reprint. It can not be used together with the \textsf{origtitle} field.
% ^^A \parencite[see][]{Galilei:dialogo}.
%
%\fielditem{usera}{literal}\mbox{}\\[-9ex] 
%\fielditem{origbooktitle}{literal \file{biber} only}\mbox{}\\[-9ex]
%\fielditem{transbooktitle}{literal \file{biber} only} 
%
%The title of the \bibtype{collection} in which the translation/original edition  of an \bibtype{article} (\bibtype{inbook} or \bibtype{incollection}) is published. The field is printed after the \bibfield{origtitle/transtitle} and the format is the same of the entry:
%
%		\begin{bibexample}
%		 Moore, George Edward (1903), «The refutation of idealism», \emph{Mind}, N.S., 12 (mag. 1903), p. 433-453; trad. it. «La confutazione dell’idealismo», in \emphasize{\emph{Il Neoempirismo}}, a cura di Alberto Pasquinelli, UTET, Torino 1969, p. 35-61.
%		\end{bibexample}
%
%\fielditem{userb}{literal}\mbox{}\\[-9ex] 
%\fielditem{orignote}{literal \file{biber} only}\mbox{}\\[-9ex]
%\fielditem{transnote}{literal \file{biber} only} 
%
%This field is printed after the \bibfield{origtitle/transtitle}. It is meat for secondary informations about the translation/original edition, such as the name of editors, translators, etc.:
%		\begin{bibexample}
%			 Mach, E. (1883), \emph{Die Mechanik in ihrer Entwickelung historisch-kritisch dargestellt}; trad. it. \emph{La meccanica nel suo sviluppo storico-critico}, \emphasize{traduzione, introduzione e note di Alfonsina D’Elia}, Bollati Boringhieri, Torino 1977.
%		\end{bibexample}
%		
%\fielditem{userc}{literal}\mbox{}\\[-9ex]
%\fielditem{origpages}{literal \file{biber} only}\mbox{}\\[-9ex]
%\fielditem{transpages}{literal \file{biber} only}
%
%This field is printed at the end of the entry, after the  \bibfield{origdate/transdate} field. It is meant for the page range of the translation/original edition or other useful informations.
%In the first case string ``p.'' is omitted.
%\end{fieldlist}
%
%
%\paragraph{Warning}
%The \bibfield{origdate/transdate} is needed in order to print these fields. Contrarily they will be ignored.
%
%\subsection{Deprecated options}
%
%\begin{optionlist}
% \setlength{\labelwidth}{2.5cm}%
%\optitem[trans]{origfields}{\opt{trans}, \opt{none}, \opt{edorig}}
%\begin{valuelist}
%\item[true] Prints the \bibfield{orig-} fields.
%\item[none] Omits the \bibfield{orig-} fields.
%\item[origed] This option cites the translation data first and adds the original publication data at the end of the entry, preceded by the string ``orig.~ed'' (or ``ed.~orig.'' for Italian  documents).
%\end{valuelist}
%
%\boolitem[true]{origed}
%
%Same as the previous but can be set on a per-entry basis in the \opt{options} field. \parencite[see][]{Lobacevskij:1994}.
%
%\optitem[semicolon]{origfieldsformat}{\opt{semicolon}, \opt{parens}, \opt{brackets}}
%\begin{valuelist}
%\item[semicolon] 
%The translation/original publication data are preceded by a semicolon:
%			\begin{bibexample}%
%				Poincaré, Jules-Henri (1968), \emph{La science et l'hypothèse}, Paris,
%				 Flammarion\emphasize{; trad. it. \emph{La scienza e l'ipotesi}, Milano, 
%				 Bompiani 2003}.
%			\end{bibexample}
%\item[parens] 
%Puts the translation or the original publication data  in parentheses:
%				\begin{bibexample}%
%				Poincaré, Jules-Henri (1968), \emph{La science et l'hypothèse}, Paris, 
%				Flammarion \emphasize{(trad. it. \emph{La scienza e l'ipotesi}, Milano, 
%				Bompiani 2003)}.
%				\end{bibexample}
%\item[brackets] 
%Same as the previous option but with brackets instead of parentheses:
%				\begin{bibexample}%
%				Poincaré, Jules-Henri (1968), \emph{La science et l'hypothèse}, Paris, 
%				Flammarion \emphasize{[trad. it. \emph{La scienza e l'ipotesi}, Milano, 
%				Bompiani 2003]}.
%				\end{bibexample}
%\end{valuelist}
%\end{optionlist}
%
%
%\defbibnote{notaesempio-english}{\small\sffamily See also \file{philosophy-examples.bib} in the
%``\texttt{texm-dist/doc/latex/biblatex-philosophy}'' directory 
%of your \TeX Live installation.}
%
%\printbibliography[keyword=primaria]
%\printbibliography[title=Examples,keyword=esempio,prenote={notaesempio-english},nottype=online]
%
%\nocite{ctan,guit:sito}
%\printbibliography[title=Web List,keyword=web,type=online,restoreclassic]
%
%
% \StopEventually{\PrintChanges\PrintIndex}
%
% \section{The Code}
%
% \subsection{\file{philosophy-standard.bbx}}
%
% \iffalse
%<*standard-bbx>
% \fi
%
%    \begin{macrocode}
\RequireBiber[2]
\RequireBibliographyStyle{standard}
%    \end{macrocode}
% Load the localization modules:
%    \begin{macrocode}
\DeclareLanguageMapping{italian}{italian-philosophy}
\DeclareLanguageMapping{english}{english-philosophy}
%    \end{macrocode}
% \subsubsection{Global options}
%    \begin{macrocode}
\newtoggle{bbx:annotation}
\newtoggle{bbx:library}
\newtoggle{bbx:scauthors}
\newtoggle{bbx:scauthorsbib}
\newtoggle{bbx:inbeforejournal}
\newtoggle{bbx:classical}

\DeclareBibliographyOption{annotation}[true]{%
  \settoggle{bbx:annotation}{#1}}
\DeclareBibliographyOption{library}[true]{%
  \settoggle{bbx:library}{#1}}
\DeclareBibliographyOption{scauthors}[true]{%
  \settoggle{bbx:scauthors}{#1}}
\DeclareBibliographyOption{scauthorsbib}[true]{%
  \settoggle{bbx:scauthorsbib}{#1}}
\DeclareBibliographyOption{inbeforejournal}[true]{%
  \settoggle{bbx:inbeforejournal}{#1}}
\DeclareBibliographyOption{classical}[true]{%
  \settoggle{bbx:classical}{#1}}
  
\newcommand{\bbx@publocformat}{}
\newcommand{\bbx@volnumformat}{}
\newcommand{\bbx@relatedformat}{}
\newcommand{\bbx@origfields}{}
\newcommand{\bbx@editionformat}{}
\newcommand{\bbx@volumeformat}{}

\DeclareBibliographyOption{publocformat}[publocyear]{%
  \renewcommand{\bbx@publocformat}{#1}}
\DeclareBibliographyOption{volnumformat}[plain]{%
  \renewcommand{\bbx@volnumformat}{#1}}
\DeclareBibliographyOption{origfieldsformat}[semicolon]{%
  \renewcommand{\bbx@relatedformat}{#1}}
\DeclareBibliographyOption{relatedformat}[semicolon]{%
  \renewcommand{\bbx@relatedformat}{#1}}
\DeclareBibliographyOption{origfields}[true]{%
  \renewcommand{\bbx@origfields}{#1}}
\DeclareBibliographyOption{editionformat}[arabic]{%
  \renewcommand{\bbx@editionformat}{#1}}
\DeclareBibliographyOption{volumeformat}[arabic]{%
  \renewcommand{\bbx@volumeformat}{#1}}

\DeclareEntryOption{origed}[true]{%
  \renewcommand{\bbx@origfields}{origed}}

\ExecuteBibliographyOptions{%
  publocformat     = publocyear,  
  annotation       = false, 
  library          = true,
  scauthors        = false,
  scauthorsbib     = false,
  origfieldsformat = semicolon,
  inbeforejournal  = false,
  volnumformat     = plain,
  editionformat    = arabic,
  volumeformat     = arabic,
  classical        = false,
  useprefix        = true,
  maxcitenames     = 2,
  mincitenames     = 1,
  maxbibnames      = 999,
  minbibnames      = 999}
%    \end{macrocode}
% Changing the penalty of the urls will prevent 
% many overfull boxes. 
%    \begin{macrocode}
\setcounter{biburlnumpenalty}{9000}
\setcounter{biburlucpenalty}{9000}
\setcounter{biburllcpenalty}{9000}
%    \end{macrocode}
% These counters control the list of names
% of cross-referenced entries:
%    \begin{macrocode}
\newcounter{maxnamesincross}
\newcounter{minnamesincross}

\AtBeginShorthands{
%    \end{macrocode}
% The annotation field is omitted in the list of shorthands:
%    \begin{macrocode}
  \togglefalse{bbx:annotation}
%    \end{macrocode}
% In the list of shorthands we always use the shorthand
% for the cross-referenced entries: 
%    \begin{macrocode}
  \DeclareCiteCommand{\bbx@crossref@inbook}
  {}%
  {\iffieldundef{shorthand}%
    {\usebibmacro{inbook:full}}%
    {\usebibmacro{cite:shorthand}}}%
  {}%
  {}%
\DeclareCiteCommand{\bbx@crossref@incollection}
  {}%
  {\iffieldundef{shorthand}%
    {\usebibmacro{incollection:full}}%
    {\usebibmacro{cite:shorthand}}}%
  {}%
  {}%
}  
%    \end{macrocode}
% \subsubsection{Name format}
%    \begin{macrocode}  
\AtBeginBibliography{%
\iftoggle{bbx:scauthorsbib}{%
\DeclareNameFormat{sortname}{%
  \ifnumequal{\value{listcount}}{1}
    {\iffirstinits
       {\usebibmacro{name:last-first}{\textsc{#1}}{\textsc{#4}}{\textsc{#5}}%
           {\textsc{#7}}}%MOD
       {\ifblank{#3}{\usebibmacro{name:last-first}{\textsc{#1}\nopunct}%
           {\textsc{#3}}{\textsc{#5}}{\textsc{#7}}}
       {\usebibmacro{name:last-first}{\textsc{#1}}{\textsc{#3}}{\textsc{#5}}%
           {\textsc{#7}}}}%
     \ifblank{#3#5}
       {}
       {\usebibmacro{name:revsdelim}}}
    {\iffirstinits
       {\usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#4}}{\textsc{#5}}%
           {\textsc{#7}}}
       {\usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#3}}{\textsc{#5}}%
           {\textsc{#7}}}}%
  \usebibmacro{name:andothers}}}%
{}}%

\AtBeginDocument{%
\iftoggle{bbx:scauthors}{%
  \toggletrue{bbx:scauthorsbib}%
  \toggletrue{cbx:scauthorscite}}%
{}}
%    \end{macrocode}
% \subsubsection{New internal commands}
%    \begin{macrocode}
\renewcommand*{\newunitpunct}{\addcomma\space}
\renewcommand*{\subtitlepunct}{\addperiod\space}
\renewcommand*{\intitlepunct}{\nopunct\addspace}
\newcommand*{\volnumpunct}{\addcomma\space}
%    \end{macrocode}
% We have to define a new internal command
% in order to get pure parenthese for some specific fields
% when using the \opt{square} option:
%    \begin{macrocode}
\newrobustcmd{\mkpureparens}[1]{%
  \begingroup
  \blx@blxinit
  \blx@setsfcodes
  \blx@postpunct(#1\blx@postpunct)\midsentence%
  \endgroup}
%    \end{macrocode}
% \paragraph{Indexing}
%    \begin{macrocode}
\renewbibmacro*{citeindex}{%
\ifciteindex{\indexnames{labelname}}{}}
\renewbibmacro*{bibindex}{%
\ifbibindex{\indexnames{author}%
\indexnames{editor}%
\indexnames{editora}%
\indexnames{editorb}%
\indexnames{editorc}}%
{}}%
%    \end{macrocode}
% \paragraph{Font selection}
%    \begin{macrocode}
\newcommand*{\annotationfont}{\footnotesize}
\newcommand*{\libraryfont}{}
\newcommand*{\editionfont}{%
    \ifdefstring{\bbx@editionformat}{romanupp}
      {\uppercase}%
      {\ifdefstring{\bbx@editionformat}{romansc}
      {\scshape}%
      {\relax}}%
      }%
\newrobustcmd*{\edfnt}[1]{%
  \begingroup
  \expandafter\editionfont
  \expandafter{\romannumeral#1}%
  \endgroup}
%    \end{macrocode}
% \subsubsection{Fields formats}
%    \begin{macrocode}
\DeclareFieldFormat[bookinbook,thesis]{title}{\mkbibemph{#1}}
\DeclareFieldFormat[review]{title}{\bibstring{reviewof}\addspace#1}
\DeclareFieldFormat[inreference,article]{title}{\mkbibquote{#1}}
\DeclareFieldFormat[bookinbook,thesis]{citetitle}{\mkbibemph{#1}}
\DeclareFieldFormat{origtitle}{\mkbibemph{#1}}
\DeclareFieldFormat[article]{origtitle}{\mkbibquote{#1}}
\DeclareFieldFormat{usera}{\mkbibemph{#1}}
\DeclareFieldFormat[bookinbook,inbook]{usera}{\mkbibemph{#1}}
\DeclareFieldFormat[incollection]{usera}{\mkbibquote{#1}}
\DeclareFieldFormat{userc}{\mkpageprefix[bookpagination]{#1}}
\DeclareFieldFormat{url}{\url{#1}}
\DeclareFieldFormat{annotation}{\annotationfont #1}
\DeclareFieldFormat{library}{\libraryfont #1}
\DeclareFieldFormat{backrefparens}{\mkpureparens{#1}}
\DeclareFieldFormat{pureparens}{\mkpureparens{#1}}
\DeclareFieldFormat{volume}{%
  \bibstring{volume}~%
  \ifinteger{#1}{%
  \ifdefstring{\bbx@volumeformat}{arabic}%
    {#1}%
    {\ifdefstring{\bbx@volumeformat}{romanupp}%
       {\RN{#1}}%
       {\ifdefstring{\bbx@volumeformat}{romansc}%
         {\textsc{\Rn{#1}}}%
         {#1}}}}{#1}}
\DeclareFieldFormat{number}{%
  \ifdefstring{\bbx@volnumformat}{strings}{%
    \bibstring{number}~#1}{#1}}
\DeclareFieldFormat{series}{%
  \ifinteger{#1}
    {\mkbibordseries{#1}~\bibstring{jourser}}
    {\ifbibstring{#1}{\bibstring{#1}}{#1}}}
\DeclareFieldFormat{edition}{%
  \ifinteger{#1}{%
    \ifdefstring{\bbx@editionformat}{arabic}
      {\mkbibordedition{#1}~\bibstring{edition}}
      {\ifdefstring{\bbx@editionformat}{romanupp}%
        {\RN{#1}~\bibstring{edition}}%
        {\ifdefstring{\bbx@editionformat}{romansc}%
          {\textsc{\Rn{#1}}~\bibstring{edition}}%
          {\mkbibordedition{#1}~\bibstring{edition}}}}}
    {#1}}%\isdot??
\DeclareFieldFormat{related:translatedas}{%
  \ifdefstring{\bbx@relatedformat}{parens}%
  {\mkpureparens{#1}}%
  {\ifdefstring{\bbx@relatedformat}{brackets}%
  {\mkbibbrackets{#1}}%
  {\printtext{\addsemicolon\space}#1}}}%
%    \end{macrocode}
% \subsubsection{The \opt{orig-} macros (deprecated)}
% These macros are provided for backward compatibility.
% The new \opt{related} field mechanism now directly support
% also this feature.
%    \begin{macrocode}
\newbibmacro*{origpublisher+origlocation+origdate}{%
\ifdefstring{\bbx@publocformat}{loccolonpub}
{\usebibmacro{origloccolonpub}\setunit{\bibpagespunct}%
     \printfield{userc}}{\ifdefstring{\bbx@publocformat}{locpubyear}
{\usebibmacro{origlocpubyear}\setunit{\bibpagespunct}%
     \printfield{userc}}
{\usebibmacro{origpublocyear}\setunit{\bibpagespunct}%
     \printfield{userc}}}}
     
\newbibmacro*{origpublocyear}{%
\iflistundef{origpublisher}%
{\printlist{origlocation}%
\setunit*{\addspace}%
   \printorigdate}%
{\printlist{origpublisher}%
     \setunit*{\addcomma\space}%
\printlist{origlocation}%
\setunit*{\addspace}%
   \printorigdate}%
  \newunit}
  
\newbibmacro*{origloccolonpub}{%
\iflistundef{origlocation}{}%
  {\printlist{origlocation}}%
  \iflistundef{origpublisher}%
     {\setunit*{\addspace}%
\printorigdate}%
     {\setunit*{\addcolon\space}%
  \printlist{origpublisher}%
  \setunit*{\addcomma\space}%
  \printorigdate}%
  \newunit}
  
\newbibmacro*{origlocpubyear}{%
\iflistundef{origlocation}{}%
  {\printlist{origlocation}}%
  \iflistundef{origpublisher}%
     {\setunit*{\addspace}%
\printorigdate}%
     {\setunit*{\addcomma\space}%
  \printlist{origpublisher}%
  \setunit*{\addcomma\space}%
  \printorigdate}%
  \newunit}

\newbibmacro*{reprinttitle}{%
  \iffieldundef{reprinttitle}{}{%
   \iffieldsequal{reprinttitle}{title}{}{%
        \printfield[title]{reprinttitle}%
      \setunit{\addcomma\space}}}%
\iffieldundef{userb}{}{%
        \printfield{userb}}}%

\newbibmacro*{transorigstring}{%
\iffieldundef{reprinttitle}%
{\printtext{\ifdefstring{\bbx@origfields}{origed}
{\bibstring{origed}}%
{\bibstring{transtolang}}}\nopunct}%
{\printtext{\bibstring{reprint}}}\nopunct}

\newbibmacro*{origtitle:book}{%
  \iffieldundef{origtitle}{}{
        \printfield[origtitle]{origtitle}%
      \setunit{\addcomma\space}}
\iffieldundef{userb}{}{%
        \printfield{userb}}}%

\newbibmacro*{origtitledata:book}{%
\usebibmacro{transorigstring}%
\iffieldundef{reprinttitle}%
{\usebibmacro{origtitle:book}}%
{\usebibmacro{reprinttitle}}%
\newunit\newblock
   \usebibmacro{origpublisher+origlocation+origdate}}

\newbibmacro*{origdata:book}{%
  \ifboolexpr{
    test {\iffieldundef{origtitle}}
    and
    test {\iffieldundef{origlocation}}
    and
    test {\iffieldundef{origpublisher}}
    and
    test {\iffieldundef{origyear}}
  }%
  {}%
      {\ifdefstring{\bbx@relatedformat}{parens}
    {\nopunct\printtext[pureparens]{\usebibmacro{origtitledata:book}}}
    {\ifdefstring{\bbx@relatedformat}{brackets}
        {\nopunct\printtext[brackets]{\usebibmacro{origtitledata:book}}}
        {\setunit{\addsemicolon\space}%
            \printtext{\usebibmacro{origtitledata:book}}}}}}

\newbibmacro*{origtitle:article-inbook-incoll}{%
  \iffieldundef{origtitle}{}{%
        \printfield[origtitle]{origtitle}%
\setunit{\addcomma\space}}
\iffieldundef{usera}{}{%
\usebibmacro{in:}%
\printfield{usera}%
             \setunit{\addcomma\space}}%
\iffieldundef{userb}{}{%
        \printfield{userb}%
       \newunit}}

\newbibmacro*{origtitledata:article-inbook-incoll}{%
        \usebibmacro{transorigstring}%
        \setunit{\addspace}%
        \usebibmacro{origtitle:article-inbook-incoll}%
        \usebibmacro{origpublisher+origlocation+origdate}}

\newbibmacro*{origdata:article-inbook}{%
    \iflistundef{origlocation}{}{%
        \ifdefstring{\bbx@relatedformat}{parens}
          {\nopunct\printtext[pureparens]{%
          \usebibmacro{origtitledata:article-inbook-incoll}}}%
             {\ifdefstring{\bbx@relatedformat}{brackets}
                {\nopunct\printtext[brackets]{%
            \usebibmacro{origtitledata:article-inbook-incoll}}}%
        {\setunit{\addsemicolon\space}%
     \printtext{%
  \usebibmacro{origtitledata:article-inbook-incoll}}}}}}
%    \end{macrocode}
% \subsubsection{New macros}
%    \begin{macrocode}
\renewbibmacro*{addendum+pubstate}{%
  \printfield{addendum}%
  \newunit\newblock
  \printfield{pubstate}%
  \ifdefstring{\bbx@origfields}{none}{}{%
   \newunit\newblock
  \usebibmacro{origdata:book}}%
  \newunit\newblock
  \usebibmacro{library}}

\newbibmacro*{addendum+pubstate:article-inbook-incoll}{%
  \printfield{addendum}%
  \newunit\newblock
  \printfield{pubstate}%
  \ifdefstring{\bbx@origfields}{none}{}{%
   \newunit\newblock
  \usebibmacro{origdata:article-inbook}}%
  \newunit\newblock
  \usebibmacro{library}}

\newbibmacro*{volnumdefault}{%
\printfield{volume}%
  \setunit*{\volnumpunct}%
  \printfield{number}}

\newbibmacro*{volnumparens}{%
\nopunct%
\printtext[pureparens]{%
\printfield{volume}%
  \setunit*{\volnumpunct}%
  \printfield{number}}\addcomma\space}

\newbibmacro*{volnumstrings}{%
  \iffieldundef{volume}{}{%
    \printfield{volume}\setunit*{\volnumpunct}}%
 \iffieldundef{number}{}{%
   \printfield{number}}}

\renewbibmacro*{journal}{%
  \iffieldundef{journaltitle}
    {}
    {\printtext[journaltitle]{%
       \printfield[titlecase]{journaltitle}%
       \midsentence%MOD############
       \setunit{\subtitlepunct}%
       \printfield[titlecase]{journalsubtitle}}}}

\renewbibmacro*{periodical}{%
  \iffieldundef{title}
    {}
    {\printtext[title]{%
       \printfield[titlecase]{title}%
       \midsentence%MOD#############
       \setunit{\subtitlepunct}%
       \printfield[titlecase]{subtitle}}}}

\renewbibmacro*{journal+issuetitle}{%
  \usebibmacro{journal}%
  \setunit*{\addspace}%
  \iffieldundef{series}
    {}
    {\newunit%
     \printfield{series}\setunit{\addspace}\midsentence}%
     \newunit%
  \usebibmacro{volume+number+eid}%
  \setunit{\addspace}%
  \usebibmacro{issue+date}%
  \setunit{\addcolon\space}%
  \usebibmacro{issue}%
  \newunit}

\renewbibmacro*{title+issuetitle}{%
  \usebibmacro{periodical}%
  \setunit*{\addspace}%
  \iffieldundef{series}
    {}
    {\newunit
     \printfield{series}%
     \setunit{\addspace}\midsentence}%
  \newunit
  \usebibmacro{volume+number+eid}%
  \setunit{\addcomma\space}%
  \printfield{eid}%
  \setunit{\addspace}%
  \usebibmacro{issue+date}%
  \setunit{\addcolon\space}%
  \usebibmacro{issue}%
  \newunit}

\renewbibmacro*{volume+number+eid}{%
     \ifdefstring{\bbx@volnumformat}{strings}
      {\usebibmacro{volnumstrings}}%
      {\ifdefstring{\bbx@volnumformat}{parens}
      {\usebibmacro{volnumparens}}%
      {\usebibmacro{volnumdefault}}}%
  \setunit{\addcomma\space}%
  \printfield{eid}}
  
\renewbibmacro*{issue+date}{%
  \printtext[pureparens]{%
    \iffieldundef{issue}
      {\usebibmacro{date}}
      {\printfield{issue}%
       \setunit*{\addspace}%
       \usebibmacro{date}}}%
  \newunit}

\renewbibmacro*{event+venue+date}{%v0.8
  \printfield{eventtitle}%
  \ifboolexpr{
    test {\iffieldundef{venue}}
    and
    test {\iffieldundef{eventyear}}
  }
    {}
    {\setunit*{\addspace}%
     \printtext{%
       \printfield{venue}%
       \setunit*{\addcomma\space}%
       \printeventdate}}%
  \newunit}
 
\renewbibmacro*{series+number}{%
  \printfield{series}%
 \setunit*{\addcomma\space}%
  \printfield{number}%
  \newunit}

\renewbibmacro*{publisher+location+date}{%
\ifdefstring{\bbx@publocformat}{loccolonpub}
  {\usebibmacro{loccolonpub}}
    {\ifdefstring{\bbx@publocformat}{locpubyear}
    {\usebibmacro{locpubyear}}
    {\usebibmacro{publocyear}}}}

\renewbibmacro*{institution+location+date}{%
\ifdefstring{\bbx@publocformat}{loccolonpub}
  {\usebibmacro{inloccolonpub}}
    {\ifdefstring{\bbx@publocformat}{locpubyear}
    {\usebibmacro{inlocpubyear}}
    {\usebibmacro{inpublocyear}}}}

\renewbibmacro*{organization+location+date}{%
\ifdefstring{\bbx@publocformat}{loccolonpub}
  {\usebibmacro{orgloccolonpub}}
    {\ifdefstring{\bbx@publocformat}{locpubyear}
    {\usebibmacro{orglocpubyear}}
    {\usebibmacro{orgpublocyear}}}}

\newbibmacro*{library}{%
\iftoggle{bbx:library}{%
  \iffieldundef{library}%
  {}%
    {\setunit{\addperiod\space}%
      {\printfield{library}}}}%
    {}}
%    \end{macrocode}
% In this macro the \cmd{newpunct} command is needed
% to avoid the dot after the parentheses.
%    \begin{macrocode}
\renewbibmacro*{pageref}{%
  \iflistundef{pageref}
    {}%
    {\setunit{\addperiod\space}%
    \printtext[backrefparens]{%
       \ifnumgreater{\value{pageref}}{1}
         {\bibstring{backrefpages}\ppspace}%
 {\bibstring{backrefpage}\ppspace}%
       \printlist[pageref][-\value{listtotal}]{pageref}\adddot}\nopunct}}%

\renewbibmacro*{finentry}{%
  \iftoggle{bbx:annotation}%
    {\iffieldundef{annotation}%
      {\finentry}%
      {\setunit{\addperiod\par\nobreak\vspace*{.5ex}}%
      \printtext[annotation]{\printfield{annotation}\finentry\par}}}%
 {\finentry}}

\newbibmacro*{publocyear}{%
  \iflistundef{publisher}%
   {}%
{\printlist{publisher}}
  \setunit*{\addcomma\space}%
  \printlist{location}%
  \usebibmacro{relateddate}%
\newunit}

\newbibmacro*{inpublocyear}{%
  \iflistundef{institution}%
   {}%
{\printlist{institution}}
  \setunit*{\addcomma\space}%
  \printlist{location}%
  \usebibmacro{relateddate}%
\newunit}

\newbibmacro*{orgpublocyear}{%
  \iflistundef{organization}%
   {}%
{\printlist{organization}}
  \setunit*{\addcomma\space}%
  \printlist{location}%
  \usebibmacro{relateddate}%
\newunit}

\newbibmacro*{loccolonpub}{%
  \printlist{location}%
  \iflistundef{publisher}%
   {\setunit*{\addspace}}
     {\setunit*{\addcolon\space}}%
  \printlist{publisher}%
  \usebibmacro{commarelateddate}%
\newunit}

\newbibmacro*{inloccolonpub}{%
  \printlist{location}%
  \iflistundef{institution}
    {\setunit*{\addspace}}
    {\setunit*{\addcolon\space}}%
  \printlist{institution}%
  \usebibmacro{commarelateddate}%
  \newunit}
  
\newbibmacro*{orgloccolonpub}{%
  \printlist{location}%
  \iflistundef{organization}
    {\setunit*{\addspace}}
    {\setunit*{\addcolon\space}}%
  \printlist{organization}%
  \usebibmacro{commarelateddate}%
  \newunit}
  
\newbibmacro*{locpubyear}{%
  \printlist{location}%
  \iflistundef{publisher}%
   {\setunit*{\addspace}}
     {\setunit*{\addcomma\space}}%
  \printlist{publisher}%
  \usebibmacro{commarelateddate}%
\newunit}

\newbibmacro*{inlocpubyear}{%
  \printlist{location}%
  \iflistundef{institution}
    {\setunit*{\addspace}}
    {\setunit*{\addcomma\space}}%
  \printlist{institution}%
  \usebibmacro{commarelateddate}%
  \newunit}
  
\newbibmacro*{orglocpubyear}{%
  \printlist{location}%
  \iflistundef{organization}
    {\setunit*{\addspace}}
    {\setunit*{\addcomma\space}}%
  \printlist{organization}%
  \usebibmacro{commarelateddate}%
  \newunit}
%    \end{macrocode}
% \subsubsection{The \bibfield{related} field mechanism}
%    \begin{macrocode}
\newbibmacro*{relateddate}{%
  \setunit*{\addspace}%
  \printdate}
\newbibmacro*{commarelateddate}{%
  \setunit*{\addcomma\space}%
  \printdate}

\DeclareCiteCommand{\relatedcite}
  {}%
  {\usedriver
     {\DeclareNameAlias{sortname}{default}%
     % trucco per modificare due righe in ogni driver
     % e togliere l'autore/curatore nelle voci 'related'
  \renewbibmacro*{author/translator+others}{\usebibmacro{bbx:savehash}}%
  \renewbibmacro*{author/editor+others/translator+others}{\usebibmacro{bbx:savehash}}%
  \renewbibmacro*{editor+others}{\usebibmacro{bbx:savehash}}%
  \renewbibmacro*{author/translator+others}{\usebibmacro{bbx:savehash}}%
  \renewbibmacro*{author/editor}{\usebibmacro{bbx:savehash}}%
  \renewbibmacro*{author}{\usebibmacro{bbx:savehash}}%
  \renewbibmacro*{editor}{\usebibmacro{bbx:savehash}}%
  \renewcommand*{\labelnamepunct}{}%
  \renewbibmacro*{relateddate}{%
    \setunit*{\addspace}\printdate}%
  \renewbibmacro*{commarelateddate}{%
    \setunit*{\addcomma\space}\printdate}}%
     {\thefield{entrytype}}}%
  {}%
  {}%

\newbibmacro*{related:translatedas}[1]{%
  \togglefalse{cbx:scauthorscite}%
  \togglefalse{bbx:annotation}%
\iffieldundef{relatedstring}%
  {\bibstring{translationas}\space}%
  {\setunit{\bibstring{translationas}\space}}%
  \relatedcite{\thefield{related}}}

\renewbibmacro*{related:default}{%
  \usebibmacro{related:translatedas}}
%    \end{macrocode}
% \subsubsection{Bibliography drivers}
%    \begin{macrocode}
 \DeclareBibliographyDriver{article}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author/translator+others}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{title}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \usebibmacro{bytranslator+others}%
  \newunit\newblock
  \printfield{version}%
  \newunit\newblock
  \iftoggle{bbx:inbeforejournal}{\usebibmacro{in:}}{}
  \usebibmacro{journal+issuetitle}%
  \newunit\newblock
  \usebibmacro{byeditor+others}%
  \newunit\newblock
  \usebibmacro{note+pages}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{issn}}
    {}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate:article-inbook-incoll}%MOD
  \setunit{\addsemicolon\space}\newblock
  \usebibmacro{related}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}
  
\DeclareBibliographyDriver{book}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author/editor+others/translator+others}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{maintitle+title}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \usebibmacro{byeditor+others}%
  \newunit\newblock
  \printfield{edition}%
  \newunit
  \iffieldundef{maintitle}
    {\printfield{volume}%
     \printfield{part}}
    {}%
  \newunit
  \printfield{volumes}%
  \newunit\newblock
  \usebibmacro{series+number}%
  \newunit\newblock
  \printfield{note}%
  \newunit\newblock
  \usebibmacro{publisher+location+date}%
  \newunit\newblock
  \usebibmacro{chapter+pages}%
  \newunit
  \printfield{pagetotal}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{isbn}}
    {}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\addsemicolon\space}\newblock
  \usebibmacro{related}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}

\DeclareBibliographyDriver{booklet}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author/editor+others/translator+others}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{title}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \usebibmacro{byeditor+others}%
  \newunit\newblock
  \printfield{howpublished}%
  \newunit\newblock
  \printfield{type}%
  \newunit\newblock
  \printfield{note}%
  \newunit\newblock
  \usebibmacro{location+date}%
  \newunit\newblock
  \usebibmacro{chapter+pages}%
  \newunit
  \printfield{pagetotal}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\addsemicolon\space}\newblock
  \usebibmacro{related}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}

\DeclareBibliographyDriver{collection}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{editor+others}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{maintitle+title}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byeditor+others}%
  \newunit\newblock
  \printfield{edition}%
  \newunit
  \iffieldundef{maintitle}
    {\printfield{volume}%
     \printfield{part}}
    {}%
  \newunit
  \printfield{volumes}%
  \newunit\newblock
  \usebibmacro{series+number}%
  \newunit\newblock
  \printfield{note}%
  \newunit\newblock
  \usebibmacro{publisher+location+date}%
  \newunit\newblock
  \usebibmacro{chapter+pages}%
  \newunit
  \printfield{pagetotal}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{isbn}}
    {}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\addsemicolon\space}\newblock
  \usebibmacro{related}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}

\DeclareBibliographyDriver{inbook}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author/translator+others}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{title}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \usebibmacro{in:}%
  \iffieldundef{xref}%
   {\iffieldundef{crossref}{\usebibmacro{inbook:full}}%
   {\bbx@crossref@inbook{\thefield{crossref}}%
   \newunit\newblock
   \usebibmacro{crossrefdata}}}%
   {\bbx@crossref@inbook{\thefield{xref}}%
   \newunit\newblock
   \usebibmacro{xrefdata}}}%

\newbibmacro*{inbook:full}{%
  \usebibmacro{bybookauthor}%
  \newunit\newblock
  \usebibmacro{maintitle+booktitle}%
  \newunit\newblock
  \usebibmacro{byeditor+others}%
  \newunit\newblock
  \printfield{edition}%
  \newunit
  \iffieldundef{maintitle}
    {\printfield{volume}%
     \printfield{part}}
    {}%
  \newunit
  \printfield{volumes}%
  \newunit\newblock
  \usebibmacro{series+number}%
  \newunit\newblock
  \printfield{note}%
  \newunit\newblock
  \usebibmacro{publisher+location+date}%
  \newunit\newblock
  \usebibmacro{chapter+pages}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{isbn}}
    {}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate:article-inbook-incoll}%
  \setunit{\addsemicolon\space}\newblock
  \usebibmacro{related}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}

\DeclareBibliographyDriver{incollection}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author/translator+others}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{title}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \usebibmacro{in:}%
  \iffieldundef{xref}%
   {\iffieldundef{crossref}{\usebibmacro{incollection:full}}%
   {\bbx@crossref@incollection{\thefield{crossref}}%
   \newunit\newblock
   \usebibmacro{crossrefdata}}}%
   {\bbx@crossref@incollection{\thefield{xref}}%
   \newunit\newblock
   \usebibmacro{xrefdata}}}

  \newbibmacro*{incollection:full}{%
  \usebibmacro{maintitle+booktitle}%
  \newunit\newblock
  \usebibmacro{byeditor+others}%
  \newunit\newblock
  \printfield{edition}%
  \newunit
  \iffieldundef{maintitle}
    {\printfield{volume}%
     \printfield{part}}
    {}%
  \newunit
  \printfield{volumes}%
  \newunit\newblock
  \usebibmacro{series+number}%
  \newunit\newblock
  \printfield{note}%
  \newunit\newblock
  \usebibmacro{publisher+location+date}%
  \newunit\newblock
  \usebibmacro{chapter+pages}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{isbn}}
    {}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate:article-inbook-incoll}%
  \setunit{\addsemicolon\space}\newblock
  \usebibmacro{related}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}

\DeclareBibliographyDriver{inproceedings}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author/translator+others}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{title}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \usebibmacro{in:}%
  \usebibmacro{maintitle+booktitle}%
  \newunit\newblock
  \usebibmacro{event+venue+date}%
  \newunit\newblock
  \usebibmacro{byeditor+others}%
  \newunit\newblock
  \iffieldundef{maintitle}
    {\printfield{volume}%
     \printfield{part}}
    {}%
  \newunit
  \printfield{volumes}%
  \newunit\newblock
  \usebibmacro{series+number}%
  \newunit\newblock
  \printfield{note}%
  \newunit\newblock
  \printlist{organization}%
  \newunit
  \usebibmacro{publisher+location+date}%
  \newunit\newblock
  \usebibmacro{chapter+pages}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{isbn}}
    {}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\addsemicolon\space}\newblock
  \usebibmacro{related}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}

\DeclareBibliographyDriver{manual}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author/editor}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{title}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \usebibmacro{byeditor}%
  \newunit\newblock
  \printfield{edition}%
  \newunit\newblock
  \usebibmacro{series+number}%
  \newunit\newblock
  \printfield{type}%
  \newunit
  \printfield{version}%
  \newunit
  \printfield{note}%
  \newunit\newblock
  \printlist{organization}%
  \newunit
  \usebibmacro{publisher+location+date}%
  \newunit\newblock
  \usebibmacro{chapter+pages}%
  \newunit
  \printfield{pagetotal}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{isbn}}
    {}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\addsemicolon\space}\newblock
  \usebibmacro{related}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}

\DeclareBibliographyDriver{misc}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author/editor+others/translator+others}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{title}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \usebibmacro{byeditor+others}%
  \newunit\newblock
  \printfield{howpublished}%
  \newunit\newblock
  \printfield{type}%
  \newunit
  \printfield{version}%
  \newunit
  \printfield{note}%
  \newunit\newblock
  \usebibmacro{organization+location+date}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\addsemicolon\space}\newblock
  \usebibmacro{related}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}

\DeclareBibliographyDriver{online}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author/editor+others/translator+others}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{title}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \usebibmacro{byeditor+others}%
  \newunit\newblock
  \printfield{version}%
  \newunit
  \printfield{note}%
  \newunit\newblock
  \printlist{organization}%
  \newunit\newblock
  \usebibmacro{date}%
  \newunit\newblock
  \iftoggle{bbx:eprint}
    {\usebibmacro{eprint}}
    {}%
  \newunit\newblock
  \usebibmacro{url+urldate}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\addsemicolon\space}\newblock
  \usebibmacro{related}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}

\DeclareBibliographyDriver{patent}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{title}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \printfield{type}%
  \setunit*{\addspace}%
  \printfield{number}%
  \iflistundef{location}
    {}
    {\setunit*{\addspace}%
     \printtext[parens]{%
       \printlist[][-\value{listtotal}]{location}}}%
  \newunit\newblock
  \usebibmacro{byholder}%
  \newunit\newblock
  \printfield{note}%
  \newunit\newblock
  \usebibmacro{date}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\addsemicolon\space}\newblock
  \usebibmacro{related}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}

\DeclareBibliographyDriver{periodical}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{editor}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{title+issuetitle}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byeditor}%
  \newunit\newblock
  \printfield{note}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{issn}}
    {}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\addsemicolon\space}\newblock
  \usebibmacro{related}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}

\DeclareBibliographyDriver{proceedings}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{editor+others}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{maintitle+title}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{event+venue+date}%
  \newunit\newblock
  \usebibmacro{byeditor+others}%
  \newunit\newblock
  \iffieldundef{maintitle}
    {\printfield{volume}%
     \printfield{part}}
    {}%
  \newunit
  \printfield{volumes}%
  \newunit\newblock
  \usebibmacro{series+number}%
  \newunit\newblock
  \printfield{note}%
  \newunit\newblock
  \printlist{organization}%
  \newunit
  \usebibmacro{publisher+location+date}%
  \newunit\newblock
  \usebibmacro{chapter+pages}%
  \newunit
  \printfield{pagetotal}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{isbn}}
    {}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\addsemicolon\space}\newblock
  \usebibmacro{related}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}

\DeclareBibliographyDriver{report}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{title}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \printfield{type}%
  \setunit*{\addspace}%
  \printfield{number}%
  \newunit\newblock
  \printfield{version}%
  \newunit
  \printfield{note}%
  \newunit\newblock
  \usebibmacro{institution+location+date}%
  \newunit\newblock
  \usebibmacro{chapter+pages}%
  \newunit
  \printfield{pagetotal}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{isrn}}
    {}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\addsemicolon\space}\newblock
  \usebibmacro{related}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}

\DeclareBibliographyDriver{thesis}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{title}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \printfield{note}%
  \newunit\newblock
  \printfield{type}%
  \newunit
  \usebibmacro{institution+location+date}%
  \newunit\newblock
  \usebibmacro{chapter+pages}%
  \newunit
  \printfield{pagetotal}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{isbn}}
    {}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\addsemicolon\space}\newblock
  \usebibmacro{related}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}

\DeclareBibliographyDriver{unpublished}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{title}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \printfield{howpublished}%
  \newunit\newblock
  \printfield{note}%
  \newunit\newblock
  \usebibmacro{location+date}%
  \newunit\newblock
  \iftoggle{bbx:url}
    {\usebibmacro{url+urldate}}
    {}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\addsemicolon\space}\newblock
  \usebibmacro{related}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}
  
\DeclareBibliographyDriver{set}{%
  \protect\PackageWarningNoLine{biblatex-philosophy}{%
  \MessageBreak 
  Entry type @set is not supported\MessageBreak 
  by the 'biblatex-philosophy' styles.\MessageBreak
  All the @set entries will be ignored}}
  
\newbibmacro*{cross:maintitle+booktitle}{%
     \iffieldundef{volume}
       {}%
       {\printfield{volume}%
        \printfield{part}%
        \setunit{\addcolon\space}%
          \printfield{booktitle}}}%

\newbibmacro*{xrefdata}{%
  \usebibmacro{cross:maintitle+booktitle}%
  \newunit\newblock
  \usebibmacro{byeditor+others}%
  \newunit\newblock
  \printfield{edition}%
  \newunit
%  \iffieldundef{maintitle}
%    {\printfield{volume}%
%     \printfield{part}}
%    {}%
%  \newunit
  \printfield{volumes}%
  \newunit\newblock
  \usebibmacro{series+number}%
  \newunit\newblock
  \printfield{note}%
  \newunit\newblock
  \usebibmacro{publisher+location+date}%
  \newunit\newblock
  \usebibmacro{chapter+pages}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{isbn}}
    {}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate:article-inbook-incoll}%
  \setunit{\bibpagerefpunct}\newblock
  \usebibmacro{related}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}

\newbibmacro*{crossrefdata}{%
  \iffieldundef{maintitle}
    {\printfield{volume}%
     \printfield{part}}
    {}%
  \newunit\newblock
  \printfield{note}%
  \newunit\newblock
  \usebibmacro{chapter+pages}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{isbn}}
    {}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate:article-inbook-incoll}%
  \setunit{\bibpagerefpunct}\newblock
  \usebibmacro{related}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}
%    \end{macrocode}
% \paragraph{Experimental drivers for jurisprudence}
% This feature is available for now only for Italian documents.
%    \begin{macrocode}
%\DeclareFieldFormat[jurisprudence]{title}{#1}
%\DeclareFieldFormat[jurisprudence]{pages}{#1}
%\ExecuteBibliographyOptions[jurisprudence]{skipbib=true}%
\DeclareFieldFormat[jurisdiction]{volume}{\RN{#1}}
\DeclareFieldFormat[jurisdiction]{number}{\bibsstring{number}~{#1}}
\DeclareFieldFormat[jurisdiction]{nameaddon}{%
  \ifinteger{#1}{\bibcpsstring{section}~\RN{#1}}{#1}}
\DeclareFieldFormat[jurisdiction]{pages}{#1}
\DeclareFieldFormat[jurisdiction]{title}{%
 \iffieldequalstr{entrysubtype}{international}{\emph{#1}}{#1}}
%    \end{macrocode}
% A new macro to manage authors of \bibtype{jurisdiction} entries.
%    \begin{macrocode}
\newbibmacro*{juris:author}{%
%    \end{macrocode}
% Use the default name format: ``name surname''
%    \begin{macrocode}
\DeclareNameAlias{sortname}{default}%
  \ifboolexpr{
    test \ifuseauthor
    and
    not test {\ifnameundef{author}}
  }
    {%
    \iffieldequalstr{type}{conclusions}{%
    \printtext{Conclusioni dell'Avv\adddotspace generale}%
    \setunit{\addspace}}{}%
\printnames{author}%
     \iffieldundef{authortype}
       {}
       {\setunit{\addcomma\space}%
	\usebibmacro{authorstrg}}}
    {}%
\iffieldequalstr{type}{conclusions}{%
    \setunit{\addspace}%
  \printtext{presentate il}%
    \setunit{\addspace}%
  }{%
    \setunit{\addcomma\space}%
  \iffieldundef{nameaddon}{}{%
\printtext{\printfield{nameaddon}%
\setunit{\addcomma\space}}}%
  }%
        \printeventdate}
    
\DeclareBibliographyDriver{jurisdiction}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{juris:author}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{title}%
  \newunit\newblock
  \usebibmacro{series+number}%
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \usebibmacro{in:}%
  \usebibmacro{maintitle+booktitle}%
  \newunit\newblock
\printtext{%
	 \printfield{labelyear}%
	 \printfield{extrayear}}
	   \usebibmacro{byeditor+others}%
  \newunit\newblock
  \printfield{edition}%
  \newunit
%  \iffieldundef{maintitle}
    {\printfield{volume}%
     \printfield{part}}
    {}%
  \newunit
  \printfield{volumes}%
  \newunit\newblock
  \printfield{note}%
  \newunit\newblock
  \usebibmacro{publisher+location+date}%
  \newunit\newblock
  \usebibmacro{chapter+pages}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{isbn}}
    {}%
  \newunit\newblock
  \usebibmacro{doi+eprint+url}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate:article-inbook-incoll}%
  \setunit{\addsemicolon\space}\newblock
  \usebibmacro{related}%
  \newunit\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}
%    \end{macrocode}
% Define new fields for \bibtype{jurisdiction} entry types.
%    \begin{macrocode}
\DeclareDriverSourcemap[datatype=bibtex]{
    \map{
     \step[fieldsource=court         , fieldtarget=author]
     \step[fieldsource=section       , fieldtarget=nameaddon]
     \step[fieldsource=transtitle    , fieldtarget=origtitle]
     \step[fieldsource=tranpublisher , fieldtarget=origpublisher]
     \step[fieldsource=translocation , fieldtarget=origlocation]
     \step[fieldsource=transbooktitle, fieldtarget=usera]
     \step[fieldsource=transnote     , fieldtarget=userb]
     \step[fieldsource=transpages    , fieldtarget=userc]
     \step[fieldsource=origbooktitle , fieldtarget=usera]
     \step[fieldsource=orignote      , fieldtarget=userb]
     \step[fieldsource=origpages     , fieldtarget=userc]
      }
    }
\DeclareDataInheritance{*}{*}{\noinherit{annotation}}
%    \end{macrocode}
% \iffalse
%</standard-bbx>
% \fi
%
% \subsection{\file{philosophy-classic.bbx}}
%
% \iffalse
%<*classic-bbx>
% \fi
% \subsubsection{Initial settings}
%    \begin{macrocode}
\RequireBibliographyStyle{authoryear}
\RequireBibliographyStyle{philosophy-standard}

\newtoggle{bbx:square}

\DeclareBibliographyOption{square}[true]{%
  \settoggle{bbx:square}{#1}}

\ExecuteBibliographyOptions{%
  uniquename  = false,
  pagetracker = true,
  singletitle = false,
  square      = false,
  mergedate   = basic,  
  dashed      = true,
}
%    \end{macrocode}
% The \opt{classic} and \opt{modern} styles 
% redefine the \texttt{relateddate} and \texttt{commarelateddate} macros
% because the date have to be printed after the name of the author/editor.
% In the list of shorthands we need a standard entry,
% with the date at the end and no date after the name of the author/editor
% so we overwrite these macros locally:
%    \begin{macrocode}
\AtBeginShorthands{%
\togglefalse{bbx:annotation}%
\renewcommand{\labelnamepunct}{\addcomma\space}%
\renewbibmacro*{relateddate}{%
  \setunit*{\addspace}%
  \printdate}
\renewbibmacro*{commarelateddate}{%
  \setunit*{\addcomma\space}%
  \printdate}
%    \end{macrocode}
% No date after the author's/editor's name:
%    \begin{macrocode}
\renewbibmacro*{date+extrayear}{}%
}

\AtBeginDocument{%
  \iftoggle{bbx:square}
    {\renewcommand{\bibopenparen}{\bibopenbracket}%
    \renewcommand{\bibcloseparen}{\bibclosebracket}}%
    {}
  \setcounter{maxnamesincross}{\value{maxnames}}%
  \setcounter{minnamesincross}{\value{minnames}}%
}
%    \end{macrocode}
% \subsubsection{New macros}
%
% Renew the bibliography macro 'relateddate'
% to delete the date at the end of the entry:
%    \begin{macrocode}
\renewbibmacro*{relateddate}{}
\renewbibmacro*{commarelateddate}{}
%    \end{macrocode}
% \paragraph{Dates}
%    \begin{macrocode}
  \renewbibmacro*{issue+date}{%
    \ifboolexpr{
      test {\iffieldundef{issue}}
      and
      test {\iffieldundef{month}}
    }
      {}%
      {\ifdefstring{\bbx@volnumformat}{parens}
      {\printtext{%
        \printfield{issue}\setunit*{\addspace}%
        \printdate}}%
      {\printtext[pureparens]{%
        \printfield{issue}\setunit*{\addspace}%
        \printdate}}}%
    \newunit}%
%    \end{macrocode}
% Delete ``month'' from \cmd{printdateextra} 
% to print open ranges such as: ``1968-'':
%    \begin{macrocode}
\renewbibmacro*{date+extrayear}{%
      \begingroup%
        \clearfield{month}%
    \iffieldundef{labelyear}
      {\printtext[parens]{\midsentence\bibstring{nodate}}}
      {\printtext[parens]{\printdateextra}}%
       \endgroup}%
%    \end{macrocode}
% \paragraph{Authors and editors}
%    \begin{macrocode}
\renewbibmacro*{author}{%
  \ifboolexpr{
    test \ifuseauthor
    and
    not test {\ifnameundef{author}}
  }%
    {\usebibmacro{bbx:dashcheck}
       {\bibnamedash}
       {\usebibmacro{bbx:savehash}%
        \printnames{author}%
        \iffieldundef{nameaddon}{}%
        {\setunit{\addspace}%
        \printtext[brackets]{\printfield{nameaddon}}}%
\iffieldundef{authortype}
  {\setunit{\addspace}}
  {\setunit{\addcomma\space}}}%
     \iffieldundef{authortype}
       {}%
       {\usebibmacro{authorstrg}%
\setunit{\addspace}}}%
    {\global\undef\bbx@lasthash
     \usebibmacro{labeltitle}%
     \setunit*{\addspace}}%
  \usebibmacro{date+extrayear}}%

\renewbibmacro*{editor}{%
  \usebibmacro{bbx:editor}{editorstrg}}
\renewbibmacro*{editor+others}{%
  \usebibmacro{bbx:editor}{editor+othersstrg}}
\renewbibmacro*{bbx:editor}[1]{%
  \ifboolexpr{
    test \ifuseeditor
    and
    not test {\ifnameundef{editor}}
  }%
    {\usebibmacro{bbx:dashcheck}
       {\bibnamedash}
       {\printnames{editor}%
\setunit{\addspace}%
\usebibmacro{bbx:savehash}}%
     \usebibmacro{#1}%
     \clearname{editor}%
     \setunit{\addspace}}%
    {\global\undef\bbx@lasthash
     \usebibmacro{labeltitle}%
     \setunit*{\addspace}}%
  \usebibmacro{date+extrayear}}%
%    \end{macrocode}
% \subsubsection{Internal commands for crossreferences}
%    \begin{macrocode}
\DeclareCiteCommand{\bbx@crossref@inbook}
  {}%
  {\usebibmacro{citeindex}%
  \ifuseeditor{%
    \ifthenelse{\value{listtotal}=2}%
      {\printnames[][-\value{maxnamesincross}]{labelname}}%
      {\printnames[][-\value{minnamesincross}]{labelname}}}%
     {\usebibmacro{labeltitle}}%
    \setunit*{\addspace}%
    \usebibmacro{date+extrayear}}%
  {}%
  {}%

\DeclareCiteCommand{\bbx@crossref@incollection}
  {}%
  {\usebibmacro{citeindex}%
  \ifuseeditor{%
    \ifthenelse{\value{listtotal}=2}%
      {\printnames[][-\value{maxnamesincross}]{labelname}}%
      {\printnames[][-\value{minnamesincross}]{labelname}}}%
     {\usebibmacro{labeltitle}}%
    \setunit*{\addspace}%
    \usebibmacro{date+extrayear}}%
  {}%
  {}%
%    \end{macrocode}
% The \opt{restoreclassic} option is redundant for the 
% philosophy-classic style. Anyway it is defined to avoid 
% error messages:
%    \begin{macrocode}
\define@key{blx@bib1}{restoreclassic}[]{}
\define@key{blx@bib2}{restoreclassic}[true]{}
%    \end{macrocode}
% \iffalse
%</classic-bbx>
% \fi
%
% \subsection{\file{philosophy-modern.bbx}}
%
% \iffalse
%<*modern-bbx>
% \fi
% \subsubsection{Initial settings}
%    \begin{macrocode}
\RequireBibliographyStyle{philosophy-classic}
%    \end{macrocode}
% The \sty{modern} style has only one specific option
% which is turned off by default:
%    \begin{macrocode}
\newtoggle{bbx:yearleft}
\DeclareBibliographyOption{yearleft}[true]{%
  \settoggle{bbx:yearleft}{#1}}
\ExecuteBibliographyOptions{%
  yearleft=false}
%    \end{macrocode}
% \subsubsection{New lengths}
%    \begin{macrocode}
\newlength{\yeartitle}
\newlength{\postnamesep}
\setlength{\yeartitle}{0.8em}%
\setlength{\postnamesep}{0.5ex plus 2pt minus 1pt}
\setlength{\bibitemsep}{\postnamesep}
\setlength{\bibnamesep}{1.5ex plus 2pt minus 1pt}
\setlength{\bibhang}{4\parindent}

\AtBeginBibliography{
\iftoggle{bbx:yearleft}{%
\setlength{\yeartitle}{\fill}}
{}}
%    \end{macrocode}
% \subsubsection{New commands}
%    \begin{macrocode}
\newcommand{\postsep}{\par\nobreak\vskip\postnamesep%
  \hskip-\bibhang\ignorespaces}
\renewcommand{\labelnamepunct}{}

\AtBeginShorthands{%
\renewcommand{\postsep}{}%
\renewcommand{\labelnamepunct}{\newunitpunct}}
%    \end{macrocode}
% \subsubsection{New macros}
% \paragraph{Dates}
%    \begin{macrocode}
\renewbibmacro*{date+extrayear}{%
      \begingroup%
        \clearfield{month}%
  \makebox[\bibhang][r]{\printtext{%
    \iffieldundef{labelyear}%
    {\printtext{\midsentence\bibstring{nodate}}}%
    {\printtext{\printdateextra}}%
    \hskip\yeartitle}}%
       \endgroup}%

\renewbibmacro*{labeltitle}{%
  \iffieldundef{label}%
    {\iffieldundef{shorttitle}
    {\printfield{title}\clearfield{title}}%
    {\printfield[title]{shorttitle}}}%
  {\printtext{\printfield{label}}%
\postsep}}
%    \end{macrocode}
% \paragraph{Authors and editors}
%    \begin{macrocode}
\renewbibmacro*{author}{%
  \ifboolexpr{
    test \ifuseauthor
    and
    not test {\ifnameundef{author}}
  }
    {\usebibmacro{bbx:dashcheck}
       {}%
       {\usebibmacro{bbx:savehash}%
        \printnames{author}%
        \iffieldundef{nameaddon}{}%
        {\setunit{\addspace}%
        \printtext[brackets]{\printfield{nameaddon}}}%
         \iffieldundef{authortype}
         {}%
         {\setunit{\addcomma\space}}%
        \usebibmacro{authorstrg}%
    \postsep}}%
      {\global\undef\bbx@lasthash
      \usebibmacro{labeltitle}%
      \setunit*{\addspace}}%
  \usebibmacro{date+extrayear}}%
  
\renewbibmacro*{editor}{%
  \usebibmacro{bbx:editor}{editorstrg}}
\renewbibmacro*{editor+others}{%
  \usebibmacro{bbx:editor}{editor+othersstrg}}
\renewbibmacro*{bbx:editor}[1]{%
 \ifboolexpr{
    test \ifuseeditor
    and
    not test {\ifnameundef{editor}}
  }%
    {\usebibmacro{bbx:dashcheck}%
       {}%
       {\printnames{editor}%
     \postsep%ADD
   \usebibmacro{bbx:savehash}}}%
     {\global\undef\bbx@lasthash%
     \usebibmacro{labeltitle}}%
  \usebibmacro{date+extrayear}%
    \iffieldundef{label}%
    {\usebibmacro{#1}%
    \clearname{editor}%
    \printtext{\addcomma\space}}{}}%
%    \end{macrocode}
% \subsubsection{Internal commands for crossreferences}
%    \begin{macrocode}
\DeclareCiteCommand{\bbx@crossref@inbook}
  {}%
  {\usebibmacro{citeindex}%
  \ifuseeditor{%
    \ifthenelse{\value{listtotal}=2}%
      {\printnames[][-\value{maxnamesincross}]{labelname}}%
      {\printnames[][-\value{minnamesincross}]{labelname}}}%
     {\usebibmacro{labeltitle}}%
    \setunit*{\addspace}%
    \usebibmacro{classic:date+extrayear}}%
  {}%
  {}%

\DeclareCiteCommand{\bbx@crossref@incollection}
  {}%
  {\usebibmacro{citeindex}%
  \ifuseeditor{%
    \ifthenelse{\value{listtotal}=2}%
      {\printnames[][-\value{maxnamesincross}]{labelname}}%
      {\printnames[][-\value{minnamesincross}]{labelname}}}%
     {\usebibmacro{labeltitle}}
    \setunit*{\addspace}%
    \usebibmacro{classic:date+extrayear}}%
  {}%
  {}%

\newbibmacro*{classic:date+extrayear}{%
      \begingroup%
        \clearfield{month}%
    \iffieldundef{labelyear}
      {\printtext[parens]{\midsentence\bibstring{nodate}}}%
      {\printtext[parens]{%
	 \printfield{labelyear}%
	 \printfield{extrayear}}}%
       \endgroup}%
%    \end{macrocode}
% \subsubsection{The \opt{restoreclassic} option}
%    \begin{macrocode}
\define@key{blx@bib1}{restoreclassic}[]{}
\define@key{blx@bib2}{restoreclassic}[true]{%
  \ifstrequal{#1}{true}{%
  \setlength{\bibhang}{\parindent}%
  \renewcommand{\labelnamepunct}{\newunitpunct}
\renewbibmacro*{date+extrayear}{%
      \begingroup%
        \clearfield{month}%
    \iffieldundef{labelyear}
      {\printtext[parens]{\midsentence\bibstring{nodate}}}%
      {\printtext[parens]{\printdateextra}}%
       \endgroup}%
\renewbibmacro*{author}{%
  \ifboolexpr{
    test \ifuseauthor
    and
    not test {\ifnameundef{author}}
  }%
    {\usebibmacro{bbx:dashcheck}
       {\bibnamedash}
       {\usebibmacro{bbx:savehash}%
        \printnames{author}%
        \iffieldundef{nameaddon}{}%
        {\setunit{\addspace}%
        \printtext[brackets]{\printfield{nameaddon}}}%
\iffieldundef{authortype}
  {\setunit{\addspace}}
  {\setunit{\addcomma\space}}}%
     \iffieldundef{authortype}
       {}%
       {\usebibmacro{authorstrg}%
\setunit{\addspace}}}%
    {\global\undef\bbx@lasthash
     \usebibmacro{labeltitle}%
     \setunit*{\addspace}}%
  \usebibmacro{date+extrayear}}%

\renewbibmacro*{editor}{%
  \usebibmacro{bbx:editor}{editorstrg}}
\renewbibmacro*{editor+others}{%
  \usebibmacro{bbx:editor}{editor+othersstrg}}
\renewbibmacro*{bbx:editor}[1]{%
  \ifboolexpr{
    test \ifuseeditor
    and
    not test {\ifnameundef{editor}}
  }%
    {\usebibmacro{bbx:dashcheck}
       {\bibnamedash}
       {\printnames{editor}%
\setunit{\addspace}%
\usebibmacro{bbx:savehash}}%
     \usebibmacro{#1}%
     \clearname{editor}%
     \setunit{\addspace}}%
    {\global\undef\bbx@lasthash
     \usebibmacro{labeltitle}%
     \setunit*{\addspace}}%
  \usebibmacro{date+extrayear}}%

\renewbibmacro*{labeltitle}{%
  \iffieldundef{label}%
    {\iffieldundef{shorttitle}%
       {\printfield{title}%
        \clearfield{title}}%
       {\printfield[title]{shorttitle}}}%
    {\printfield{label}}}%
  }{}}%
%    \end{macrocode}
% \iffalse
%</modern-bbx>
% \fi
%
% \subsection{\file{philosophy-verbose.bbx}}
%
% \iffalse
%<*verbose-bbx>
% \fi
%
% \subsubsection{Initial settings}
%
%    \begin{macrocode}
\RequireBibliographyStyle{authortitle}
\RequireBibliographyStyle{philosophy-standard}
%    \end{macrocode}
% \paragraph{Authors and editors}
%    \begin{macrocode}
\renewbibmacro*{author}{%
  \ifboolexpr{
    test \ifuseauthor
    and
    not test {\ifnameundef{author}}
  }
    {\usebibmacro{bbx:dashcheck}
       {\bibnamedash}
       {\printnames{author}%
        \iffieldundef{nameaddon}{}%
        {\setunit{\addspace}%
        \printtext[brackets]{\printfield{nameaddon}}}%
\setunit{\addcomma\space}%
\usebibmacro{bbx:savehash}}%
     \usebibmacro{authorstrg}}
    {\global\undef\bbx@lasthash}}

\renewbibmacro*{editor}{%
  \usebibmacro{bbx:editor}{editorstrg}}
\renewbibmacro*{editor+others}{%
  \usebibmacro{bbx:editor}{editor+othersstrg}}
\renewbibmacro*{bbx:editor}[1]{%
  \ifboolexpr{
    test \ifuseeditor
    and
    not test {\ifnameundef{editor}}
  }
    {\usebibmacro{bbx:dashcheck}
       {\bibnamedash}
       {\printnames{editor}%
\setunit{\addspace}% #MOD#
        \usebibmacro{bbx:savehash}}%
     \usebibmacro{#1}%
     \clearname{editor}}
    {\global\undef\bbx@lasthash}}
%    \end{macrocode}
% \subsubsection{Internal commands for crossreferences}
%    \begin{macrocode}
\DeclareCiteCommand{\bbx@crossref@inbook}
  {}%
  {\ifthenelse{\value{listtotal}=2}%
      {\printnames[][-\value{maxnamesincross}]{labelname}}%
      {\printnames[][-\value{minnamesincross}]{labelname}}%
  \setunit*{\addcomma\space}\printtext[bibhyperlink]{%
    \printfield[citetitle]{labeltitle}%
      \iftoggle{cbx:commacit}{\setunit{\addcomma\space}}%
   {\setunit{\addspace\midsentence}}%
       \bibstring{cited}}}%
  {}%
  {}%
\DeclareCiteCommand{\bbx@crossref@incollection}
  {}%
  {\ifthenelse{\value{listtotal}=2}%
      {\printnames[][-\value{maxnamesincross}]{labelname}}%
      {\printnames[][-\value{minnamesincross}]{labelname}}%
      \setunit{\addspace}%
      \usebibmacro{editorstrg}%
  \setunit*{\addcomma\space}\printtext[bibhyperlink]{%
    \printfield[citetitle]{labeltitle}%
       \iftoggle{cbx:commacit}{\setunit{\addcomma\space}}%
    {\setunit{\addspace\midsentence}}%
        \bibstring{cited}}}%
  {}%
  {}%
%    \end{macrocode}
% \iffalse
%</verbose-bbx>
% \fi
%
% \subsection{\file{philosophy-classic.cbx}}
%
% \iffalse
%<*classic-cbx>
% \fi
%
% \subsubsection{Initial settings}
%
%    \begin{macrocode}
\RequireCitationStyle{authoryear-comp}

\newtoggle{cbx:scauthorscite}
\newtoggle{cbx:shorthandintro}
\DeclareBibliographyOption{scauthorscite}[true]{%
  \settoggle{cbx:scauthorscite}{#1}}
\DeclareBibliographyOption{shorthandintro}[true]{%
  \settoggle{cbx:shorthandintro}{#1}}

\ExecuteBibliographyOptions{%
  scauthorscite = false,
  citetracker = true,
  shorthandintro = true
}

\AtEveryCite{%
  \iftoggle{cbx:scauthorscite}%
   {\renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}%
\renewcommand*{\mkbibnamefirst}[1]{\textsc{#1}}%
\renewcommand*{\mkbibnameprefix}[1]{\textsc{#1}}}%
{}}
\DeclareNameFormat{labelname}{%
\bibhyperref{%
  \ifcase\value{uniquename}%
    \usebibmacro{name:last}{#1}{#3}{#5}{#7}%
  \or
    \ifuseprefix
      {\usebibmacro{name:first-last}{#1}{#4}{#5}{#8}}
      {\usebibmacro{name:first-last}{#1}{#4}{#6}{#8}}%
  \or
    \usebibmacro{name:first-last}{#1}{#3}{#5}{#7}%
  \fi
  \usebibmacro{name:andothers}}}
%%%%

\newcommand{\switchclass}[2]{%
  \iffieldequalstr{entrysubtype}{classical}%
    {\usebibmacro{#1}}%
    {\usebibmacro{#2}}}
%    \end{macrocode}
% \subsubsection{Author-title macros}
% Import the \texttt{:AT} macros from the \file{authortitle-comp.cbx} file.
%    \begin{macrocode}
\newbibmacro*{cite:init:AT}{%
  \ifnumless{\value{multicitecount}}{2}
    {\global\boolfalse{cbx:parens}%
     \global\undef\cbx@lasthash}
    {\iffieldundef{prenote}
       {}
       {\global\undef\cbx@lasthash}}}

\newbibmacro*{cite:reinit:AT}{%
  \global\undef\cbx@lasthash}

\newbibmacro*{cite:AT}{%
  \iffieldundef{shorthand}
    {\iffieldequals{namehash}{\cbx@lasthash}
       {\setunit{\compcitedelim}}
       {\ifnameundef{labelname}
          {}
          {\printnames{labelname}%
           \setunit{\nametitledelim}}%
        \savefield{namehash}{\cbx@lasthash}}%
     \usebibmacro{cite:title:AT}}
    {\usebibmacro{cite:shorthand}%
     \usebibmacro{cite:reinit:AT}}%
  \setunit{\multicitedelim}}

\newbibmacro*{citetitle:AT}{%
  \iffieldundef{shorthand}
    {\usebibmacro{cite:title:AT}}
    {\usebibmacro{cite:shorthand}}%
  \setunit{\multicitedelim}}

\newbibmacro*{textcite:AT}{%
  \iffieldequals{namehash}{\cbx@lasthash}
    {\setunit{\compcitedelim}}
    {\ifnameundef{labelname}
       {}
       {\printnames{labelname}%
        \setunit{%
	  \global\booltrue{cbx:parens}%
	  \addspace\bibopenparen}}%
     \savefield{namehash}{\cbx@lasthash}}%
  \ifnumequal{\value{citecount}}{1}
    {\usebibmacro{prenote}}
    {}%
  \iffieldundef{shorthand}
    {\usebibmacro{cite:title:AT}}%
    {\iftoggle{cbx:shorthandintro}{%
      \ifciteseen{%
       \usebibmacro{cite:shorthand}}%
       {\usebibmacro{shorthandintro}}}%
     {\usebibmacro{cite:shorthand}}}%
  \setunit{%
    \ifbool{cbx:parens}
      {\bibcloseparen\global\boolfalse{cbx:parens}}
      {}%
    \multicitedelim}}

\newbibmacro*{cite:title:AT}{%
  \printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}

\newbibmacro*{textcite:postnote:AT}{%
  \ifnameundef{labelname}
    {\setunit{%
       \global\booltrue{cbx:parens}%
       \addspace\bibopenparen}}
    {\setunit{\postnotedelim}}%
  \printfield{postnote}%
  \ifthenelse{\value{multicitecount}=\value{multicitetotal}}
    {\setunit{}%
     \printtext{%
       \ifbool{cbx:parens}
	 {\bibcloseparen\global\boolfalse{cbx:parens}}
	 {}}}
    {\setunit{%
       \ifbool{cbx:parens}
	 {\bibcloseparen\global\boolfalse{cbx:parens}}
	 {}%
       \multicitedelim}}}
%    \end{macrocode}
% \subsubsection{Author-year macros}
%    \begin{macrocode}
\newbibmacro*{cite:init:AY}{%
  \ifnumless{\value{multicitecount}}{2}
    {\global\boolfalse{cbx:parens}%
     \global\undef\cbx@lasthash
     \global\undef\cbx@lastyear}
    {\iffieldundef{prenote}
       {}
       {\global\undef\cbx@lasthash
	\global\undef\cbx@lastyear}}}

\newbibmacro*{cite:reinit:AY}{%
  \global\undef\cbx@lasthash
  \global\undef\cbx@lastyear}

\newbibmacro*{cite:AY}{%
  \iffieldundef{shorthand}%
    {\usebibmacro{cite:noshorthand}}%
    {\iftoggle{cbx:shorthandintro}%
    {%
    \ifciteseen{\usebibmacro{cite:shorthand}}%
     {\usebibmacro{cite:noshorthand}%
     \usebibmacro{shorthandintro}}%
     }%
     {\usebibmacro{cite:shorthand}}%
     \usebibmacro{cite:reinit:AY}}%
  \setunit{\multicitedelim}}
    
\newbibmacro*{textcite:AY}{%
  \iffieldequals{namehash}{\cbx@lasthash}%
    {\iffieldundef{shorthand}%noshorthand
       {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
                    \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}%
          {\setunit{\addcomma}%
           \usebibmacro{cite:extrayear}}%
          {\setunit{\compcitedelim}%
           \usebibmacro{cite:labelyear+extrayear}%
           \savefield{labelyear}{\cbx@lastyear}}}%
       {\setunit{\compcitedelim}%shorthand
       \iftoggle{cbx:shorthandintro}%
        {\ifciteseen
        {\usebibmacro{cite:shorthand}}%
        {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
                    \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}%
          {\setunit{\addcomma}%
           \usebibmacro{cite:extrayear}}%
          {\setunit{\compcitedelim}%
           \usebibmacro{cite:labelyear+extrayear}%
           \savefield{labelyear}{\cbx@lastyear}}%
           \usebibmacro{shorthandintro}}}%
           {\usebibmacro{cite:shorthand}}%
        \global\undef\cbx@lastyear}}%
    {\ifnameundef{labelname}%
       {\iffieldundef{shorthand}%shorthand
          {\usebibmacro{cite:label}%
   \setunit{%
     \global\booltrue{cbx:parens}%
     \addspace\bibopenparen}%
   \ifnumequal{\value{citecount}}{1}%
     {\usebibmacro{prenote}}%
     {\usebibmacro{cite:shorthand}}%
   \usebibmacro{cite:labelyear+extrayear}}%
          {\iftoggle{cbx:shorthandintro}%
          {\ifciteseen%shorthand
          {\usebibmacro{cite:shorthand}}%
          {\usebibmacro{cite:label}%
   \setunit{%
     \global\booltrue{cbx:parens}%
     \addspace\bibopenparen}%
   \ifnumequal{\value{citecount}}{1}%
     {\usebibmacro{prenote}}%
     {\usebibmacro{cite:shorthand}}%
   \usebibmacro{cite:labelyear+extrayear}%
   \usebibmacro{shorthandintro}}}}%
   {\usebibmacro{cite:shorthand}}}%
       {\printnames{labelname}%
\setunit{%
  \global\booltrue{cbx:parens}%
  \addspace\bibopenparen}%
\ifnumequal{\value{citecount}}{1}%
  {\usebibmacro{prenote}}%
  {}%
        \iffieldundef{shorthand}%noshorthand
          {\iffieldundef{labelyear}%
             {\usebibmacro{cite:label}}%
             {\usebibmacro{cite:labelyear+extrayear}}%
           \savefield{labelyear}{\cbx@lastyear}}%
          {\iftoggle{cbx:shorthandintro}%
          {\ifciteseen%
                    {\usebibmacro{cite:shorthand}}%
                    {\iffieldundef{labelyear}%
             {\usebibmacro{cite:label}}%
             {\usebibmacro{cite:labelyear+extrayear}}%
           \savefield{labelyear}{\cbx@lastyear}%
           \usebibmacro{shorthandintro}}%
           \global\undef\cbx@lastyear}%
           {\usebibmacro{cite:shorthand}}}%
        \savefield{namehash}{\cbx@lasthash}}}%
  \setunit{%
    \ifbool{cbx:parens}%
      {\bibcloseparen\global\boolfalse{cbx:parens}}%
      {}%
    \multicitedelim}}%

\newbibmacro*{textcite:postnote:AY}{%
  \usebibmacro{postnote}%
  \ifthenelse{\value{multicitecount}=\value{multicitetotal}}
    {\setunit{}%
     \printtext{%
       \ifbool{cbx:parens}
	 {\bibcloseparen\global\boolfalse{cbx:parens}}
	 {}}}
    {\setunit{%
       \ifbool{cbx:parens}
	 {\bibcloseparen\global\boolfalse{cbx:parens}}
	 {}%
       \multicitedelim}}}
%    \end{macrocode}
% The \texttt{cite:shorthand} is the same for both
% author-title and author-year styles:
%    \begin{macrocode}
\renewbibmacro*{cite:shorthand}{%
  \printtext[bibhyperref]{\printfield{shorthand}}}
%    \end{macrocode}
% If the field \bibfield{entrysubtype} equals to \texttt{classical}
% the citation commands will use the author-title macros:
%    \begin{macrocode}
\renewbibmacro*{cite:init}{%
  \switchclass{cite:init:AT}{cite:init:AY}}
\renewbibmacro*{cite:reinit}{%
  \switchclass{cite:reinit:AT}{cite:reinit:AY}}
\renewbibmacro*{cite}{%
  \switchclass{cite:AT}{cite:AY}}
\renewbibmacro*{textcite}{%
  \switchclass{textcite:AT}{textcite:AY}}
\renewbibmacro*{textcite:postnote}{%
  \switchclass{textcite:postnote:AT}{textcite:postnote:AY}}

\newbibmacro*{cite:noshorthand}{%
\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}%
       {\usebibmacro{cite:label}%
\setunit{\addspace}%

\usebibmacro{cite:labelyear+extrayear}%
        \usebibmacro{cite:reinit}}%
       {\iffieldequals{namehash}{\cbx@lasthash}%
          {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
                       \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}%
             {\setunit{\addcomma}%
              \usebibmacro{cite:extrayear}}%
             {\setunit{\compcitedelim}%
              \usebibmacro{cite:labelyear+extrayear}%
              \savefield{labelyear}{\cbx@lastyear}}}%
          {\printnames{labelname}%
      \setunit{\nameyeardelim}%
           \usebibmacro{cite:labelyear+extrayear}%
           \savefield{namehash}{\cbx@lasthash}%
           \savefield{labelyear}{\cbx@lastyear}}}}
%    \end{macrocode}
% \subsubsection{Citation commands}
%    \begin{macrocode}
\DeclareCiteCommand*{\cite}
  {\usebibmacro{cite:init}%
   \usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \switchclass{citetitle:AT}{citeyear}}%
  {}
  {\usebibmacro{postnote}}

\DeclareCiteCommand*{\parencite}[\mkbibparens]
  {\usebibmacro{cite:init}%
   \usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \switchclass{citetitle:AT}{citeyear}}
  {}
  {\usebibmacro{postnote}}

\DeclareCiteCommand{\citetitle}
  {\boolfalse{citetracker}%
   \boolfalse{pagetracker}%
   \usebibmacro{prenote}}
  {\indexfield{indextitle}%
    \printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}
  {\multicitedelim}
  {\usebibmacro{postnote}}

\DeclareCiteCommand*{\citetitle}
  {\boolfalse{citetracker}%
   \boolfalse{pagetracker}%
   \usebibmacro{prenote}}
  {\indexfield{indextitle}%
    \printtext[bibhyperref]{\printfield[citetitle]{title}}}
  {\multicitedelim}
  {\usebibmacro{postnote}}

\DeclareCiteCommand{\citeyear}
  {\boolfalse{citetracker}%
   \boolfalse{pagetracker}%
   \usebibmacro{prenote}}
  {\printtext[bibhyperref]{\printfield{year}}}
  {\multicitedelim}
  {\usebibmacro{postnote}}

\DeclareCiteCommand{\footcitet}[\mkbibfootnote]
  {\usebibmacro{cite:init}}
  {\usebibmacro{citeindex}%
   \usebibmacro{textcite}}
  {}%
  {\usebibmacro{textcite:postnote}}
%    \end{macrocode}
% This command is now deprecated because it is substituted by
% the \bibfield{entrysubtype=classical} mechanism:
%    \begin{macrocode}
\DeclareCiteCommand{\sdcite}
  {\boolfalse{citetracker}%
   \boolfalse{pagetracker}%
   \usebibmacro{prenote}}
  {\indexnames{labelname}%
   \printtext[bibhyperref]{\printnames{labelname}}%
   \setunit{\addcomma\space}%
   \indexfield{indextitle}%
   \printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}
  {\multicitedelim}
  {\usebibmacro{postnote}}
%    \end{macrocode}
% \iffalse
%</classic-cbx>
% \fi
%
% \subsection{\file{philosophy-modern.cbx}}
%
% \iffalse
%<*modern-cbx>
% \fi
%
% The \sty{modern} style uses the \sty{classic} citation scheme:
%    \begin{macrocode}
\RequireCitationStyle{philosophy-classic}
%    \end{macrocode}
%
% \iffalse
%</modern-cbx>
% \fi
%
% \subsection{\file{philosophy-verbose.cbx}}
%
% \iffalse
%<*verbose-cbx>
% \fi
%
% \subsubsection{Initial settings}
%    \begin{macrocode}
\RequireCitationStyle{verbose-trad2}

\newtoggle{cbx:scauthorscite}
\newtoggle{cbx:latinemph}
\newtoggle{cbx:commacit}

\DeclareBibliographyOption{scauthorscite}[true]{%
  \settoggle{cbx:scauthorscite}{#1}}
\DeclareBibliographyOption{latinemph}[true]{%
  \settoggle{cbx:latinemph}{#1}}
\DeclareBibliographyOption{commacit}[true]{%
  \settoggle{cbx:commacit}{#1}}

\ExecuteBibliographyOptions{%
  idemtracker=false,
  loccittracker=strict,
  scauthorscite=false,
  latinemph=false,
  commacit=false}

\AtEveryCite{%
%    \end{macrocode}
% The \bibfield{annotation} field is omitted in every citations:
%    \begin{macrocode}
\togglefalse{bbx:annotation}%
%    \end{macrocode}
% Redefine \cmd{mkibid} for every citations when using
% the \opt{latinemph} option:
%    \begin{macrocode}
\iftoggle{cbx:latinemph}{\renewcommand*{\mkibid}{\emph}}{}%
%    \end{macrocode}
% \paragraph{Name formats}
%    \begin{macrocode}
\iftoggle{cbx:scauthorscite}{%
\DeclareNameFormat{labelname}{%
\ifcase\value{uniquename}%
  \usebibmacro{name:last}{\textsc{#1}}{\textsc{#3}}{\textsc{#5}}{\textsc{#7}}%
\or
  \ifuseprefix
    {\usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#4}}{\textsc{#5}}{\textsc{#8}}}%
    {\usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#4}}{\textsc{#6}}{\textsc{#8}}}%
\or
    \usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#3}}{\textsc{#5}}{\textsc{#7}}%
\fi
\usebibmacro{name:andothers}}}{}}

\DeclareNameFormat{scdefault}{%
\iffirstinits
  {\usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#4}}{\textsc{#5}}{\textsc{#7}}}
  {\ifblank{#3}%
    {\usebibmacro{name:first-last}{\textsc{#1}}{#3}{#5}{\textsc{#7}}}%
    {\usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#3}}{\textsc{#5}}{\textsc{#7}}}}%
\usebibmacro{name:andothers}}
%    \end{macrocode}
% \subsubsection{New macros}
%    \begin{macrocode}
\newbibmacro*{cite:opcit}{%
  \printtext[bibhyperlink]{\bibstring[\mkibid]{opcit}}}

\newbibmacro*{cite:loccit}{%
  \printtext{%
    \bibhyperlink{cite\csuse{cbx@lastcite@\thefield{entrykey}}}{%
      \bibstring[\mkibid]{loccit}}}%
  \global\toggletrue{cbx:loccit}}

\renewbibmacro*{cite:ibid}{%
 \ifloccit
   {\usebibmacro{cite:loccit}}{%
  \printtext{%
    \bibhyperlink{cite\csuse{cbx@lastcite@\thefield{entrykey}}}{%
      \bibstring[\mkibid]{ibidem}}}}}%

\renewbibmacro*{cite:title}{%OK
 \ifsingletitle{\usebibmacro{cite:opcit}}{%
  \printtext[bibhyperlink]{%
    \printfield[citetitle]{labeltitle}%
    \iftoggle{cbx:commacit}{\setunit{\addcomma\space}}%
    {\setunit{\addspace\midsentence}}}%
      \bibstring{cited}}}

 \renewbibmacro*{cite:full}{%OK
  \usebibmacro{cite:full:citepages}%
  \global\toggletrue{cbx:fullcite}%
  \printtext[bibhypertarget]{%
    \usedriver
      {\iftoggle{cbx:scauthorscite}{%
      \DeclareNameAlias{sortname}{scdefault}}%
      {\DeclareNameAlias{sortname}{default}}}%
      {\thefield{entrytype}}}%
  \usebibmacro{shorthandintro}}
%    \end{macrocode}
% \subsubsection{Citation commands}
%    \begin{macrocode}
\DeclareNameFormat{noname}{}
\DeclareCiteCommand{\ccite}
{\usebibmacro{prenote}%
  \renewbibmacro*{author/translator+others}{}%
  \renewbibmacro*{author/editor+others/translator+others}{}%
  \renewbibmacro*{editor+others}{}%
  \renewbibmacro*{author/translator+others}{}%
  \renewbibmacro*{author/editor}{}%
  \renewbibmacro*{author}{}%
  \renewbibmacro*{editor}{}%
  }%
{\global\togglefalse{cbx:loccit}%
\usedriver{\DeclareNameAlias{sortname}{noname}}
{\thefield{entrytype}}}
{\multicitedelim}
{\usebibmacro{cite:postnote}}
%    \end{macrocode}
% \iffalse
%</verbose-cbx>
% \fi
%
% \subsection{\file{italian-philosophy.lbx}}
%
% \iffalse
%<*italian-lbx>
% \fi
%    \begin{macrocode}
\InheritBibliographyExtras{italian}
\DeclareBibliographyExtras{%
\protected\def\bibrangedash{%
    -\penalty\hyphenpenalty}% breakable dash
  \protected\def\bibdatedash{\textendash}}%

\NewBibliographyString{transtolang,origed,cited,reviewof,nodate,section}

\DeclareBibliographyStrings{%
  inherit            =  {italian},
  nodate             =  {{senza data}{s\adddotspace d\adddot}},
  cited              =  {{cit\adddot}{cit\adddot}},
  opcit              =  {{op\adddotspace cit\adddot}{op\adddotspace cit\adddot}},
  ibidem             =  {{ivi}{ivi}},
  loccit             =  {{ibidem}{ibidem}},
  origed             =  {{ed\adddotspace orig\adddot}{ed\adddotspace orig\adddot}},
  langitalian        =  {{italiano}{it\adddot}},
  transtolang        =  {{traduzione\addspace italiana}
                        {\bibsstring{translator}\adddotspace \bibsstring{langitalian}}},
  editor             =  {{\mkpureparens{a cura di}}{\mkpureparens{a cura di}}},
  editors            =  {{\mkpureparens{a cura di}}{\mkpureparens{a cura di}}},
  andothers          =  {{\mkbibemph{et\addabbrvspace al\adddot}}
                        {\mkbibemph{et\addabbrvspace al\adddot}}},
  backrefpage        =  {{Citato a pagina}{Citato a \bibstring{page}\adddot}},
  backrefpages       =  {{Citato alle pagine}{Citato alle \bibstring{pages}\adddot}},
  pages              =  {{pagine}{\iftoggle{bbx:classical}{pp\adddot}{p\adddot}}},
  columns            =  {{colonne}{\iftoggle{bbx:classical}{coll\adddot}{col\adddot}}},
  lines              =  {{righe}{\iftoggle{bbx:classical}{rr\adddot}{r\adddot}}},
  verses             =  {{versi}{\iftoggle{bbx:classical}{vv\adddot}{v\adddot}}}, 
  volumes            =  {{volumi}{\iftoggle{bbx:classical}{voll\adddot}{vol\adddot}}},
  withcommentator    =  {{con commenti di}{con comm\adddot\addabbrvspace di}},
  withannotator      =  {{annotazioni di}{annotazioni di}},
  withintroduction   =  {{introduzione di}{introduzione di}},
  withforeword       =  {{prefazione di}{prefazione di}},
  withafterword      =  {{postfazione di}{postfazione di}},
  reprintas          =  {{ristampato}{rist\adddot}},
% reprintfrom        =  {{}{}}, % FIXME: missing
  translationof       =  {{traduzione di}{trad\adddotspace di}},
  translationas       =  {{traduzione italiana}{trad\adddotspace it\adddot}},
% translationfrom    =  {{}{}}, % FIXME: missing
  reviewof           =  {{Recensione di}{Recensione di}},
% origpubas          =  {{}{}}, % FIXME: missing
% origpubin          =  {{}{}}, % FIXME: missing
% astitle            =  {{}{}}, % FIXME: missing
% bypublisher        =  {{}{}}, % FIXME: missing
section              =  {{sezione}{sez\adddot}}}
%    \end{macrocode}
% \iffalse
%</italian-lbx>
% \fi
%
% \subsection{\file{english-philosophy.lbx}}
%
% \iffalse
%<*english-lbx>
% \fi
%    \begin{macrocode}
\InheritBibliographyExtras{english}

\DeclareBibliographyExtras{%
\protected\def\bibrangedash{%
    -\penalty\hyphenpenalty}% breakable dash
  \protected\def\bibdatedash{\textendash}}%

\NewBibliographyString{transtolang,cited,reviewof,origed,nodate}

\DeclareBibliographyStrings{%
  inherit            =  {english},
  nodate             =  {{no date}{n\adddot d\adddot}},
  cited              =  {{cit\adddot}{cit\adddot}},
  ibidem             =  {{ivi}{ivi}},
  loccit             =  {{ibidem}{ibidem}},
  origed             =  {{orig\adddotspace ed\adddot}{orig\adddotspace ed\adddot}},
  transtolang        =  {{trans\adddot}{trans\adddot}},
  editor             =  {{\mkpureparens{ed\adddot}}{\mkpureparens{ed\adddot}}},
  editors            =  {{\mkpureparens{eds\adddot}}{\mkpureparens{eds\adddot}}},
  andothers          =  {{\mkbibemph{et\addabbrvspace al\adddot}}
                        {\mkbibemph{et\addabbrvspace al\adddot}}},
  reviewof           =  {{Review of}{Review of}},
  backrefpage        =  {{cited on  page}{cited on  p\adddot}},
  backrefpages       =  {{cited on  pages}{cited on  pp\adddot}}}
%    \end{macrocode}
% \iffalse
%</english-lbx>
% \fi
%
% \Finale
