Worldcat API and Zotero

On http://www.worldcat.org/ there's a limit of 10 results per page and Zotero work fine for me, importing 10 out of 10 results.

Using API I can view 100 results, but Zotero can import only 1 item per page.

Here an example (wskey value is missing, of course):

http://worldcat.org/webservices/catalog/search/worldcat/sru?query=srw.kw+all+%22Tesla%22&recordSchema=info%3Asrw%2Fschema%2F1%2Fmarcxml&sortKeys=Date&maximumRecords=100&servicelevel=full&wskey=

I can only import the record for

First plasma of the A-PHOENIX electron cyclotron resonance...

and not the other 99.

Can I fix this URL?
Or..
Is there another process to use Zotero with worldcat.org API?

Thank you in advance.
  • We've never tested/worked with the API. One thing would be -- couldn't you just get the API to give you importable data (marcxml maybe even?)
    Otherwise, you could look at modifying the translator. It could just be a trivial change, I don't know (and don't have an API key to test).
  • Thank you Adam.

    I've already tried to get an xml with format marcxml but I wasn't able to import it in Zotero. I'll paste it below.

    I can give you my wskey if you want. Just let me know how to send it to you.

    Best regards.

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <record xmlns="http://www.loc.gov/MARC21/slim">
    <leader>00000cam a2200000Mu 4500</leader>
    <controlfield tag="001">311317479</controlfield>
    <controlfield tag="008">900830s1973 gw 000 0 ger d</controlfield>
    <datafield ind1=" " ind2=" " tag="020">
    <subfield code="a">3108227076</subfield>
    </datafield>
    <datafield ind1=" " ind2=" " tag="020">
    <subfield code="a">9783108227074</subfield>
    </datafield>
    <datafield ind1="1" ind2=" " tag="100">
    <subfield code="a">Freud, Sigmund,</subfield>
    <subfield code="d">1856-1939.</subfield>
    </datafield>
    <datafield ind1="1" ind2="0" tag="245">
    <subfield code="a">Studienausgabe/</subfield>
    <subfield code="c">Sigmund Freud. Hrsg. von Alexander Mitscherlich ....</subfield>
    <subfield code="n">7,</subfield>
    <subfield code="p">Zwang, Paranoia und Perversion.</subfield>
    </datafield>
    <datafield ind1=" " ind2=" " tag="260">
    <subfield code="a">Frankfurt a. M. :</subfield>
    <subfield code="b">S. Fischer,</subfield>
    <subfield code="c">1973.</subfield>
    </datafield>
    <datafield ind1=" " ind2=" " tag="300">
    <subfield code="a">361 S.</subfield>
    </datafield>
    <datafield ind1="0" ind2=" " tag="490">
    <subfield code="a">Conditio humana</subfield>
    </datafield>
    <datafield ind1="0" ind2="7" tag="650">
    <subfield code="a">Zwangsneurose.</subfield>
    <subfield code="2">swd</subfield>
    </datafield>
    <datafield ind1="0" ind2="7" tag="650">
    <subfield code="a">Paranoia.</subfield>
    <subfield code="2">swd</subfield>
    </datafield>
    <datafield ind1="0" ind2="7" tag="650">
    <subfield code="a">Perversion.</subfield>
    <subfield code="2">swd</subfield>
    </datafield>
    <datafield ind1=" " ind2="7" tag="655">
    <subfield code="a">Aufsatzsammlung</subfield>
    <subfield code="2">swd</subfield>
    </datafield>
    <datafield ind1=" " ind2="4" tag="655">
    <subfield code="a">Aufsatzsammlung.</subfield>
    </datafield>
    <datafield ind1="0" ind2="7" tag="650">
    <subfield code="a">Paranoia.</subfield>
    <subfield code="0">(DE-588)4044623-2</subfield>
    <subfield code="2">gnd</subfield>
    </datafield>
    <datafield ind1="0" ind2="7" tag="650">
    <subfield code="a">Perversion.</subfield>
    <subfield code="0">(DE-588)4045318-2</subfield>
    <subfield code="2">gnd</subfield>
    </datafield>
    <datafield ind1="0" ind2="7" tag="650">
    <subfield code="a">Zwangsneurose.</subfield>
    <subfield code="0">(DE-588)4068181-6</subfield>
    <subfield code="2">gnd</subfield>
    </datafield>
    <datafield ind1="1" ind2=" " tag="700">
    <subfield code="a">Freud, Sigmund,</subfield>
    <subfield code="d">1856-1939.</subfield>
    </datafield>
    </record>
  • we should maybe relax this in the translator, but for right now, this is easy for you to fix on import.
    Just include
    <collection xmlns="http://www.loc.gov/MARC21/slim">
    as the second line, above <record

    and then
    </collection> as the last line. You just need to do this once for the entire MarcXML file, not for each record.

    If you send me your wskey via private message through https://www.zotero.org/adamsmith that'll work well.
  • got the API key, but this won't work easily -- the only reason Zotero imports anything is the DOI on that page.
    So yes, I'd go the marcXML route as described above. Zotero can also ingest plain machine-formatted marc, if that's an option.
  • edited January 7, 2016
    What is DOI?

    marcxml would be great, you can create a query using this form and get 100 results:
    http://worldcat.org/webservices/catalog/evaluator.html
  • DOI: https://en.wikipedia.org/wiki/Digital_object_identifier

    See above on MarcXML -- that should work nicely.
  • Yes, worked nicely with those 2 lines.

    Thank you.
Sign In or Register to comment.