[greenstone-users] Re: Using PPTPlug

From Katherine Don
DateFri, 02 Dec 2005 17:14:31 +1300
Subject [greenstone-users] Re: Using PPTPlug
In-Reply-To (20051122074530-59042-qmail-web8410-mail-in-yahoo-com)
Hi Sharad

PagedImgPlug has an option to display the documents with hierarchical
table of contents instead of the go to page box.
This option is -documenttype hierarchy
Unfortunately, at the moment, from the configuration file there is no
way to pass arguments to sub plugins (ones used from within other ones).

You can do it by editing the gsdl/perllib/plugins/PPTPlug.pm file. Look
for the line that looks like

my $pageimg_options = $secondary_plugin_options->{'PagedImgPlug'};

Add the following line after it:
push(@$pageimg_options,"-documenttype", "hierarchy");

Hopefully this will achieve what you are after.

Regards,
Katherine

Sharad Jadhav wrote:
> Hi,
>
> I am using Greenstone 2.62. Thanks for your support. I
> am now able to display images of slides as pages with
> page navigation facility. I think I was making some
> mistake in format document string. Few more things I
> am trying to do. I am trying to use go to page option,
> but after entering a valid page number, nothings
> happens (can I remove this button in future). Can I
> remove the page navigation arrows which are displayed
> on the top of the images. Can I display table of
> contents of the slides with title of each slide as
> title for the page. ( I am getting the page title as
> page navigation arrows).
>
> Sharad Jadhav,
> National Insurance Academy,
> Pune, India
>
>
>
>
> --- Katherine Don <kjdon@cs.waikato.ac.nz> wrote:
>
>
>>Hi Sharad
>>
>>I'm not sure what you are getting.
>>When I start a new collection, add power point
>>documents, configure
>>PPTPlug with -convert_to pagedimg_jpg
>>-windows_scripting, and build, I
>>get documents with next and previous page arrows.
>>Each page displays the text.
>>If I replace [Text] in the DocumentText format
>>statement with
>>{If}{[parent:FileFormat] eq PPT, [srcicon],[Text]},
>>then I get the
>>images displayed instead of the text.
>>
>>I think this is what you want isn't it?
>>
>>What version of greenstone are you using? I am using
>>2.62.
>>If you can't get it working, some screenshots
>>showing what you are
>>actually seeing, and your config file would help.
>>
>>Regards,
>>Katherine
>>
>>Sharad Jadhav wrote:
>>
>>>Hi,
>>>
>>>I tried to work on suggestion sent by you. Putting
>>
>>[srcicon] is
>>
>>>displaying the original PPTs. I have built a
>>
>>collection of PPT document.
>>
>>>I can see the original PPT and corressponding
>>
>>images ( 20 images for PPT
>>
>>>of 20 slides named a slide1.gif,
>>
>>slide2.gif,......,silde20.gif). Now I
>>
>>>want to use these images a pages ( with navigation
>>
>>from page1, page2,...).
>>
>>>
>>>Is this possible.
>>>
>>>
>>>Regards,
>>>
>>>Sharad Jadhav
>>>NIA, Pune, India
>>>
>>>
>>>
>>>*/Katherine Don <kjdon@cs.waikato.ac.nz>/* wrote:
>>>
>>> Hi Sharad
>>>
>>> You will most likely need to modify your
>>
>>DocumentText format statement.
>>
>>> The default will only display [Text], but with
>>
>>pagedimg PPTS, you want
>>
>>> [srcicon] (I think).
>>>
>>>
>>
> http://www.greenstone.org/cgi-bin/library?e=p-en-faq-utfZz-8&a=p&p=faqcustomize#customizeformat
>
>>> has some more information about format
>>
>>statements.
>>
>>> If you have other document types in your
>>
>>collection, you might want to
>>
>>> use something like
>>>
>>> {If}{[parent:FileFormat] eq PPT,
>>
>>[srcicon],[Text]}
>>
>>> Regards,
>>> Katherine
>>>
>>> Sharad Jadhav wrote:
>>> > Hi,
>>> >
>>> > We are trying to build a collection based on
>>
>>some .ppt
>>
>>> > documents. PPTPlug and PagedImgPlug plugins
>>
>>are
>>
>>> > declared in collect.cfg files. However while
>>
>>browsing
>>
>>> > the contents, along with original format of
>>
>>document
>>
>>> > (i.e. PPT), text format of document is also
>>
>>availble
>>
>>> > for browsing, but not images as slides of
>>
>>PPT document
>>
>>> > are displayed. Index directory contains
>>
>>images for
>>
>>> > each slide.
>>> >
>>> > extract of collect.cfg file:
>>> >
>>> > plugin PPTPlug -windows_scripting
>>
>>-convert_to
>>
>>> > pagedimg_gif
>>> > plugin PagedImgPlug
>>> > plugin GAPlug
>>> > plugin ArcPlug
>>> > plugin RecPlug -use_metadata_files
>>> >
>>> >
>>> > Why images of each slide of the PPT is now
>>
>>available
>>
>>> > for browsing. Is the declarations in
>>
>>collect.cfg file
>>
>>> > is insufficient? Installed version of
>>
>>ImageMagick is
>>
>>> > 6.2.5 Q16.
>>> >
>>> > Sharad Jadhav
>>> > NIA,Pune, India
>>> >
>>> >
>>> >
>>> >
>>
> __________________________________________________________
>
>>> > Enjoy this Diwali with Y! India Click here
>>> http://in.promos.yahoo.com/fabmall/index.html
>>> >
>>> >
>>
>>_______________________________________________
>>
>>> > greenstone-users mailing list
>>> > greenstone-users@list.scms.waikato.ac.nz
>>> >
>>
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>>> >
>>> >
>>>
>>>
>>>
> ------------------------------------------------------------------------
>
>>>Enjoy this Diwali with Y! India Click here
>>><http://in.promos.yahoo.com/fabmall/index.html>
>>
>
>
>
>
> __________________________________________________________
> Enjoy this Diwali with Y! India Click here http://in.promos.yahoo.com/fabmall/index.html
>
>