References stuck in code
Hello,
When I try switch from American Sociological Association citations to APA (or other citations) in chrome my document updates but the references are stuck in code, like this:
I've tried refreshing and redoing but can't get it to work. What can I do? Any tips?
When I try switch from American Sociological Association citations to APA (or other citations) in chrome my document updates but the references are stuck in code, like this:
<div class="csl-bib-body">
<div class="csl-entry">Berger, P. L. (1990). <i>The sacred canopy: Elements of a sociological theory of religion</i>. New York, NY: Books.</div>
I've tried refreshing and redoing but can't get it to work. What can I do? Any tips?
Can you provide a Debug ID from Zotero for an insert that results in this?
[JavaScript Error: "TypeError: Cannot read property '9' of undefined
at Object.injectScripts (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/background.js:330:45)
at chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/background.js:269:36"]
[JavaScript Error: "Error: URL changed for tab https://outlook.office.com/mail/search?state=0
at _updateInfoForTab (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/background.js:587:49)
at onNavigation (chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/background.js:895:4)
at chrome-extension://ekhagklcjbdpajgpjgmbionohlpdbjgc/background.js:929:87"]
The Debug ID is D516266598
Just to be clear, you're saying that you reliably see HTML or not when you switch back and forth between citation styles?
Can you reproduce this in a new document?
Yes, I will do that. Thank you so, so much. Your help is amazing. I am glad I finally reached out for help (it kept happening on papers and I finally couldn't just do all the fixes by hand anymore!).
Are you able to provide steps to reproduce this in a new document? (E.g., create a new item in Zotero with x in it, insert it, change styles…)
When I switch from the American Sociological Association to the American Psychological Association reference style, my references would not process from raw HTML.
When searching through the citations, I noticed that several book citations that I had downloaded through Zotero Connect from my university library included { in them.
For example the downloaded citation URL was:
{"http://www.loc.gov/catdir/description/cam051/2004018645.html":["Publisher description"],"http://www.loc.gov/catdir/toc/ecip0421/2004018645.html":["Table of contents"]}
Because APA citations include the full URL, when these URLs were inserted into the raw HTML, the code would not work. For example:
There is no error message.
When I removed the extra material around the URL in Zotero, the raw HTML processed.
I am not sure if it is possible to reproduce without downloading the citation from my university library, BUT you could try to download the citation and adding in {"http://www.loc.gov/catdir/description/cam051/2004018645.html":["Publisher description"],"http://www.loc.gov/catdir/toc/ecip0421/2004018645.html":["Table of contents"]} in the URL field.
APA citations and others that include URL will not process when this occurs.
If you change to, http://www.loc.gov/catdir/description/cam051/2004018645.html, the HTML will process perfectly.
Let me know if that helps.
Zotero still shouldn't break here, but it is a fairly unexpected thing to find in the data.