From 8d5d844728eb791711dcbb406449b8eeda23da4f Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 6 Apr 2012 15:44:45 -0400 Subject: [PATCH] beanstalk config; image height; image borders via tables Signed-off-by: Bill Erickson --- eg2012_tpac.txt | 68 ++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 58 insertions(+), 10 deletions(-) diff --git a/eg2012_tpac.txt b/eg2012_tpac.txt index 811936c75..a874bb0be 100644 --- a/eg2012_tpac.txt +++ b/eg2012_tpac.txt @@ -83,32 +83,80 @@ striking from a hidden base, have won... [% END %] ------------------------------------------------------------------------------ -Building Something From "Nothing" : Beanstalk ---------------------------------------------- +Building Something From "Nothing" +--------------------------------- + +Goal was to see how much work it would take to build a +simple, proof-of-concept mobile catalog. + +Code Name: *Beanstalk*. + +Beanstalk : Beanstalk.pm +------------------------ + +Start with just enough Perl code to implement the pages you want. + + * Subclass OpenILS::WWW::EGCatLoader + * Create/attach handlers for each page + +image::images/beanstalk_perl.png[] + +Beanstalk : Apache Configuration +-------------------------------- + +Tell Apache about the new Perl module. + +[source, bash] +------------------------------------------------------------------------------ +# eg_vhost.conf + + PerlSetVar OILSWebContextLoader "OpenILS::WWW::Beanstalk" + +------------------------------------------------------------------------------ + +Beanstalk : Templates +--------------------- + +Copy templates from TPAC into OpenILS/src/templates/beanstalk and edit. + +image::images/beanstalk_results_template.png[height=600] Beanstalk : Home ---------------- -image::images/beanstalk_home.png[] +// cram it into a table for borders +[width="10%", options="borders"] +|=== +|image:images/beanstalk_home.png[height=600] +|=== Beanstalk : Results ------------------- -image::images/beanstalk_results.png[] +[width="10%", options="borders"] +|=== +|image:images/beanstalk_results.png[height=600] +|=== Beanstalk : Record ------------------ -image::images/beanstalk_record.png[] +[width="10%", options="borders"] +|=== +|image:images/beanstalk_record.png[height=600] +|=== Beanstalk : Record Cont. ----------------------- -image::images/beanstalk_record2.png[] +[width="10%", options="borders"] +|=== +|image:images/beanstalk_record2.png[height=600] +|=== Beanstalk : Copies ------------------ -image::images/beanstalk_copies.png[] +[width="10%", options="borders"] +|=== +|image:images/beanstalk_copies.png[height=600] +|=== -Beanstalk : Perl ----------------- -image::images/beanstalk_perl.png[] -- 2.11.0