View Single Post
Old 10-30-2010, 08:59 AM   #34
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Version 0.1.0 available at http://charles.the-haleys.org/calibre/.

The content of the INSTALL file contained in the archive is under the spoiler:
Spoiler:

Prerequisites:

1. PHP 5.3 w/GD image processing & SQLite3 support.
2. A web server supporting PHP modules. Tested with apache 2.2, but there isn't any apache-specific code in this system.
3. The Smarty template processor. You must have the path to the directory containing Smarty.class.php. Tested I use Smarty 2.6.25. Smarty caching isn't used.
4. The path to a calibre library (metadata.db, format, & cover files).

To install:

1. Extract the zip file to a folder in web space (visible to the web server).
2. If a first-time install, copy config_default.php to config_local.php
3. Change the paths/values in config.php as appropriate.

$config['smarty'] must be a full path to a directory containing smarty. It is usually something like /path components/SmartyRelease/libs. The folder must contain the file Smarty.class.php.

$config['smarty_dir'] must be a full path to a directory, should not be in web space, and must be writable by the web server. Create two directories in this folder: smarty_cache and smarty_templates_c. Both of these directories must be writable by the web server.

$config['web_dir'] must be the full path to the directory containing index.php. The web server need not have write access to this directory or its subdirectories.

$config['smarty_web_dir'] must be a full path to the directory containing the smarty templates. The directory must be in web space, and is usually a subdirectory of $config['web_dir'].

$config['library_dir'] must be a full path to a directory containing a calibre library. The database metadata.db must be in this directory.

CHANGING TEMPLATES:

In order to make upgrading to future releases easier, if you wish to change the templates, do the following:

1. Create a new subdirectory for your templates. This subdirectory must be in web space.
2. Copy the standard templates to this directory.
3. Change the value of $config['smarty_web_dir'] to point at the new folder.
4. Edit the templates as you wish.

Next steps:
1) add sorting to the UI/templates.
2) make searching more capable (and/or and field name specification).
3) add an option to restrict visible content to the results of a search (a restriction in calibre terms).
4) fix bugs.

Source is on launchpad, in case that is of interest to someone.

If someone actually uses this thing, could you post here? I would be interested in hearing how the installation went, and whether there are prerequisites that I didn't mention. In particular, if you make it work on a cheap web hosting service (or fail to make it work), let me know.
chaley is offline   Reply With Quote