In my opinion, in this particular case it would not be too confusing (or wrong) to add the date field (this also applies to the third solution below).
@UNPUBLISHED{Kultus,
author = {{Akten des preußischen Ministeriums der Geistlichen-, Unterrichts- und Medicinal-Angelegenheiten}},
address = {Geheimes Staatsarchiv Preußischer Kulturbesitz, Berlin: I. HA Rep. 76},
date = {1807/1935},
shorthand = {Kultus},
}
If you want to stick with @unpublished
, you can simply modify a few macros provided by biblatex
to drop the date label, if the entry type is @unpublished
and no proper date field is defined.
Add this to your preamble.
\renewbibmacro*{date+extrayear}{%
\ifboolexpr{
test {\iffieldundef{labelyear}}
or
(test {\ifentrytype{unpublished}}
and
(test {\iffieldundef{year}} and test {\iffieldundef{origyear}}))
}
{}
{\printtext[parens]{\printdateextralabel}}}
\newbibmacro*{cite:labelyear+extrayear}{%
\ifboolexpr{
test {\iffieldundef{labelyear}}
or
(test {\ifentrytype{unpublished}}
and
(test {\iffieldundef{year}} and test {\iffieldundef{origyear}}))
}
{}
{\printtext[bibhyperref]{%
\printfield{labelyear}%
\printfield{extrayear}}}}
NB Note that modifying authoryear
's date macros is quite a delicate matter, as it very much depends on your mergedate
setting which macro is to be modified in what way.
The modifications above work rather well with margedate=true
(= mergedate=compact
), which is the standard setting.
For other mergedate
settings remember the field to be suppressed is labelyear
(and extrayear
); it should be sufficient to replace \iffieldundef{labelyear}
by our extended conditional above in most cases.
It might also be a good idea to define a new entrytype @archivedocs
.
In that case you will not have to abuse the author
field.
This type supports author
, title
and all of the other standard @unpublished
fields; it certainly also supports date
and year
.
But it adds archive
and sign
; the location
field now refers to the archive
.
We need to let biber and biblatex
know about the new fields via authoryear.dbx
.
Then, of course, we need to define a new driver for @archivedocs
.
For the archive and sign, we have a new macro, {archive+location+sign}
.
To address the date issue, we modify the date macros as above (same caveats apply).
The MWE
\documentclass[ngerman]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{csquotes}
\usepackage{babel}
\usepackage{filecontents}
\usepackage[style=authoryear]{biblatex}
\begin{filecontents*}{\jobname.bib}
@archivedocs{Kultus,
title = {Akten des preußischen Ministeriums der Geistlichen-, Unterrichts- und Medicinal-Angelegenheiten},
location = {Berlin},
sign = {I. HA Rep. 76},
archive = {Geheimes Staatsarchiv Preußischer Kulturbesitz},
shorthand = {Kultus},
%date = {1807/1935},
}
\end{filecontents*}
\bibliography{\jobname}
\begin{filecontents*}{authoryear.dbx}
\ProvidesFile{authoryear.dbx}
\DeclareDatamodelFields[type=field,datatype=literal]{archive}
\DeclareDatamodelFields[type=field,datatype=literal]{sign}
\DeclareDatamodelEntryfields[archivedocs]{archive,sign}
\DeclareDatamodelConstraints[archivedocs]{
\constraint[type=mandatory]{
\constraintfield{title}
\constraintfield{archive}
}
}
\end{filecontents*}
\DeclareFieldFormat[archivedocs]{citetitle}{#1}
\DeclareFieldFormat[archivedocs]{title}{#1}
\newbibmacro*{archive+location+sign}{%
\printfield{archive}%
\setunit*{\addcomma\space}%
\printlist{location}%
\setunit{\addcolon\space}%
\printfield{sign}%
\newunit}
\DeclareBibliographyDriver{archivedocs}{%
\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{archive+location+sign}%
\newunit\newblock
\iftoggle{bbx:url}
{\usebibmacro{url+urldate}}
{}%
\newunit\newblock
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
\newunit\newblock
\iftoggle{bbx:related}
{\usebibmacro{related:init}%
\usebibmacro{related}}
{}%
\usebibmacro{finentry}}
\renewbibmacro*{date+extrayear}{%
\ifboolexpr{
test {\iffieldundef{labelyear}}
or
(test {\ifentrytype{archivedocs}}
and
(test {\iffieldundef{year}} and test {\iffieldundef{origyear}}))
}
{}
{\printtext[parens]{\printdateextralabel}}}
\newbibmacro*{cite:labelyear+extrayear}{%
\ifboolexpr{
test {\iffieldundef{labelyear}}
or
(test {\ifentrytype{archivedocs}}
and
(test {\iffieldundef{year}} and test {\iffieldundef{origyear}}))
}
{}
{\printtext[bibhyperref]{%
\printfield{labelyear}%
\printfield{extrayear}}}}
\begin{document}
blabla\footnote{said Prussia's Minister of Education in 1812 \parencite[Nr. 123, sheet 456]{Kultus}}
\nocite{*}
\printbibliography
\end{document}
As others have remarked, biber
cannot find your .bib
file because you didn't tell it its full name, namely DissCh2-Bibliography.bib
. Giving the full name and getting rid of the \bibliographystyle
and \bibliography
commands should get you up and running again.
... However, a few remarks are in order given that you are just getting your dissertation up and running (too long for a comment). Trust me, it is better to make the change(s) now rather than part-way through or right before the end.
First, although it may be tempting to typeset an individual thesis chapter in the documentclass article
, this is not really recommended. Eventually, you will have a whole thesis composed of several chapters (and perhaps appendices and other things), and the article
class is completely unsuitable for it. You should switch your workflow ASAP to either the report
or book
class, or (my recommendation) one of the more feature-rich classes like memoir
or the KOMA-script classes (scrreprt
or scrbook
), or perhaps classicthesis
. These feature-rich classes give you a lot of functionality 'out of the box'.
Let's pretend, however, that you are using the simple report
class (nothing wrong with it, after all: it just means you'll need to load more packages to do the tweaking you want/need/desire).
\documentclass[letterpaper,12pt]{report}
% \usepackage{fullpage} % <-- probably not needed; use geometry
\usepackage{fancyhdr}
% \usepackage{nameref} % <-- just load hyperref instead (see below)
\usepackage{marginnote}
\usepackage[top=1in, bottom=1in, inner=0.25in, outer=2.75in, marginparwidth=2.50in]{geometry}
\usepackage{setspace}
So far so good. I'd recommend loading fontenc
and inputenc
is you plan on using pdflatex
to compile your documents (or fontspec
if using xelatex
or lualatex
):
\usepackage[T1]{fontenc} % strongly recommended
\usepackage[utf8]{inputenc} % if the in the humanities, you probably will need more than just ASCII
Now the real issue, biblatex
; I strongly recommend you load babel
and csquotes
for quotations and multi-lingual support. For now, we'll keep it simple (only English):
\usepackage[american]{babel} % or option 'british'
\usepackage{csquotes} % many options skipped for now
\usepackage[
notes,
backend=biber,
hyperref=true % <-- note how you are asking for hyperref integration
]{biblatex-chicago}
\addbibresource{DissCh2-Bibliography.bib} % biber can do more than just `.bib` files, so you need to specify the extension.
Normally, you should load hyperref
as the last package (or nearly last: see this question. We'll keep it simple again:
\usepackage{xcolor} % <-- for coloured links
\usepackage[colorlinks, allcolors=blue, breaklinks]{hyperref} % <-- many more options...
And that should be enough to get you started. Putting it all together, you could do the following:
\documentclass[letterpaper,12pt]{report}
% the following filecontents is just
% for the sake of getting a self-contained example file
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Article{aaa,
author = {Smith, John},
title = {Article Title},
journal = {Journal Title},
date = 2000,
volume = 30,
number = 2,
pages = {100--120},
}
\end{filecontents}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\usepackage{marginnote}
\usepackage[top=1in, bottom=1in, inner=0.25in, outer=2.75in, marginparwidth=2.50in]{geometry}
\usepackage{setspace}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[
notes,
backend=biber,
hyperref=true
]{biblatex-chicago}
% \addbibresource{DissCh2-Bibliography.bib}
\addbibresource{\jobname.bib} % <-- 'name' of bibliography above
\usepackage{xcolor}
\usepackage[colorlinks, allcolors=blue, breaklinks]{hyperref}
\begin{document}
\chapter{DissCh2}
A citation.\autocite{aaa}
\printbibliography
\end{document}
Now, the reason this structure makes sense is because it will allow you to break up your chapters and then include them in this master file via \include{DissCh2}
(say). This will make editing your chapters a little easier since things are more compartmentalized:
% greatly simplified masterfile
\documentclass{report}
... preamble stuff goes here
\begin{document}
\include{abstract}
\include{acknowledgements}
\tableofcontents
... other front matter
\include{chapter01}
\include{DissCh2}
... back matter stuff
\printbibliography
\end{document}
Best Answer
This is a job for
usebib
. You can define a new bib fieldcopyright
and then you can print the field's content withFull example (picture like in moewe's answer).
In your document, use the name of the right
.bib
file instead of\jobname
.