Originally Posted by micster
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 (https://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.