[Tellico-users] Exporting tellico file from command line

Louis-Philippe Véronneau tech at sogeecom.org
Tue Mar 17 03:52:30 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

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!
> 
> Robby


- -- 
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-----

iQIcBAEBCgAGBQJVB6T5AAoJEHrqxOxqqgqXcDoP/iV/llRxo51ex8oDtKXe+hLW
iXGhfCyXBlPtk6bfNo3dBIxtVQo+hAtr38ytqnkVuqskLCNuZny7YAjbcOCcLBif
9utm7+xXRUmFWKmUGJhaSn20uQcm/RsTTcSyrpNMkLI/AmL8iWgkdfduxTlV/UBC
C9Jp8VkiNWo4HFQ/O4Fiw+5aDNRYXmVvz1PkNqY+Awyh5V2r6UmnWM1YhW4AG+RJ
P/MEnZJ4oikAYAZ1TD/FPpttC4rG6w99pmmGaMYAtqLkaWBP6Flj2W10dkZVT/Bu
7BBO3/oNAj42or9758Q2NGi+0GZVxbmNG0ADqEvyL7UIdCmB/EqvDBa+kSt09X4X
N0S7jUQj/pLXqjUvlJBeRYU2kdz+Pr5Qn20LRuv+IZDt5wPgq7VMl0J3pUuzf3ug
NLNoR7d7xNfgxEcTRPqIWacEgIWKys2xvTsm5U/8gS8+CQdMwV9q55JtDIBun2hx
1MBoqCR7slY0kj8ABk+V88uwlSUAGsrUc2f9nBMDua9aHo57IE2pzayLpfmkm8Vj
VNzzLRfGm4m+DLZDXISMFfBClNPX6ySbxpRdRot8GmxnDpgPBdwljp7RPH7z9D0H
GaLbuNtDarI41QjOdkMcIu+b+YHFuY+CJWcr7i/BFkmw+Ts2a1UNws56rppsYTYW
tTX5PjiLJK5assmWhlVq
=dStW
-----END PGP SIGNATURE-----


More information about the tellico-users mailing list