Please, allow a proper XML-export
Hi, I know that this topic is very old and that Zotero guys resist to make a complete XML-export. I am trying to export my academic references and post them in a nicely formatted way on a website of our university. It is not as easy as it could be, so I wonder why not to allow people to export all data in a good way? Is it because you want people to overload your website using third-party scanners? Or you think that having that feature folks will easily migrate from Zotero to something else?
It would be very nice to have complete data in XML-tree, including tags, collection etc. so me and other users could make a nice plugins and widgets for putting references etc. on our websites, and also generating BibTeX files!
I guess there is such data transfer between Firefox extension and Zotero server. Is it possible to use it?
It would be very nice to have complete data in XML-tree, including tags, collection etc. so me and other users could make a nice plugins and widgets for putting references etc. on our websites, and also generating BibTeX files!
I guess there is such data transfer between Firefox extension and Zotero server. Is it possible to use it?
Zotero already does export to a number of standardized and/or documented XML formats (MODS XML and a number of RDF-based ones).
Zotero has also always had BibTeX export.
The interface for fetching data from Zotero.org is not wholly documented or finalized, but as noksagt notes, there are copious output formats from Zotero (the locally-installed Firefox add-on), and it is fairly simple to implement additional export options.
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<table>
<tr class="itemType">
<th style="text-align: right">Type</th>
<td>Journal Article</td>
</tr>
I just thought that having <type>Journal Article</type> would make it simpler to process the data. Also, there is the number of item tags, but the tags are missing. Or I need to use another URL, not https://api.zotero.org/groups/12345/items ?
Thanks for the links.
update: Talking about BibTeX I meant that I would like to make it by myself from the XML data.
While you may not particularly like the format that Zotero uses to create its item feeds, it is regular and can be processed by anyone with a little experience in manipulating XML. No, it doesn't use the specific tags you would like to see, but there's no reason it ought to.
That structure is very easy to parse (though, in the case of item type, it should probably include the canonical name "journalArticle" somewhere as well). If you're having trouble, try an XML forum or a forum for whatever tool you're using to parse it.
My reference to "specific tags" was because you seemed dissatisfied with having the markup used in the API results, even though it was easily traversed with basic XPath expressions.
Also, Dan, the canonical item type is in <zapi:itemType>newspaperArticle</zapi:itemType> already.