Adding URLs to bib entries

Mar 10, 2010 at 3:44 PM

Is it possible to customize things so that a URL that we provide is displayed in the bib entry? Right now, we are kludging this by inserting the URL into other fields (such as page or some other field), but that is not optimal.

Also, is there a way to force a style to show a particular field? It only seems to show required fields in the bibliography. If I input data into a field, how can I be sure that it'll be displayed in the bibliography?

Coordinator
Mar 10, 2010 at 9:22 PM
Is it possible to customize things so that a URL that we provide is displayed in the bib entry? Right now, we are kludging this by inserting the URL into other fields (such as page or some other field), but that is not optimal.

The open xml bibliographic format is a flat format. That means that each type of source can actually contain all the available fields, even if those fields make no sense. For example, you could add the station on which the journal article first aired.

One of the good things about the bibliography tools in Word 2007 is that they are like elephants, they remember everything. For example, you could start from a Web Site and add a URL field. If you would then change the type to something like Journal Article and add other fields like Journal Name, Word remembers that you added a URL. Of course, that is not really practical for editing. You can make extra fields available for any source type in the input dialog by editing bibform.xml. For an explaination see here.

Also, is there a way to force a style to show a particular field? It only seems to show required fields in the bibliography. If I input data into a field, how can I be sure that it'll be displayed in the bibliography?

A style is what it is, nothing more and nothing less. If you don't agree with the output of a certain style, you will have to create your own style. You could start from a style close to what you want to speed things up rather than writing your own style from scratch. Everything is written in xslt and available for everyone to edit (yes, even the styles that come with Word). Of course, depending on how the original style was created, editing it might be a rather difficult task.

Mar 11, 2010 at 12:29 PM

yves, thank you for the thorough explanation and for pointing me to the online explanation.

I read your instructions and used them to add several fields to my copy of BIBFORM.XML. I'm thrilled--it was easy. I'm looking into how our IT department can distribute updates to our baselined files for everyone at our organization.

Many, many thanks for helping us!

 

Mar 11, 2010 at 12:51 PM

I'm sorry--I neglected to ask one important question.

I used the above instructions to add URL to all of my source types, but now I'm wondering what I need to do to make them actually appear in the bib.

Can you point me to the instructions for how to customize the output so that the new fields are included in the formatted bib?

Thanks (again).

Coordinator
Mar 11, 2010 at 5:26 PM

There is no default instruction set for adjusting a style to process different fields. Everything depends on how the original stylesheet containing the formatting information was created.

If it's a BibWord style, its just a matter of looking for the format strings in the data variable and add the variables you want. For more information on format strings, see the documentation.

If it's one of the styles that came with Word, then you will have to delve into the +3000 lines of code to find out where what is happening. It's slightly different for every style, but the general lines are the same.