inukshuk/bibtex-ruby — Issue #33: bibtex-rb does not like crossref
Author: houshuang
Created: 2011-11-25 03:58:10+00:00
State: open

The following line in my Ruby script
if item.respond_to? :keywords
where item comes from these two lines

b = BibTeX.open(Bibliography)
b.each do |item|

works for every single BibTex entry, except for one which uses Crossref to reference another publication. I tested this by removing the Crossref, and then it worked perfectly.

The "offending" entry is below:

@incollection{collins2006cognitive,
Author = {Collins, Allan},
Booktitle = {The Cambridge handbook of the learning sciences},
Crossref = {none2006cambridge},
Date-Added = {2011-07-25 15:13:38 +0000},
Date-Modified = {2011-11-25 03:54:53 +0000},
Read = {1},
Title = {Cognitive Apprenticeship},
Bdsk-File-1 = {YnBsaXN0MDDUAQIDBAUIJidUJHRvcFgkb2JqZWN0c1gkdmVyc2lvblkkYXJjaGl2ZXLRBgdUcm9vdIABqAkKFRYXGyIjVSRudWxs0wsMDQ4RFFpOUy5vYmplY3RzV05TLmtleXNWJGNsYXNzog8QgASABqISE4ACgAOAB1lhbGlhc0RhdGFccmVsYXRpdmVQYXRo0hgNGRpXTlMuZGF0YU8RAZAAAAAAAZAAAgAAB1NTREhvbWUAAAAAAAAAAAAAAAAAAAAAAAAAAMl5T9hIKwAAANrWUhhjb2xsaW5zMjAwNmNvZ25pdGl2ZS5wZGYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2sw2ylMAm1BERiAAAAAAAAIAAgAACSAAAAAAAAAAAAAAAAAAAAAHQmliZGVzawAAEAAIAADJeZYoAAAAEQAIAADKUzjbAAAAAQAMANrWUgAXPTEAAZ9eAAIAN1NTREhvbWU6VXNlcnM6AFN0aWFuOgBCaWJkZXNrOgBjb2xsaW5zMjAwNmNvZ25pdGl2ZS5wZGYAAA4AMgAYAGMAbwBsAGwAaQBuAHMAMgAwADAANgBjAG8AZwBuAGkAdABpAHYAZQAuAHAAZABmAA8AEAAHAFMAUwBEAEgAbwBtAGUAEgAsVXNlcnMvU3RpYW4vQmliZGVzay9jb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