Hey,<br><br>Thanks for the guidance. That sounds fun and I am willing to do that.<br><br>Correct me if I am wrong, but I'm thinking that I would need a local bookipublisher install to develop this script effectively.<br>
<br>If so, sounds like I should install that on ubuntu. So wrt dependencies, they have a few gearman packages. any advice on which one I need?<br><br>PS. I will start publisher INSTALL readme as part of this.<br><br>Michael<br>
<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">p gearman - A distributed job queue <br>p gearman-job-server - Job server for the Gearman distributed job queue <br>
p gearman-server - Gearman distributed job server and Perl interface <br>p gearman-tools - Tools for the Gearman distributed job queue <br>v gearman-worker - <br>p libgearman-client-async-perl - Asynchronous client for gearman distributed job system <br>
p libgearman-client-perl - Client for gearman distributed job system <br>p libgearman-dbg - Debug symbols for the Gearman Client Library <br>p libgearman-dev - Development files for the Gearman Library <br>p libgearman-doc - API Documentation for the Gearman Library <br>
p libgearman-server-dev - Development files for the Gearman Server Library <br>p libgearman-server0 - Library providing Gearman server functions <br>p libgearman2 - Library providing Gearman client and worker functions <br>
</blockquote><div><br> </div><br><br><div class="gmail_quote">On 27 October 2011 12:51, adam hyde <span dir="ltr"><<a href="mailto:adam@flossmanuals.net">adam@flossmanuals.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
actually wget is good for epub and pdf but now i think of it, not good for templated html...i need to write up how to use it as you are the first but good timing as maybe sahana etc want to use it too. , so :<br>
<br>
wgets for pdf and epub are:<br>
<br>
<a href="http://objavi.booki.cc?book=civicrm&server=booki.flossmanuals.net&mode=web" target="_blank">http://objavi.booki.cc?book=<u></u>civicrm&server=booki.<u></u>flossmanuals.net&mode=web</a>";<br>
<br>
<a href="http://objavi.booki.cc?book=civicrm&server=booki.flossmanuals.net&mode=epub" target="_blank">http://objavi.booki.cc?book=<u></u>civicrm&server=booki.<u></u>flossmanuals.net&mode=epub</a>";<br>
<br>
for getting templated html you can look at this file in bookipublisher:<br>
<a href="https://github.com/esetera/BookiPublisher/blob/master/plugins/getbookgears/worker.php" target="_blank">https://github.com/esetera/<u></u>BookiPublisher/blob/master/<u></u>plugins/getbookgears/worker.<u></u>php</a><br>
<br>
specifcally my_getbook_function - look at this and if you have the motivation, make this a standalone php script (just this function) and use this then commit it to bookipublisher in the scripts dir so others could use it<br>
<br>
§url in the code for civi it would be:<br>
<br>
"<a href="http://objavi.booki.cc?book=civicrm&server=booki.flossmanuals.net&mode=templated_html" target="_blank">http://objavi.booki.cc?book=<u></u>civicrm&server=booki.<u></u>flossmanuals.net&mode=<u></u>templated_html</a>",<br>
<br>
to use your own template you must append :<br>
&html_template=$template<br>
<br>
where $template is the url of a template file<br>
<br>
template file must be file with following in it:<br>
<content-goes-here /><br>
<menu-goes-here/><br>
<br>
you can omit the template parameter when testing and you get the default<br>
<br>
adam<div class="im"><br>
<br>
<br>
<br>
On 27/10/11 18:30, Michael McAndrew wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
hey there,<br>
<br>
cheers - is 'wget on a cron' documented somewhere?<br>
<br>
i'm on irc at the mo if that is easier<br>
<br>
On 27 October 2011 12:29, adam hyde <<a href="mailto:adam@flossmanuals.net" target="_blank">adam@flossmanuals.net</a><br></div><div><div></div><div class="h5">
<mailto:<a href="mailto:adam@flossmanuals.net" target="_blank">adam@flossmanuals.net</a>><u></u>> wrote:<br>
<br>
actually...i would just use wget on a cron for one book...<br>
<br>
for bookipublisher you need php 5.3 and gearman the php que mananger...<br>
<br>
adam<br>
<br>
<br>
On 27/10/11 17:11, Michael McAndrew wrote:<br>
<br>
Hi there,<br>
<br>
Trying to get the civicrm book on <a href="http://book.civicrm.org" target="_blank">book.civicrm.org</a><br>
<<a href="http://book.civicrm.org" target="_blank">http://book.civicrm.org</a>><br>
<<a href="http://book.civicrm.org" target="_blank">http://book.civicrm.org</a>> nicely formatted with our css etc.<br>
<br>
<br>
I'm presuming bookipublisher is the tool to do this and I'm<br>
trying to<br>
install it. Happy to write INSTALL in the git repo. Not sure<br>
where to<br>
start :)<br>
<br>
I looked in config.inc.php. looks pretty reasonable.<br>
<br>
I ran db_init.sh and db_import.sh and both said done, though i<br>
noticed<br>
that booki.sqlite is zero bytes.<br>
<br>
Not sure what to do now?<br>
<br>
Michael<br>
<br>
--<br>
Michael McAndrew<br>
<br>
tel: 020 7183 5828<br>
mob: 07817 802299<br>
<br>
Third Sector Design Ltd.<br>
<a href="http://thirdsectordesign.org" target="_blank">http://thirdsectordesign.org</a><br>
<br>
<br>
<br></div></div>
______________________________<u></u>___________________<br>
Discuss mailing list<br>
<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.flossmanuals.net</a><br>
<mailto:<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.<u></u>flossmanuals.net</a>><br>
<a href="http://lists.flossmanuals.net/__listinfo.cgi/discuss-__flossmanuals.net" target="_blank">http://lists.flossmanuals.net/<u></u>__listinfo.cgi/discuss-__<u></u>flossmanuals.net</a><br>
<<a href="http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net" target="_blank">http://lists.flossmanuals.<u></u>net/listinfo.cgi/discuss-<u></u>flossmanuals.net</a>><br>
<br>
______________________________<u></u>___________________<br>
Discuss mailing list<br>
<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.flossmanuals.net</a> <mailto:<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.<u></u>flossmanuals.net</a>><br>
<a href="http://lists.flossmanuals.net/__listinfo.cgi/discuss-__flossmanuals.net" target="_blank">http://lists.flossmanuals.net/<u></u>__listinfo.cgi/discuss-__<u></u>flossmanuals.net</a><div class="im"><br>
<<a href="http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net" target="_blank">http://lists.flossmanuals.<u></u>net/listinfo.cgi/discuss-<u></u>flossmanuals.net</a>><br>
<br>
<br>
<br>
<br>
--<br>
Michael McAndrew<br>
<br>
tel: 020 7183 5828<br>
mob: 07817 802299<br>
<br>
Third Sector Design Ltd.<br>
<a href="http://thirdsectordesign.org" target="_blank">http://thirdsectordesign.org</a><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Discuss mailing list<br>
<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.flossmanuals.net</a><br>
<a href="http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net" target="_blank">http://lists.flossmanuals.net/<u></u>listinfo.cgi/discuss-<u></u>flossmanuals.net</a><br>
</div></blockquote><div><div></div><div class="h5">
______________________________<u></u>_________________<br>
Discuss mailing list<br>
<a href="mailto:Discuss@lists.flossmanuals.net" target="_blank">Discuss@lists.flossmanuals.net</a><br>
<a href="http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net" target="_blank">http://lists.flossmanuals.net/<u></u>listinfo.cgi/discuss-<u></u>flossmanuals.net</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Michael McAndrew<br><br>tel: 020 7183 5828<br>mob: 07817 802299<br><br>Third Sector Design Ltd.<br><a href="http://thirdsectordesign.org" target="_blank">http://thirdsectordesign.org</a><br>
<br>