I have a custom .bst which I made a few years ago that supports Harvard referencing.
It's pretty much perfect, except for one thing.
I use Mendeley to create by .bib file, and for online sources this automatically captures the 'Accessed on' date. I have tinkered with the .bst file to get it to output this date correctly and it's nearly working, but I can't get the format correct without breaking the .bst format.
I am aiming for a reference like this:
The Economist (2011). Rolls-Royce: Per ardua | The Economist. URL
http://www.economist.com/node/18073351. [Online] (Accessed: 2014-
12-18).
Here is the section in my .bst file that outputs the date:
Code: Select all
FUNCTION {format.urldate}
{
urldate
duplicate$ empty$
{ pop$ "" }
{ " [Online] (Accessed: " * urldate * ")" * }
if$
}
The Economist (2011). Rolls-Royce: Per ardua | The Economist. URL
http://www.economist.com/node/18073351. 2014-12-18 [Online] (Accessed: 2014-12-18).
If I remove the first urldate from the .bst format.urldate function, I just get loads of errors. Not managed to find a decent reference for the .bst syntax language anywhere so going round in circles a bit and dissertation deadline is approaching.
How can I output just one date in the format required?
Thanks a lot,
Ben