Skip to content

Commit

Permalink
Multivolume collection titles support. Addressing #45.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLuptak committed May 2, 2016
1 parent 1b6fc84 commit 0bc4add
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions iso.bbx
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,29 @@
\printfield{#1subtitle}}%
\setunit{\addspace}}%
\printfield{#1titleaddon}%
\newunit%
}%

\newbibmacro{volume}{%
\iffieldundef{volume}
{}
{\printfield{volume}%
\printfield{part}%
\setunit{\addcomma\addspace}}%
}

\newbibmacro{multi:titles}{%
\iffieldundef{maintitle}
{\iffieldundef{booktitle}
{\usebibmacro{titles}{}{emph}}
{\usebibmacro{titles}{book}{emph}%
\usebibmacro{volume}%
\usebibmacro{titles}{}{}}}%
{\usebibmacro{titles}{main}{emph}%
\usebibmacro{volume}%
\usebibmacro{titles}{}{}}%
}

\newbibmacro{host:titles}{%
\iffieldundef{maintitle}
{\iffieldundef{booktitle}
Expand Down Expand Up @@ -425,7 +446,7 @@
\usebibmacro{begentry}%
\usebibmacro{names:primary}%
\setunit{\labelnamepunct}\newblock%%
\usebibmacro{titles}{}{emph}%
\usebibmacro{multi:titles}%
\setunit{\addspace}%
\usebibmacro{medium-type}%
\newunit\newblock%
Expand Down Expand Up @@ -604,7 +625,7 @@
\usebibmacro{begentry}%
\usebibmacro{names:primary}%
\setunit{\labelnamepunct}\newblock%
\usebibmacro{titles}{}{emph}%
\usebibmacro{multi:titles}%
\setunit{\addspace}%
\usebibmacro{medium-type}%
\newunit\newblock%
Expand Down

0 comments on commit 0bc4add

Please sign in to comment.