marnenlk
About
- Username
- marnenlk
- Joined
- Roles
- Member
Comments
-
(Apologies if my XPath syntax is wrong. Hopefully my intent is clear, but I always need a reference in front of me to write XPath. :) )
-
So how about using the displayed call number if we can find it through //[@class='fieldLabelSpan'][text()='Call Number: ']/[@class='subfieldData']/text(), and falling back to MARC if we can't?
-
The markup contains fieldLabelSpan and subfieldData classes for precisely this purpose, or so it seems. Are those not always present?
-
Right, I thought I saw that it was doing that, but is that desired behavior, and if so, why? That is, why does it bother with MARC rather than using the actual library call number?
-
I should mention that the problem persists with Zotero 4.0.23. I clicked Update Translators too, but that didn't help.
-
Cool, thanks for the link. I'll look there.
-
I'm still interested in potentially trying to create a Google Docs add-on for Zotero, but since I'm currently pretty busy with graduate school, my development time is limited. If I do get around to it, though, I'd be happy to do this as a personal p…
-
I see that Google Docs now provides scripts for text documents, not just spreadsheets, so it might now be possible to write a suitable plugin. Perhaps I'll play around with this in my copious (ha!) spare time.
-
Update: as you suggested, I tried saving an RTF file in LibreOffice before scanning it in Zotero. No luck; apostrophes still wound up straightened. If necessary, I'll send the file. I haven't had time to fix the JavaScript code, but hopefully I will…
-
Alternatively, I was about to suggest that we consider punting to an existing JavaScript RTF parsing library that's already solved this problem for us...except that such a thing doesn't seem to exist. There are RTF-to-HTML converters in JavaScript, …
-
Well, that looks like kind of a pain. I guess I'll have to take a good look at the RTF spec now.
-
So yeah, I'll give this a shot. I'm busy being a first-year grad student right now, but if I can fix this quickly, I will.
-
That's exactly the line I had noticed as a spot to investigate, when I'm not lying in bed typing on my iPhone. :)
-
So let me get this straight. If you take the RTF file I provided from TextEdit, then open it in LibreOffice and save it as RTF again, the curly apostrophes come out intact after Zotero processing? If that's so, then I assume there are multiple …
-
You wrote: > I can't replicate that. Meaning that apostrophes don't get straightened when you try? If so, could I see your before and after RTF files? > Which word processor are you using to create the RTF? Jer's Novel Wri…
-
Has there been any further work on this? If not, I might start trying to write something.
-
OK, I'll see if I have time to write one.