View Single Post
Old 05-04-2012, 04:30 AM   #226
chaley
"chaley", not "charley"
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: 5,818
Karma: 1216136
Join Date: Jan 2010
Location: France
Device: Many android devices
Quote:
Originally Posted by micster View Post
This question is for ilovejedd, vlad59 , chaley or anyone else who is interested in templates...

Earlier in this thread it was suggested that it would be possible to create a new template that would make this PHP catalog OPDS 1.1 compatible. I would like to have this. I started thinking about how I would go about it and I got stuck when I realized I would like my catalog to be both browsable threw the web AND searchable with an ereader device using OPDS. Calibre2opds achieves this by generating html for the website and creating xml for the opds catalog.

How could we achieve this using this PHP scipt and the smarty templates?
If I were interested in doing this (which I am not), I wouldn't implement the OPDS version with the templates. There is no reason to do so because the content and format is fixed. Instead I would write PHP "modules" that produce OPDS categories and book lists, integrated with the existing search.

You could avoid doing anything by running COPS (http://www.mobileread.com/forums/sho...d.php?t=170903) along side the standard web server. Of course they would need to be on different ports, or alternatively use a reverse proxy scheme.
chaley is offline   Reply With Quote