[Tellico-users] Exporting tellico file from command line
tech at sogeecom.org
Tue Mar 17 03:52:30 UTC 2015
-----BEGIN PGP SIGNED MESSAGE-----
On 2015-03-16 21:16, Robby Stephenson wrote:
> On 03/16/2015 05:09 PM, Louis-Philippe Véronneau wrote:
>> The thing is, I would really like to be able to cron a script or a program on our .tc database to do this automatically. Either XMl, HTMl or
>> CSV would be fine.
>> Does anybody know how this could be done? Tellico does not seem to have a cli interface. I would not mind using the C++ code that does this,
>> but since I'm not familiar with Tellico's source code, I fear that looking myself for it would take ages...
> If you just want XML, it's in the .tc file. The .tc file is just a Zip archive, so you can extract the top-level XML with
> unzip books.tc tellico.xml
I did realise this shortly after sending the email.
> Depending on what kind of HTML you want, you can use xsltproc to convert the Tellico XML to HTML without opening Tellico. This command extracts
> the XML, pipes it through xsltproc and the tellico2html.xsl shipped with Tellico to output HTML. (ALl on one line)
> unzip -p books.tc tellico.xml|xsltproc $(kde4-config --locate tellico/tellico2html.xsl --path data) - > tellico.html
I was struggling with which XSL file to use, but this is very helpful. I've tweaked it a bit to output a nice list grouped by authors, but it seems
to have a bit of problem with non ASCII characters. Anyway, I'll look at this another day.
> Does that help?
It does! Thanks alot!
Louis-Philippe Véronneau - Gestionnaire de réseau informatique
SOGÉÉCOM - Société Générale des Étudiantes et Étudiants du Collège de Maisonneuve
3800, rue Sherbrooke Est (local D-2610)
Montréal, Québec, Canada, H1X 2A2
Téléphone: 514-254-7131, poste 4515
Site web: sogeecom.org
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----
More information about the tellico-users