Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
TY - CHAP
N1 - Record ID: 1
A1 - Abel, Annie H.
ED
T2 - Chardon's Journal at Fort Clark, 1834-1839
CY - Pierre
PB - South Dakota State Department of History
PY - 1932
N1 - Notes: seen
KW - Arikara
This file has been truncated, but you can view the full file.
TY - CHAP
N1 - Record ID: 1
A1 - Abel, Annie H.
ED
T2 - Chardon's Journal at Fort Clark, 1834-1839
CY - Pierre
PB - South Dakota State Department of History
PY - 1932
N1 - Notes: seen
KW - Arikara
This file has been truncated, but you can view the full file.
TY - CHAP
N1 - Record ID: 1
A1 - Abel, Annie H.
ED
T2 - Chardon's Journal at Fort Clark, 1834-1839
CY - Pierre
PB - South Dakota State Department of History
PY - 1932
N1 - Notes: seen
KW - Arikara
This file has been truncated, but you can view the full file.
TY - CHAP
N1 - Record ID: 1
ED - Abel, Annie H.
T2 - Chardon's Journal at Fort Clark, 1834-1839
CY - Pierre
PB - South Dakota State Department of History
PY - 1932
N1 - Notes: seen
KW - Arikara
KW - ethnohistory
#!/usr/bin/perl
use DBI;
my $zoterostorage="/Users/mronkko/Documents/Research/Zotero Data";
my $target="/Users/mronkko/Documents/Research/Articles";
my $dbh = DBI->connect("dbi:SQLite:dbname=$zoterostorage/zotero.sqlite","","");
# Query all PDF attachments
<?xml version="1.0"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:zapi="http://zotero.org/ns/api">
<title>Electron Microscopy and Analysis 1993: Proceedings of the Institute of Physics Electron Microscopy and Analysis Group Conference, University of Liverpool, 14-17 September1993</title>
<author>
<name>Z public library</name>
<uri>http://zotero.org/z_public_library</uri>
</author>
<id>http://zotero.org/z_public_library/items/X42A7DEE</id>
<published>2011-01-13T03:37:29Z</published>
<updated>2011-01-13T03:37:29Z</updated>
2) Get upload authorization
Request:
POST https://api.zotero.org/users/1060030/items/JXSUX7JA/file?key=GZhvTzGdIP1E45P6TRJ8GIB0 HTTP/1.1
User-Agent: ZotPad beta 1.1 (iPad; iPhone OS 5.1.1; fi_FI)
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
If-Match: c228dae85393b8d71cc3d71346d3e69f
Content-Length: 137
Request:
PUT https://api.zotero.org/users/701495/items/548AMIPX?key=BmXAwBls1UpZ6Pj9xQvuhpW2 HTTP/1.1
User-Agent: ZotPad beta 1.1 (iPad; iPhone OS 5.1.1; fi_FI)
Content-Type: application/json
Accept-Encoding: gzip
If-Match: bbd73033dc6b64465bd49342668a7879
Content-Length: 355
Cookie: __utma=244989198.963079005.1340913958.1341041487.1341133175.5; __utmz=244989198.1340913958.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
--- Local copy of the file right after adding the item to Zotero Standalone ---
3080-la0003% ls -l /Users/mronkko/Dropbox/Apps/ZotPad-beta/IS57WTDX
total 352
-rw-r--r-- 1 mronkko 70000 178035 5 Hei 08:51 Perren and Ram - 2004 - Case-Study Method in Small Business and Entreprene.pdf
t3080-la0003% md5 /Users/mronkko/Dropbox/Apps/ZotPad-beta/IS57WTDX/Perren\ and\ Ram\ -\ 2004\ -\ Case-Study\ Method\ in\ Small\ Business\ and\ Entreprene.pdf
MD5 (/Users/mronkko/Dropbox/Apps/ZotPad-beta/IS57WTDX/Perren and Ram - 2004 - Case-Study Method in Small Business and Entreprene.pdf) = 207848f21db15ad741b7a3de25c8ff3c
Results of adding
otero.debug("Encoded: "+string +" char: " + string.charAt(n) +" code: " + String.fromCharCode(c) + " total result: "+utftext,1);
on line 276 in file utilities_internal.js
WINDOWS:
zotero(1): Encoded: Hallsson_Björklund_2012.pdf char: r code: r total result: Hallsson_BjÃÃ'¶r