I have altered the formatting of the @online entry for BibLaTeX.
The online entry is displaying how I would like, but it's causing the formatting of the @book entries to go wrong.
I would like for the @book entries to be formatted as
Surname, B. (2005) Book title in italics followed by full stop.
Place of publication: Name of the publisher
Where the name format here is Surname, Initials. So Jeff Buckley would
be expressed as Buckley, J. and so on.
I'm not sure why [online] url is forced onto the end of the book references, or how to remove this without messing with the formatting created for the online entries.
Following is a MWE.
Here's the main.tex file
\documentclass{book}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PACKAGES
\usepackage[style=authoryear]{biblatex}
\usepackage[T1]{fontenc} % font encoding, copied
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% BIBLIOGRAPHY INFORMATION
% \addbibresource{main.bib}
\addbibresource{refs.bib}
\NewBibliographyString{onlinesource}
\DefineBibliographyStrings{english}{%
urlseen = {accessed on},
urlfrom = {available from},
onlinesource = {online},
}
\DeclareFieldFormat{urldate}{%
\mkbibbrackets{%
\thefield{urlday}\adddot\addspace%
\mkbibmonth{\thefield{urlmonth}}\adddot\addspace%
\thefield{urlyear}\isdot}}
% This puts the <> braces about the url field
\DeclareFieldFormat{url}{\space\bibsentence\bibstring{urlfrom}\addcolon\space<\url{#1}>}
\newbibmacro*{url+urldate}{%
\printtext{\bibstring[\mkbibbrackets]{onlinesource}}%
\setunit{\addspace}%
\iffieldundef{urlyear}
{}
\usebibmacro{url}%
{\setunit*{\addspace}%
\usebibmacro{urldate}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% BEGIN DOCUMENT
\begin{document}
This citation is working correctly \autocite{ford}
But others don't seem to work as a result of the adjustments for web
\autocite{Chomsky1957}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% BIBLIOGRAPHY INCLUDE
\printbibliography
\end{document}
Here's the refs.bib file
@book{Chomsky1957,
Address = {The Hague},
Author = {A Book},
Publisher = {Mouton},
Title = {Book Book Book},
Year = {1957}
}
@online{ford,
author = {Fordy, Rebecca},
title = {Earthquake: Twitter Users Learned},
date = {2011-08},
url = {http://www.hollywoodreporter.com/news/earthquake-twitter-users-learned-tremors-226481},
urldate = {2012-05-16}
}
How the formatting currently looks :

![Book, A (1957). Book Book Book. The Hague: Mouton.//Fordy, Rebecca (Aug. 2011). Earthquake: Twitter Users Learned. [Online] Available from: <http://www.hollywoodreporter.com/news/earthquake-twitter-users-learned-tremors-226481> [16th May 2012].](../../images/26ede1023cd4c1682a5444e4529f8dc2.webp)
babel? – moewe Sep 26 '18 at 06:49babelin this example. – baxx Sep 26 '18 at 12:53babelin the example. But I'd like to know if you are going to use it in your actual document. Because things might be easier for the URL date in that case. – moewe Sep 26 '18 at 12:55babelif it makes anything easier here. – baxx Sep 26 '18 at 13:01