Page 1 of 2
Bookends and CiteULike - BibTex problems?
Posted: Mon Oct 31, 2005 5:08 pm
by chriggi
Recently, I have been working with CiteULike a lot (
http://www.citeulike.org). It's a nice way to bookmark papers. And it would be great if it teamed well with Bookends.
Any one already working with the combination?
CiteULike has very simple and speedy export funtions to Endnote (text-file) and to BibTex. Strangely, when I import the .bib-File to Bookends I the fields seem to overlay. I get an author like "Mcquire, S. },citeulike-article-id = {70632"
In the .bib-File this entry is:
Code: Select all
@article{citeulike:70632,
author = {Mcquire, S. },
citeulike-article-id = {70632},
issn = {1329-878X},
journal = {Media International Australia incorporating Culture and Policy},
keywords = {_bestellen _tosente cinema digital distribution movie},
number = {110},
pages = {105+},
priority = {2},
publisher = {School of English, Media Studies and Art History and the Centre for Critical and Cultural Studies, University of Queensland},
title = {Slow train coming? The transition to digital distribution and exhibition in cinema},
url = {http://www.ingentaconnect.com/content/griff/mia/2004/00002004/00000110/art00012},
volume = {2004}
}
Any ideas what's wrong`How to fix that?
Posted: Mon Oct 31, 2005 5:10 pm
by Jon
The file you list isn't BibTeX. It looks like RIS...
Jon
Sonny Software
Posted: Mon Oct 31, 2005 5:11 pm
by chriggi
Wow - your fast

Yes, I'd pasted the wrong one. It's corrected now.
Posted: Mon Oct 31, 2005 5:19 pm
by Jon
Just happened to be in the neighborhood...
The problem is that you have tags here that Bookends doesn't know about (nonstandard BibTeX), such as
citeulike-article-id
The fix is to edit the BibTeX import filter (make a NEW one based on the one we supply) to account for the new tags. Then it should work.
Jon
Sonny Software
Posted: Mon Oct 31, 2005 6:28 pm
by chriggi
Thanks, works well. I'm impressed - with the support and the Import Filters Manager...

Posted: Tue Nov 01, 2005 10:33 am
by nicka
CiteULike is cool. Thanks for tipping us off, chriggi.
I have made an import filter for CiteULike BibTeX -- easier than I thought it would be -- kudos to Jon. And it works almost fine now I've told it to ignore the non-standard tags.
There's just one thing: I get the issue number before the volume number in the volume field, like this '(1) 87'. Does it matter? Is there any way to fix the filter to put them the right way round?
Posted: Tue Nov 01, 2005 11:34 am
by Jon
nicka wrote:There's just one thing: I get the issue number before the volume number in the volume field, like this '(1) 87'. Does it matter? Is there any way to fix the filter to put them the right way round?
Bookends expects the first item in the Volume field to be the volume, and a subsequent entry to be the issue.
You can fix this by
1. Ignore the issue # (of course, you may not want to).
2. Put the Issue # in a user-defined field instead of the Volume field.
3. If you can, write a Perl script (or similar) to reorder the issue and volume output in the BibTeX file (beyond my knowledge).
Jon
Sonny Software
Posted: Thu Nov 03, 2005 6:15 am
by chriggi
There is now only one workflow issue left: I collect references with CiteULike and import them from time to time to Bookends. Now, if I import them all and end up with tons of duplicates.
My workaround is to tag (give a keyword) references with a temporary identifiere (like numbers _4) for the next import. Not very nice, though.
Isn't there a way for Bookends to identify duplicates and ignore or remove them?
Posted: Thu Nov 03, 2005 9:54 am
by Jon
Hi,
Of course.
Refs -> Remove Duplicates
Jon
Sonny Software
Posted: Thu Nov 03, 2005 11:15 am
by chriggi
Sorry. That was too easy.
One last: During the export-import process special characters like the german umlaute (Ä, Ö, Ü) get messed up (e.g. "Ökonomie" becomes "?ñkonomie").
Any ideas how to fix that?
Posted: Thu Nov 03, 2005 12:29 pm
by Jon
Importing from a text file? You probably need to change the text encoding the Bookends expects (see File -> Import Text Encoding). If it's coming from a web source, it's probably either ISO Latin1 or UTF-8.
Jon
Sonny Software
Posted: Thu Nov 03, 2005 12:50 pm
by chriggi
Jon wrote:Importing from a text file?
well, the .bib-File mentioned above. UTF 8 did the job. Great support. Thanks a lot!
Posted: Thu Nov 03, 2005 3:35 pm
by nicka
chriggi wrote:
There is now only one workflow issue left: I collect references with CiteULike and import them from time to time to Bookends. Now, if I import them all and end up with tons of duplicates.
My workaround is to tag (give a keyword) references with a temporary identifier (like numbers _4) for the next import. Not very nice, though.
Funny. I had exactly the same problem and thought of this solution too. It's nice that it is so easy to remove duplicates in Bookends, but I think a better solution would be at the CiteULike end, if it were possible to show -- and therefore export -- only the references gathered in the last x days in CiteULike. I'll email the guy who runs it and ask if he has thought of doing that.
Jon wrote:
Bookends expects the first item in the Volume field to be the volume, and a subsequent entry to be the issue.
You can fix this by
1. Ignore the issue # (of course, you may not want to).
2. Put the Issue # in a user-defined field instead of the Volume field.
3. If you can, write a Perl script (or similar) to reorder the issue and volume output in the BibTeX file (beyond my knowledge).
Thanks for the very quick response, Jon. Neither (1) nor (2) much appeals -- (1) could get my PhD thesis rejected, and (2) would require reformatting all my existing article references.
I don't know any Perl, so unless someone reading this does and is kind enough to post a script, that's out.
For the moment, then, I'm on option (4): tidy up imported references by hand.
I've discovered since my last post that some tidying is also required for the date field if CiteULike has stored a month and a year, because it formats them as eg 'May 1999' soetimes, at least, not in proper Bookends style as yyyy-mm-dd. I don't see any way round this.
Isn't the problem with issue before volume a general one for BibTeX imports, though, since the fields in a BibTeX reference don't seem to have to come in any particular order? If so, it would be very nice to have a fix in Bookends. (I guess this is a feature request.)
Posted: Thu Nov 03, 2005 3:38 pm
by Jon
Yes, I suppose there could be a special BibTeX exception where the volume and issue are put in the proper place, regardless of their ordering in the record. I'll look into that.
Jon
Sonny Software
Posted: Thu Nov 03, 2005 4:11 pm
by Jon
Hm, the code actually used to check for that, but I removed it because of some conflicts it caused. I've added some new safeguards, though, and restored the function. So the volume(issue) will be imported correctly regardless of their order in the record being imported. This will appear in 8.1.3.
Jon
Sonny Software