Importing from Freecite
Hello,
I am using Freecite (http://freecite.library.brown.edu/welcome) to parse references from PDFs. Freecite creates OpenURL results like this:
<ctx:context-objects xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='info:ofi/fmt:xml:xsd:ctx http://www.openurl.info/registry/docs/info:ofi/fmt:xml:xsd:ctx' xmlns:ctx='info:ofi/fmt:xml:xsd:ctx'><ctx:context-object timestamp='2009-12-31T05:37:48-05:00' encoding='info:ofi/enc:UTF-8' version='Z39.88-2004' identifier=''><ctx:referent><ctx:metadata-by-val><ctx:format>info:ofi/fmt:xml:xsd:journal</ctx:format><ctx:metadata><journal xmlns:rft='info:ofi/fmt:xml:xsd:journal' xsi:schemaLocation='info:ofi/fmt:xml:xsd:journal http://www.openurl.info/registry/docs/info:ofi/fmt:xml:xsd:journal'><rft:atitle>Acute Myocardial Infarction in the Medicare population: process of care and clinical outcomes</rft:atitle><rft:spage>2530</rft:spage><rft:date>1992</rft:date><rft:stitle>Journal of the American Medical Association</rft:stitle><rft:genre>article</rft:genre><rft:volume>18</rft:volume><rft:epage>2536</rft:epage><rft:au>I S Udvarhelyi</rft:au><rft:au>C A Gatsonis</rft:au><rft:au>A M Epstein</rft:au><rft:au>C L Pashos</rft:au><rft:au>J P Newhouse</rft:au><rft:au>B J McNeil</rft:au></journal></ctx:metadata></ctx:metadata-by-val></ctx:referent></ctx:context-object></ctx:context-objects>
I tried to import them into Zotero using the Import from Clipboard function, but couldn't get it work (Error message: No translator found). I went through the forum and found some entries that said that Zotero works with OpenURL, so I must be doing something wrong... Any ideas or is there an easier way altogether?
Thanks a lot,
Peter.
I am using Freecite (http://freecite.library.brown.edu/welcome) to parse references from PDFs. Freecite creates OpenURL results like this:
<ctx:context-objects xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='info:ofi/fmt:xml:xsd:ctx http://www.openurl.info/registry/docs/info:ofi/fmt:xml:xsd:ctx' xmlns:ctx='info:ofi/fmt:xml:xsd:ctx'><ctx:context-object timestamp='2009-12-31T05:37:48-05:00' encoding='info:ofi/enc:UTF-8' version='Z39.88-2004' identifier=''><ctx:referent><ctx:metadata-by-val><ctx:format>info:ofi/fmt:xml:xsd:journal</ctx:format><ctx:metadata><journal xmlns:rft='info:ofi/fmt:xml:xsd:journal' xsi:schemaLocation='info:ofi/fmt:xml:xsd:journal http://www.openurl.info/registry/docs/info:ofi/fmt:xml:xsd:journal'><rft:atitle>Acute Myocardial Infarction in the Medicare population: process of care and clinical outcomes</rft:atitle><rft:spage>2530</rft:spage><rft:date>1992</rft:date><rft:stitle>Journal of the American Medical Association</rft:stitle><rft:genre>article</rft:genre><rft:volume>18</rft:volume><rft:epage>2536</rft:epage><rft:au>I S Udvarhelyi</rft:au><rft:au>C A Gatsonis</rft:au><rft:au>A M Epstein</rft:au><rft:au>C L Pashos</rft:au><rft:au>J P Newhouse</rft:au><rft:au>B J McNeil</rft:au></journal></ctx:metadata></ctx:metadata-by-val></ctx:referent></ctx:context-object></ctx:context-objects>
I tried to import them into Zotero using the Import from Clipboard function, but couldn't get it work (Error message: No translator found). I went through the forum and found some entries that said that Zotero works with OpenURL, so I must be doing something wrong... Any ideas or is there an easier way altogether?
Thanks a lot,
Peter.
After looking at the project, I'm playing with the idea of writing a translator for that format. Since it's just OpenURL encapsulated a little differently, it should be quite easy, and the service is useful enough. I'll write a site translator, so it still wouldn't translate from the clipboard, but that's still a start.
Please post any problems you have.
Problem: Journal name (Psychological Review) was placed in the "Journal Abbr" field in Zotero rather than in the publication field.
Comment: imports just one reference at a time even if multiple citations are simultaneously parsed.
Joe
My solution to the Comment is imperfect; it doesn't prompt you to select which entries to import when you click on the folder icon, but it's a start. Download http://github.com/ajlyon/zotero-bits/raw/master/CTX.js and put it in the translators directory of your Zotero data directory and you should be able to download multiple citations.
I couldn't think of an elegant way to get it to prompt for saving, but this should tide you over.
That was fast!!! Yes, it imports multiple citations properly. Thanks again. Now the interesting part--the second citation has the journal title in the right place but the first doesn't. Weird. Here are the citations:
Aamodt, M. G., & Kimbrough, W. W. (1982). Effects of group heterogeneity on quality of task solutions. Psychological Review, 50, 171–174.
Abbey, D. S. (1982). Conflict in unstructured groups: An explanation from control-theory. Psychological Reports, 51, 177–178.
Put them into Freecite then import. I have a screenshot of Zotero but can't attach here. It's probably a parse issue with Freecite.
Joe
<rft:stitle>Psychological Review</rft:stitle>
The
stitle
means "short title". Nothing we can do here. Just make sure you mark it as imperfect parsing, so their algorithm can improve.Joe
There should be no limit on how many citations it will process.
Thanks again for your help and for writing the code.
Joe
Aamodt, M. G., & Kimbrough, W. W. (1982). Effects of group heterogeneity on quality of task solutions. Psychological Review, 50, 171-174.
Abbey, D. S. (1982). Conflict in unstructured groups: An explanation from control-theory. Psychological Reports, 51, 177-178.
Abele, A. E. (2003). The dynamics of masculine-agentic and feminine-communal traits: Findings from a prospective study. Journal of Personality and Social Psychology, 85, 768-776.
Abele, A., Gendolla, G. H. E., & Petzold, P. (1998). Positive mood and in-group—out-group differentiation in a minimal group setting. Personality and Social Psychology Bulletin, 24, 1343-1357.
Aberson, C. L., Healy, M., & Romero, V. (2000). Ingroup bias and self-esteem: A meta-analysis. Personality and Social Psychology Review, 4, 157-173.
Abougendia, M., Joyce, A. S., Piper, W. E., & Ogrodniczuk, J. S. (2004). Alliance as a mediator of expectancy effects in short-term group psychotherapy. Group Dynamics: Theory, Research, and Practice, 8, 3-12.
Abraham, A. (1973a). Group tensions as measured by configurations of different self and transself aspects. Group Process, 5, 71-89.
Abraham, A. (1973b). A model for exploring intra and interindividual processes in groups. International Journal of Group Psychotherapy, 23, 3-22.
Abraham, A. (1974-1975). Processes in groups. Bulletin de Psychogie, 28, 746-758.
Abraham, A., Geffroy, Y., & Ancelin-Schutzenberger, A. (1980). A method for analyzing group interaction: Development and application of a video observation grid. Connexions, 31, 145-166.
Abramo, J. L., Lundgren, D. C., & Bogart, D. H. (1978). Status threat and group dogmatism. Human Relations, 31, 745-752.
Abrams, D., Ando, K., & Hinckle, S. W. (1998). Psychological attachment to the group: Cross-cultural differences in organizational identification and subjective norms as predictors of workers’ turnover intentions. Personality and Social Psychology Bulletin, 24, 1027-1039.
Abrahms, D., & Brown, R. (1989). Self-consciousness and social identity: Self-regulation as a group member. Social Psychology Quarterly, 52, 311-318.
Abrams, D., Henson, M., Marques, J., & Bown, N. (2000). Pro-norm and anti-norm deviance within and between groups. Journal of Personality and Social Psychology, 78, 906-912.
Abrams, D., & Hogg, M. A. (1988). Comments on the motivational status of using self-esteem in social identity and intergroup discrimination. European Journal of Social Psychology, 18, 317-334.
Abrams, D., & Hogg, M. A. (1998). Prospects for research in group processes and intergroup relations. Group Processes and Intergroup Relations, 1, 7-20.
Abrams, D., Marques, J. M., Brown, N., & Dougill, M. (2002). Anti-norm and pro-norm deviance in the bank and on the campus: Two experiments on subjective group dynamics. Group Processes & Intergroup Relations, 5, 163-182.
I've patched the code to address this. Now it will skip such items, since Freecite doesn't provide structured data for them.
Re-download and reinstall the translator from the link above and it'll start working again.
The translator works very well, but could I trouble you for one more modification? Is it possible, in cases where the short title is populated but the publication name is not, to simply write a short title to the publication field? The bibliography that I need to parse and then import into Zotero consists entirely of journal articles and it seems as though FreeCite can't quite parse citations that seem perfectly formatted.
Joe
(the other one - not fixable by translator - is that it doesn't get years past 2000 as years - I sent them a quick note on that)
But please do mark the short titles as incorrect-- I'd like to see them improve their detection.
Joe
Joe
Second, when finishing the import FF generates multiple versions of the same message: "Some of the requests to Google Scholar failed. Probably due to the large number of requests." FF then seems to click the "OK" button until all messages go away, but on a number of occasions FF froze, requiring a restart. All newly imported citations, however, are in the database.
joe
I'll take a look at the first issue-- can you provide a few examples of broken citations to test on?
In the following 3 citations, the second one parses incorrectly. Put a carriage return anywhere in the other two and then see how it parses then translates into Zotero.
Isenberg, D. J., & Ennis, J. G. (1981). Perceiving group members: A comparison of derived and imposed dimensions. Journal of Personality and Social Psychology, 41, 293-305.
Islam, G., & Zyphur, M. J. (2005). Power, voice, and hierarchy: Exploring the antecedents of speaking up in groups. Group Dynamics: Theory, Research, and Practice, 9, 93-103.
Islam, M. R., & Hewstone, M. (1993a). Dimensions of contact as predictors of intergroup anxiety, perceived out-group variability, and out-group attitude: An integrative model. Personality and Social Psychology Bulletin, 19, 700-710.
Please continue to post errors that arise, but right now it looks like most errors are Freecite limitations, not Zotero errors.
Joe
-Stephan