Seite 1 von 1

Treiber für Entry-Type umschreiben

Verfasst: Mo 31. Mär 2014, 00:04
von DO5SMB
Hallo miteinander,

ich stehe vor demselben Problem wie Nicholas in diesem Threadhttp://www.golatex.de/problem-mit-kurzt ... 11463.html

Sprich, ich arbeite mit Archivquellen und habe mir dazu einen eigenen Archivalien-Typ anlegen müssen. Im Literaturverzeichnis sollen die einzelnen Archivalien nun sortiert auftauchen und beim Zitieren soll jeweils ein Vollzitat ausgespuckt werden - unter Berücksichtigung der "Ebd." Funktion, falls davor diesselbe Quelle b zitiert wurde.

Soweit so gut

Nicholas Lösung http://tex.stackexchange.com/questions/ ... iblatex-d/

sieht für mich als Ausgangsmaterial schon einmal sehr vielversprechend aus.

Allerdings soll bei mir die Literaturangabe, sowohl im Verzeichnis als auch in der Fussnote nur so aussehen:

Archiv, Rubrik, Unterrubrik, Box

Also beispielsweise im Text:

-------------------
^23 Eintrag vom 20.11.1605, StaS Ho1,T7, 85.
^24 Eintrag vom 06.06.1556, StaS Ho1,T7, 85.

und im Verzeichnis dann nur

Archivalische Quellen

Staatsarchiv SXY

StaS Ho1,T7, 85.
StaS Ho1,T7, 85.
etc.

Ich benötige also keine Namen bzw. Title für die Quellen. Den gibt es nämlich nicht. Nur die Signatur. Kann mir da jemand helfen?

Nicholas Lösung habe ich als Minimalbesipiel mal angeführt.
\documentclass{article}
\usepackage[ngerman]{babel}

\usepackage{xpatch}

\usepackage[
    style=authortitle-dw,
    firstfull=true
]{biblatex}

\DefineBibliographyStrings{ngerman}{
  chapter = {Bd.}
}

\renewbibmacro*{cite}{%
  \usebibmacro{cite:citepages}%
  \global\boolfalse{cbx:loccit}%
  \ifentrytype{unpublished}%
     {\ifthenelse{\ifciteibid\and\not\iffirstonpage}%
        {\usebibmacro{cite:ibid}}{\usebibmacro{cite:firstfull}}}%
     {\ifbool{cbx:firstfull}%
        {\ifciteseen%
          {\usebibmacro{cite:normal}}
          {\usebibmacro{cite:firstfull}}}
        {\usebibmacro{cite:normal}}}%
  \usebibmacro{savestuff}%  
}

\newbibmacro{savestuff}{%
  \savelist{institution}{\lastinstitution}%
  \savelist{location}{\lastlocation}%
  \savefield{chapter}{\lastchapter}}

\xapptobibmacro{finentry}{\usebibmacro{savestuff}}{}{}

\DeclareBibliographyDriver{unpublished}{%
  \iffirstonpage{\def\lastinstitution{}%
    \def\lastlocation{}%
    \def\lastchapter{}}{}%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{title}%
  \newunit
  \usebibmacro{in:}%
  \iflistequals{institution}{\lastinstitution}%
    {\bibstring{ibidem}%
     \newunit\newblock%
     \iflistequals{location}{\lastlocation}%
       {\iffieldequals{chapter}{\lastchapter}%
         {}{\printfield{chapter}}}%
       {\printlist{location}\newunit\newblock%
        \iffieldequals{chapter}{\lastchapter}%
          {\bibstring{ibidem}}%
          {\printfield{chapter}}}%
    }%
    {\printlist{institution}\newunit\newblock%
     \iflistequals{location}{\lastlocation}%
       {\bibstring{ibidem}\newunit\newblock%
         \iffieldequals{chapter}{\lastchapter}%
           {}{\printfield{chapter}}}%
       {\printlist{location}\newunit\newblock%
        \iffieldequals{chapter}{\lastchapter}%
          {\bibstring{ibidem}}%
          {\printfield{chapter}}}%
    }%
  \newunit\newblock%
  \setunit{\bibpagerefpunct}\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}

@unpublished {test1,
    title = {Source1},
    institution = {Archive1},
    location = {Shelf1},
    chapter = {Box1}
}

@unpublished {test2,
    title = {Source2},
    institution = {Archive1},
    location = {Shelf1},
    chapter = {Box2}
}

@unpublished {test3,
    title = {Source3},
    institution = {Archive1},
    location = {Shelf1},
    chapter = {Box2}
}

@article{test4,
  title={something},
  author={someone}
}

\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

\footcite{test1}
\footcite{test1}
\footcite{test4}
\footcite{test1}
\footcite{test2}
\footcite{test3}
\footcite{test1}
\footcite{test4}
\clearpage
\footcite{test1}

\printbibliography

\end{document}

[/code]

Verfasst: Sa 5. Apr 2014, 16:26
von DO5SMB