IEEE Computer Society

Hello again Zotero forum!
I'm still working with my program and now I found an other translator I wanna implement to my site.

This this is it the translators for the IEEE journal articles.
So this is the code to the translator:

http://pastebin.com/An5sixUC

The things that the translator don't grab that I need from this site is the affiliation.

here is an example site I wanna use the translator on:
http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=1701938

I have figured out that I the information that I need is in a meta tag that looks something like this:

meta name="citation_author_institution" content=

So I wanna go in this tag and grab the information and add it to the extra field in Zotero.
Can I use something like:

var affiliation = doc.getElementsByTagName('meta').item(property='citation_author_institution');

or?
  • Okay I have come so far now that I have done something like this:

    http://pastebin.com/6gZjq8MQ

    I can get the content from the meta tag. But now I want to, if there is more then one affiliation, divide them by ; so I can easily divade them and store them separtly.

    Why wont this code work for me that I'm using?
  • if you use
    var affiliation = ZU.xpath(doc, '//meta[@property="citation_author_institution"]/@content')

    instead of what you currently have, I believe the rest of the code should take care of this.

    For future reference, I won't be able to keep helping you with basic javascript questions; that's really beyond the scope of this forum. I'd recommend using stackoverflow, which is a terrific resource and has tons of people on it that can deal with questions that really have nothing in particular to do with Zotero.
Sign In or Register to comment.