% $Id: biblatex.cfg,v 1.7 2011/11/13 19:09:07 lehman stable $
% modified by j. 'mach' wust 2012-07-04

\ProvidesFile{biblatex.cfg}

\DefineBibliographyStrings{german}{%
  idempp           = {diess\adddot},%"Diess." im Plural, nt "dies."
  editors          = {Hrsgg\adddot},
}

% Last name and last name prefix in small caps:
\renewcommand{\mkbibnamelast}{\textsc}
\renewcommand{\mkbibnameprefix}{\textsc}

% Colon instead of comma in the citation, for instance «(Gaukeley
% 2005: S. 387)»:
\renewcommand{\postnotedelim}{\addcolon\addspace}

% No trailing «S.» before the page number in the citation, for
% instance «(Gaukeley 2005: 387)»:
\DeclareFieldFormat{postnote}{#1}

% Colon instead of stop before the title in the literature list, for
% instance «Gaukeley, Gundel (2005): Das kleine Einmaleins der
% Hexerei. [...]»:
\renewcommand{\labelnamepunct}{\addcolon\addspace}

% If there is a series and number, put it in parenthesis and add an
% equals sign, for instance «[...] (= Schriftenreihe des
% Entenhausener Pfadfinderverbandes 13).»:
\renewbibmacro*{series+number}{%
  \iffieldundef{series}
    {}
    {\printtext[parens]{%
      \iffieldundef{number}
        {}
        {=\addhpthinspace}%
      \printfield{series}%
      \setunit*{\addspace}%
      \printfield{number}%
    }}\newunit}

% If there is an original publication date, add it in the
% bibliography, for instance «Duck, Tick u. a. (1966/2004): Ordens-
% und Abzeichenkunde für Fieselschweif‌linge. [...]»
% thanks to http://software4scholars.wordpress.com/2010/07/30/cite-original-year-using-biblatex/
\renewbibmacro*{date+extrayear}{
  \iffieldundef{year}
    {}
    {\printtext[parens]{%
      \iffieldundef{origyear}
        {}
        {\printfield{origyear}\addslash}%
      \printdateextra}}}

% If there is an original publication date, add it in the citation,
% for instance «(Duck u. a. 1966/2004: 37 f.)»
% thanks to http://software4scholars.wordpress.com/2010/07/30/cite-original-year-using-biblatex/
\renewbibmacro*{cite:labelyear+extrayear}{%
  \iffieldundef{labelyear}
    {}
    {\printtext[bibhyperref]{%
      \iffieldundef{origyear}
        {}
        {\printfield{origyear}\addslash}%
      \printfield{labelyear}%
      \printfield{extrayear}}}}


% If there are several works by the same person(s), replace the dash
% by an abbreviation (like German ders./dies.):
\renewcommand*{\bibnamedash}{%
      \bibsentence\bibstring{idem\thefield{gender}}}
% If in one of those additional works, the person(s) is/are
% editor(s), add a comma and space before the editor abbreviation:
\renewbibmacro*{bbx:editor}[1]{%
  \ifboolexpr{
    test \ifuseeditor
    and
    not test {\ifnameundef{editor}}
  }
    {\usebibmacro{bbx:dashcheck}
       {\bibnamedash%
  \setunit{\addcomma\space}}
       {\printnames{editor}%
  \setunit{\addcomma\space}%
  \usebibmacro{bbx:savehash}}%
     \usebibmacro{#1}%
     \clearname{editor}%
     \setunit{\addspace}}%
    {\global\undef\bbx@lasthash
     \usebibmacro{labeltitle}%
     \setunit*{\addspace}}%
  \usebibmacro{date+extrayear}}

\endinput