inukshuk / bibtex-ruby

A BibTeX library, parser, and converter for Ruby.
http://inukshuk.github.com/bibtex-ruby
GNU General Public License v3.0
156 stars 31 forks source link

Use genre field for different kinds of theses #61

Closed plessl closed 11 years ago

plessl commented 11 years ago

This is a follow up to #60.

CSL has only a generic thesis type, making it impossible to differentiate between different kinds of these, e.g., Master's, Bachelor's, Diploma, Magister, Habilitation ...).

After reading the most recent CSL specification version 1.0.1 that explains the use of standad variables in more detail (http://citationstyles.org/downloads/specification.html#appendix-iv-variables) I believe that this is the purpose of the genre variable.

Thus I would recommend to populate it with "Master's thesis" for @mastersthesis records, "PhD thesis" for @phdthesis records by default. If the BibTeX explicitly specifies a type property, I suggest to populate genre with the contents of the BibTeX type field.

What do you think? Shall I try to provide a patch?

inukshuk commented 11 years ago

That sounds great!

To start, take a look at the Bibliography#to_citeproc – it should be fairly straightforward to add the functionality there. Let me know if you need help.