Commit 9fe364f0 authored by Lukas Janek Körfer's avatar Lukas Janek Körfer
Browse files

Fixed dates in drivers and added part field to standard driver

parent 009b8e8e
\ProvidesPackage{wzl-citation}[2018/09/25]
\RequirePackage[autostyle]{csquotes}
\RequirePackage[backend=biber,style=alphabetic]{biblatex}
\RequirePackage[backend=biber,style=alphabetic,date=short]{biblatex}
% New strings
\NewBibliographyString{standard}
......@@ -10,11 +10,25 @@
\DefineBibliographyStrings{ngerman}{
bibliography = {Literaturverzeichnis},
standard = {Norm},
patent = {Schutzrecht}
patent = {Schutzrecht},
part = {Teil},
url = {URL},
urlseen = {Stand},
% Month names
january = {Januar},
february = {Februar},
march = {März},
april = {April},
may = {Mai},
june = {Juni},
july = {Juli},
august = {August},
september = {September},
october = {Oktober},
november = {November},
december = {December}
}
\DeclareNameFormat[standard]{labelname}{\usebibmacro{institution}}
% Citation style
\DeclareLabelalphaTemplate{
\labelelement{
......@@ -51,11 +65,12 @@
\DeclareFieldFormat*{thesistitle}{#1\isdot}
% URL format
\DeclareFieldFormat*{url}{URL\addcolon\space\url{#1}}
\DeclareFieldFormat*{urldate}{[Stand\addcolon\space#1]}
\DeclareFieldFormat*{url}{\bibstring{url}\addcolon\addspace\url{#1}}
\DeclareFieldFormat*{urldate}{[\bibstring{urlseen}\addcolon\addspace#1]}
% Volume format
\DeclareFieldFormat*{volume}{Bd\adddot\space#1}
\DeclareFieldFormat*{part}{\bibstring{part}\addspace#1}
\DeclareFieldFormat*{volume}{Bd\adddot\addspace#1}
% Norm / Guideline driver
\DeclareBibliographyDriver{standard}{%
......@@ -66,8 +81,10 @@
\printlist{institution}%
\setunit{\addspace}%
\printfield{number}%
\setunit{\addspace}%
\printfield{part}%
\addspace%
(\mkbibmonth{\thefield{month}}\addspace\printfield{year})%
\mkbibparens{\mkbibmonth{\thefield{month}}\addspace\printfield{year}}%
\setunit{\adddot\addspace}%
\usebibmacro{title}%
\usebibmacro{finentry}%
......@@ -83,7 +100,7 @@
\setunit{\addspace}%
\printfield{number}%
\addspace%
(\usebibmacro{date})%
\mkbibparens{\usebibmacro{date}}%
\setunit{\adddot\addspace}%
\usebibmacro{author}%
\setunit{\addcolon\addspace}%
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment