summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx56
1 files changed, 42 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx
index 09d2e173696..31da9091322 100644
--- a/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx
@@ -1,6 +1,6 @@
-% $Id: fiwi.bbx, v1.1a 2011/11/18 Simon Spiegel
+% $Id: fiwi.bbx, v1.1b 2011/11/22 Simon Spiegel
-\ProvidesFile{fimi.bbx}[v1.1a 2011/11/18 film studies bibliography style]
+\ProvidesFile{fiwi.bbx}[v1.1b 2011/11/22 film studies bibliography style]
\@ifpackagelater{biblatex}{2011/11/12}
{}
@@ -27,21 +27,35 @@
\providetoggle{dontprintorig}
\providetoggle{dontprintextrayear}
\togglefalse{dontprintextrayear}
+\providetoggle{yearatbeginning}
+\togglefalse{yearatbeginning}
+\providetoggle{origyearwithyear}
+\togglefalse{origyearwithyear}
+\providetoggle{origyearsuperscript}
+\togglefalse{origyearsuperscript}
\DeclareBibliographyOption{germ}[true]{\settoggle{germfassung}{#1}}
-\DeclareBibliographyOption{noseries}[true]{\togglefalse{printseriesflag}}%
+\DeclareBibliographyOption{noseries}[true]{%
+\ifstrequal{#1}{true}
+{\togglefalse{printseriesflag}}
+{\toggletrue{printseriesflag}}}%
\DeclareBibliographyOption{series}[true]{\settoggle{printseriesflag}{#1}}%
-\DeclareBibliographyOption{nopublisher}[false]{\settoggle{printpublisher}{#1}}%
+\DeclareBibliographyOption{nopublisher}[true]{\ifstrequal{#1}{true}
+{\togglefalse{printpublisher}}
+{\toggletrue{printpublisher}}}
\DeclareBibliographyOption{publisher}[true]{\settoggle{printpublisher}{#1}}%
\DeclareBibliographyOption{filmruntime}[true]{\settoggle{filmruntime}{#1}}%
\DeclareBibliographyOption{citeprefix}[true]{\settoggle{citeprefix}{#1}}
-
-
- \DeclareBibliographyOption{dashed}[true]{%
+\DeclareBibliographyOption{dashed}[true]{%
\ifstrequal{#1}{true}
{\toggletrue{bibliographydash}%
\renewbibmacro*{bbx:savehash}{\savefield{fullhash}{\bbx@lasthash}}}
{\renewbibmacro*{bbx:savehash}{}}}
+\DeclareBibliographyOption{yearatbeginning}[true]{%
+\ifstrequal{#1}{true}
+{\RequireBibliographyStyle{fiwi-yearbeginning}}{}}
+\DeclareBibliographyOption{origyearwithyear}[true]{\settoggle{origyearwithyear}{#1}}
+\DeclareBibliographyOption{origyearsuperscript}[true]{\settoggle{origyearsuperscript}{#1}}
\ExecuteBibliographyOptions{indexing=cite,maxnames=3,minnames=3,maxitems=9,useprefix=true,sorting=nyt,date=long,urldate=long,hyperref=auto,pagetracker=true,ibidtracker=context,citetracker=true,labelyear=true,isbn=false,babel=hyphen}
@@ -90,10 +104,15 @@
\DeclareFieldFormat{ser+num}{\mkbibparens{#1}}
\DeclareFieldFormat[article,review]{volume}{\bibstring{jourvol}\addnbthinspace{#1}}
\DeclareFieldFormat[article,review]{number}{\bibstring{number}\addnbthinspace{#1}}
-\DeclareFieldFormat{origyearbook}{\addspace\mkbibparens{\textsuperscript{1}#1}}
+\DeclareFieldFormat{origyearbook}{\iftoggle{origyearsuperscript}
+{\addspace\mkbibparens{#1}}
+{\addspace\mkbibparens{\textsuperscript{1}#1}}}
\DeclareFieldFormat{origyearart}{\mkbibparens{#1}}
\DeclareFieldFormat{origtit}{\mkbibparens{Original\addcolon\addspace #1}}
\DeclareFieldFormat{germfassung}{\mkbibbrackets{\bibstring{translatedto}\adddot\addcolon\addspace#1}}
+\DeclareFieldFormat{origyear}{\iftoggle{origyearsuperscript}
+{\textsuperscript{1}#1}
+{#1}}
\DeclareListFormat{default}{%
\usebibmacro{list:delim}{#1}%
@@ -230,7 +249,7 @@
{\usebibmacro{title}}\bibstring{reviewof}\addspace\fullcite{##1}}}}%
\@tempa\togglefalse{dontprintextrayear}}
-\newbibmacro*{url+urldate}{%
+\renewbibmacro*{url+urldate}{%
\printfield{url}%
\iffieldundef{urlyear}
{}
@@ -497,7 +516,12 @@ or test {\iffieldequalstr{entrytype}{set}}}
{}
{\printtext{%
\iffieldundef{endyear}%
- {\printfield{year}}%
+ {\printfield{year}%
+ \ifboolexpr{(
+ test {\iftoggle{origyearwithyear}}
+ and not test {\iffieldundef{origyear}}
+ and test {\iffieldundef{origtitle}} )}
+ {\addslash\printfield{origyear}}{}}%
{\printfield{year}\iffieldsequal{year}{endyear}%
{}{\printfield{endyear}}}%
\iftoggle{dontprintextrayear}%
@@ -542,7 +566,9 @@ or test {\iffieldequalstr{entrytype}{set}}}
\printfield[noformat]{title}%
\newunit\printfield[noformat]{subtitle}}}%
\printfield{titleaddon}
- \iffieldundef{origyear}
+ \ifboolexpr{ test {\iffieldundef{origyear}}
+ or (not test {\iffieldundef{origyear}} and test {\iftoggle{origyearwithyear}}
+ and test {\iffieldundef{origtitle}} )}
{}
{\iffieldundef{origtitle}
{\setunit{\addspace}\printtext[origyearart]{\printfield{origyear}%
@@ -654,7 +680,7 @@ or test {\iffieldequalstr{entrytype}{set}}}
\iffieldundef{maintitle}%
{}%
{\addcolon\addspace\printfield[film]{title}}%
-\ifpunctmark{!}{\unspace .}{\adddot}}%
+\ifpunctmark{!}{\unspace .\newunit}{\adddot}}%
\newbibmacro*{filmloc}
{\iflistundef{location}%
@@ -741,7 +767,9 @@ or test {\iffieldequalstr{entrytype}{set}}}
\newbibmacro*{origyear}{%
\iffieldundef{origyear}%
{}%
- {\iffieldundef{origtitle}%
+ {\ifboolexpr{ (test {\iffieldundef{origtitle}}
+ and not test {\iftoggle{origyearwithyear}} )}
+ %
{\printtext[origyearbook]{\printfield{origyear}%
\iffieldundef{origendyear}{}{\printfield{origendyear}}}}%
{}}%
@@ -943,7 +971,7 @@ or test {\iffieldequalstr{entrytype}{set}}}
\newblock
\ifthenelse{\iffieldundef{doi} \and \iffieldundef{url} \and \iffieldundef{eprint}}
{}
-{\usebibmacro{doi+eprint+url}}%
+{\addperiod\addspace\usebibmacro{doi+eprint+url}}%
\addspace\usebibmacro{decidetranslatedversion}%
\newblock
\usebibmacro{addendum+pubstate}%