Talk:Bibliotecha
content from last year removed from current page:
Day 2 Hacking
On this second day we will see how can we create an alternative indexing and browsing interface for Bibliotecha, that addresses the following issue with Calibre.
A working prototype can be found on the nocalibre branch of Bibliotecha git repository.
Some breakfast with Python Cookbook recipes
- Python data-types
- JSON in Python
- Jinja - templating engine
working prototype: essentials
/var/www file-tree
The scripts responsible for replacing calibre are:
/var/www/browse/json_update.py
/var/www/browse/generate-table.py
Both are triggered by /var/www/cgi-bin/receive_book.cgi
, when a book is added.
further develop prototype
by:
- adding hyperlinks to /var/www/browse/index.html back to ../index.html (bibliotecha landing page)
- make Book Collection HTML table: sortable, more easily readable
- others: ??
- (advanced): instead of overwriting /var/www/browse/collection-metadata.json everytime a books is added, simply update collection-metadata.json
- (advanced): handle multi authors
- (advanced): handle repeated books
Write a recipe
After two days of sshing, install, configuring, coding there might be some function or trick which you found relevant.
I'd like to ask you to share your insights onto that something with the pzi community by writing a recipe on in in the Cookbook.
Take a look at what in there (it's a great resource!!) and is how simple, but also useful (like the [SimpleMailBomber|Mail Bomber] recipe), a recipe can be. And write one.
It should not take you more than 1 hour.