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.

This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.

Sign In or Register to comment.