[Koha] Export records to RIS to Latin-1 instead of UTF

Zeno Tajoli z.tajoli at cineca.it
Thu Oct 16 22:29:32 NZDT 2014


Hi Hugo,

Il 16/10/2014 10:09, Hugo Agud ha scritto:
> I am struggeling with Koha export to RIS for further import to Zotero local
>
> The problem is that the exported file is latin-1 codification instead of
> utf-8, the direct export from koha to zotero with the firefox add-on works
> fine, but not the export file.

the patch og bug 12175, 
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12174, is 
present only on master (3.17)

It is necessary only on apache, on ngix web server is not mandatory.

This patch is only for Zotero FF add-on / Zotero standalone.
It isn't for RIS output.

For RIS the problem is probably in the lines
55 elsif ($format =~ /ris/) {
56     $marc = marc2ris($marc);
57     $format = 'ris';
58 }

You need to check data inside $marc, if data has charset latin-1,
the file on you PC will be latin-1


Zotero FF add-on / Zotero standalone downloads data with this call from 
Koha:
opac-export.pl?format=utf8&op=export&bib=" + bibnumber +"save=Go"
or with a grep of Coins tag in web page.
You can see here:
https://github.com/zotero/translators/blob/master/Library%20Catalog%20%28Koha%29.js

I think is a bug, but a new one.

Cheers
Zeno Tajoli





-- 
Dr. Zeno Tajoli
Soluzioni per la Ricerca Istituzionale - Automazione Biblioteche
z.tajoli at cineca.it
fax +39 02 2135520
CINECA - Sede operativa di Segrate


More information about the Koha mailing list