summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx30
1 files changed, 25 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx
index 686b37ca9a5..d2ce3f8b2ad 100644
--- a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx
@@ -13,18 +13,22 @@
%% License information appended
%%
\ProvidesFile{philosophy-classic.bbx}
- [2013/03/30 v0.8d valbusa beta]
+ [2013/04/13 v0.8e valbusa beta]
\RequireBibliographyStyle{authoryear}
\RequireBibliographyStyle{philosophy-standard}
\newtoggle{bbx:square}
+\newtoggle{bbx:nodate}
\DeclareBibliographyOption{square}[true]{%
\settoggle{bbx:square}{#1}}
+\DeclareBibliographyOption{nodate}[true]{%
+ \settoggle{bbx:nodate}{#1}}
\ExecuteBibliographyOptions{%
+ nodate = true,
uniquename = false,
pagetracker = true,
singletitle = false,
@@ -72,10 +76,16 @@
\newbibmacro*{date+extrayear:crossref}{%
\begingroup%
\clearfield{month}%
- \iffieldundef{labelyear}
- {\printtext[parens]{\midsentence\bibstring{nodate}}}
+ \ifboolexpr{
+ test {\iffieldundef{date}}
+ and
+ test {\iffieldundef{year}}
+ }%
+ {\iftoggle{bbx:nodate}{\printtext[parens]{%
+ \midsentence\bibstring{nodate}}}{}}
{\printtext[parens]{\printdateextra}}%
\endgroup}%
+\newbibmacro*{date+extrayear}{}%
}
\AtBeginDocument{%
@@ -86,6 +96,11 @@
\setcounter{maxnamesincross}{\value{maxnames}}%
\setcounter{minnamesincross}{\value{minnames}}%
}
+
+\AtEveryBibitem{%
+\iffieldequalstr{entrysubtype}{classic}{%
+ \togglefalse{bbx:nodate}}}
+
\renewbibmacro*{relateddate}{}
\renewbibmacro*{commarelateddate}{}
\renewbibmacro*{issue+date}{%
@@ -106,8 +121,13 @@
\renewbibmacro*{date+extrayear}{%
\begingroup%
\clearfield{month}%
- \iffieldundef{labelyear}
- {\printtext[parens]{\midsentence\bibstring{nodate}}}
+ \ifboolexpr{
+ test {\iffieldundef{date}}
+ and
+ test {\iffieldundef{year}}
+ }%
+ {\iftoggle{bbx:nodate}{\printtext[parens]{%
+ \midsentence\bibstring{nodate}}}{}}
{\printtext[parens]{\printdateextra}}%
\endgroup}%
\renewbibmacro*{author}{%