diff --git a/templates/bibitem.html b/templates/bibitem.html
index 63f8176..4a3d9ee 100644
--- a/templates/bibitem.html
+++ b/templates/bibitem.html
@@ -23,7 +23,15 @@
In $booktitle$.
$endif$
$if(journal)$
- $journal$, $volume$($number$).
+ $if(volume)$
+ $if(number)$
+ $journal$, $volume$($number$).
+ $else$
+ $journal$, $volume$.
+ $endif$
+ $else$
+ $journal$.
+ $endif$
$endif$
$if(school)$
$school$.