Hi,
I'm a bit new to drupal, although I'm a long time php developer. I'm still learning this, but have a new client that has had me install this module on their current drupal site and they have a ton of academic papers that need to be imported. On testing a few out, everything seems to go nicely, but they have told me that the @incollection type should go to the default of conference paper and not book, due to the fact that the @inproceedings bibtex export type more closely matches that of @incollection and not book (as the client put it, "Writing a book is different from a paper that appears in a collection."). They would like to see 'incollection' end up one of the custom fields, which is something more of customization for them, and not something I'm asking for (I will develop this on my own and post the patch for anybody who wants it once I've figured this out) but on the whole I believe having @incollection default to conference paper rather than book would is a better solution. I don't mind developing this, in fact I'd be more than happy to do so, but since I'm still a bit new drupal, I'll need someone to help point me in the right direction.
Thanks,
--T
Comments
Comment #1
rjerome commentedHi Craig,
I would debate their definition of incollection and inproceedings (the definitions below can be found at http://en.wikipedia.org/wiki/BibTeX)
If however, you want to change this, it is really quite easy to do... Just go into the bibtexParse directory and edit the PARSEENTRIES.php file. In there you will find a function called bib2node() in there you will find a switch statement...
Just change the values to what ever you want, where the default values are as follows..
I was planning to have all the various file type mappings stored in the database (rather than hard coded as it is now) but I just have never gotten around to changing that yet...
Cheers,
Ron.
Comment #2
Tecktron commentedThanks Ron!
I do understand the debate based on the definitions, but I would also agree that the export of a book is much more sophisticated than that of an incollection. Well I guess I can see both sides of it and I'm sure one could argue all day about it. Well, that's great thing about being a developer, is that you don't have to think about things like that as you just do what client or yourself wants. ;)
Thanks again, this is just what I needed!
--Craig
Comment #3
rjerome commentedHi Craig,
I just realized I may have pointed you in the wrong direction. It's not entirely clear to me if you were looking for the import mapping or the export mapping. I thought you were talking about the import mapping (which is what I was referring to above, however if you were actually referring to EXPORT mapping, then that is done in the biblio.import.export.inc file in the "biblio_bibtex_export" function.
Please feel free to post any modifications you make back to this forum and if they are of a generally useful nature I'll happily include them in the code. I would hesitate to change these particular mappings unless there was a general consensus among the bibtex users since it would kind of mess up this installed base.
Cheers,
Ron.
Comment #4
liam morlandThis version is no longer maintained. If this issue is still relevant to the Drupal 7 version, please re-open and provide details.