[FM Discuss] setting up booki publisher for civicrm
Michael McAndrew
michaelmcandrew at thirdsectordesign.org
Thu Oct 27 10:21:10 PDT 2011
Hey,
Thanks for the guidance. That sounds fun and I am willing to do that.
Correct me if I am wrong, but I'm thinking that I would need a local
bookipublisher install to develop this script effectively.
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?
PS. I will start publisher INSTALL readme as part of this.
Michael
p gearman - A distributed job queue
> p gearman-job-server - Job server for the Gearman distributed job queue
> p gearman-server - Gearman distributed job server and Perl interface
> p gearman-tools - Tools for the Gearman distributed job queue
> v gearman-worker -
> p libgearman-client-async-perl - Asynchronous client for gearman
> distributed job system
> p libgearman-client-perl - Client for gearman distributed job system
> p libgearman-dbg - Debug symbols for the Gearman Client Library
> p libgearman-dev - Development files for the Gearman Library
> p libgearman-doc - API Documentation for the Gearman Library
> p libgearman-server-dev - Development files for the Gearman Server Library
> p libgearman-server0 - Library providing Gearman server functions
> p libgearman2 - Library providing Gearman client and worker functions
>
On 27 October 2011 12:51, adam hyde <adam at flossmanuals.net> wrote:
> 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 :
>
> wgets for pdf and epub are:
>
> http://objavi.booki.cc?book=**civicrm&server=booki.**
> flossmanuals.net&mode=web<http://objavi.booki.cc?book=civicrm&server=booki.flossmanuals.net&mode=web>
> ";
>
> http://objavi.booki.cc?book=**civicrm&server=booki.**
> flossmanuals.net&mode=epub<http://objavi.booki.cc?book=civicrm&server=booki.flossmanuals.net&mode=epub>
> ";
>
> for getting templated html you can look at this file in bookipublisher:
> https://github.com/esetera/**BookiPublisher/blob/master/**
> plugins/getbookgears/worker.**php<https://github.com/esetera/BookiPublisher/blob/master/plugins/getbookgears/worker.php>
>
> 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
>
> §url in the code for civi it would be:
>
> "http://objavi.booki.cc?book=**civicrm&server=booki.**
> flossmanuals.net&mode=**templated_html<http://objavi.booki.cc?book=civicrm&server=booki.flossmanuals.net&mode=templated_html>
> ",
>
> to use your own template you must append :
> &html_template=$template
>
> where $template is the url of a template file
>
> template file must be file with following in it:
> <content-goes-here />
> <menu-goes-here/>
>
> you can omit the template parameter when testing and you get the default
>
> adam
>
>
>
>
> On 27/10/11 18:30, Michael McAndrew wrote:
>
>> hey there,
>>
>> cheers - is 'wget on a cron' documented somewhere?
>>
>> i'm on irc at the mo if that is easier
>>
>> On 27 October 2011 12:29, adam hyde <adam at flossmanuals.net
>> <mailto:adam at flossmanuals.net>**> wrote:
>>
>> actually...i would just use wget on a cron for one book...
>>
>> for bookipublisher you need php 5.3 and gearman the php que mananger...
>>
>> adam
>>
>>
>> On 27/10/11 17:11, Michael McAndrew wrote:
>>
>> Hi there,
>>
>> Trying to get the civicrm book on book.civicrm.org
>> <http://book.civicrm.org>
>> <http://book.civicrm.org> nicely formatted with our css etc.
>>
>>
>> I'm presuming bookipublisher is the tool to do this and I'm
>> trying to
>> install it. Happy to write INSTALL in the git repo. Not sure
>> where to
>> start :)
>>
>> I looked in config.inc.php. looks pretty reasonable.
>>
>> I ran db_init.sh and db_import.sh and both said done, though i
>> noticed
>> that booki.sqlite is zero bytes.
>>
>> Not sure what to do now?
>>
>> Michael
>>
>> --
>> Michael McAndrew
>>
>> tel: 020 7183 5828
>> mob: 07817 802299
>>
>> Third Sector Design Ltd.
>> http://thirdsectordesign.org
>>
>>
>>
>> ______________________________**___________________
>> Discuss mailing list
>> Discuss at lists.flossmanuals.net
>> <mailto:Discuss at lists.**flossmanuals.net<Discuss at lists.flossmanuals.net>
>> >
>> http://lists.flossmanuals.net/**__listinfo.cgi/discuss-__**
>> flossmanuals.net<http://lists.flossmanuals.net/__listinfo.cgi/discuss-__flossmanuals.net>
>> <http://lists.flossmanuals.**net/listinfo.cgi/discuss-**
>> flossmanuals.net<http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net>
>> >
>>
>> ______________________________**___________________
>> Discuss mailing list
>> Discuss at lists.flossmanuals.net <mailto:Discuss at lists.**
>> flossmanuals.net <Discuss at lists.flossmanuals.net>>
>> http://lists.flossmanuals.net/**__listinfo.cgi/discuss-__**
>> flossmanuals.net<http://lists.flossmanuals.net/__listinfo.cgi/discuss-__flossmanuals.net>
>>
>> <http://lists.flossmanuals.**net/listinfo.cgi/discuss-**
>> flossmanuals.net<http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net>
>> >
>>
>>
>>
>>
>> --
>> Michael McAndrew
>>
>> tel: 020 7183 5828
>> mob: 07817 802299
>>
>> Third Sector Design Ltd.
>> http://thirdsectordesign.org
>>
>>
>>
>> ______________________________**_________________
>> Discuss mailing list
>> Discuss at lists.flossmanuals.net
>> http://lists.flossmanuals.net/**listinfo.cgi/discuss-**flossmanuals.net<http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net>
>>
> ______________________________**_________________
> Discuss mailing list
> Discuss at lists.flossmanuals.net
> http://lists.flossmanuals.net/**listinfo.cgi/discuss-**flossmanuals.net<http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net>
>
--
Michael McAndrew
tel: 020 7183 5828
mob: 07817 802299
Third Sector Design Ltd.
http://thirdsectordesign.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.flossmanuals.net/pipermail/discuss-flossmanuals.net/attachments/20111027/7ae2c765/attachment.htm>
More information about the Discuss
mailing list