Re: [greenstone-users] custom macros, extra.dm, and php

From John Thompson
DateWed, 03 Jan 2007 15:24:03 +1300
Subject Re: [greenstone-users] custom macros, extra.dm, and php
In-Reply-To (BAY120-F42883B86407FBADE9AC76C9B90-phx-gbl)
Hi Anson,

Aside from the IFrame idea, you could also try having PHP include()
Greenstone URLs:

<?php
...
include('http://url_to_your_greenstone_page?and=arguments');
...
?>

You'll have to be careful to ensure the contents of the returned pages
are valid PHP too, to ensure they are processed correctly.

Alternatively you could try chaining two Apache servers together, where
one acts as a proxy to process the PHP code returned by the other (which
runs Greenstone).

Cheers,
John

DL Consulting
Greenstone Digital Library and Digitisation Specialists
contact@dlconsulting.com
www.dlconsulting.com

Anson Parker wrote:
> Hi Richard,
>
> What'd you have for breakfast??? You rock!
>
> btw I'm going to find a way to get this done without iframes, there's
> gotta be a way, and it'll make customizing greenstone a lot more
> attractive. That's my toughest pitch with clients, not whether it
> works or not, rather how it looks while it's working... everyone acts
> like they care about standards, however many librarians don't really
> appreciate what standards mean and only care about whether their site
> achieves their desired aesthetics and blends in with the rest of their
> site.... ah well, It's well worth it, thank you very much for all your
> help,
> Anson
>
>
> From: Richard Managh <richard@dlconsulting.co.nz>
> Reply-To: greenstone-users@list.scms.waikato.ac.nz
> To: Tomáš Fiala <tomas.fiala@ulib.sk>
> CC: greenstone-users@list.scms.waikato.ac.nz
> Subject: Re: [greenstone-users] - Maximum number of thumbnails shown
> per page- old books - image collection -
> Date: Wed, 03 Jan 2007 14:43:36 +1300
>
> Hi Tomáš,
>
>
> Tomáš Fiala wrote:
> > Hello everyone,
> >
> > I am creating an image collection of old books
> > (*http://tinyurl.com/ykb7qj*). Some of the books have more than 600
> > pages in .jpg, when I'm browsing the collection more then 600
> > thumbnails are shown per one page.
> >
> > Please could someone help me how to :
> >
> > 1. limit the number of thumbnails per page ?
>
> There are a number of ways you could limit the number of thumbnails per
> page. One way would be to create a more complex hierarchy for each book
> i.e. with more levels: perhaps dividing the books into frontmatter,
> chapters, and back matter. You can see examples of books being divided
> in this way at www.ulukau.org.
>
> For example:
>
>
> http://ulukau.org/elib/cgi-bin/library?a=p&p=frameset&c=census00&cl=&d=D0.4&l=en
>
>
> This is a printed book that is divided into different sections using
> greenstone: covers, frontmatter, chapters and backmatter. The books
> contain text and images in pdf form instead of in your case images, but
> the concept is the same.
>
> Another way would be to display perhaps 10 or 20 thumbnails at a time,
> but I can't immediately think of a way to do that without modifying some
> of the c++ code in greenstone.
>
> >
> > 2. make the picture opens in new window after clicking on the
> > thumbnail icon ?
> >
> This is a simple matter of adding a target="_blank" attribute to the
> html "a" tag, you will need to modify the relevant format statement to
> do this.
>
> > OR
> > 3. make the picture opens in Greenstone background with the option -
> > previous ; next ; go to "number" page ?
> >
> I think this would require customisation of Greenstone's c++ code, or
> perhaps some very clever javascript. But the javascript would have to
> know how many pages there are in a book. Perhaps if you divided the
> pages of books into groups of 10 in the heirarchy it wouldnt be too hard
> to add links to the page to browse from one display of 10 pages to the
> next. But then you need to work out somehow (perhaps using javascript)
> what the links to the last set of pages and to the next set of pages
> are. For example, if you browsed to the first set of 10 pages, how would
> you determine that there is no link to go back to the previous ten pages
> (because there aren't any previous pages)? A problem that it is possible
> to deal with, but maybe not as elegant as dividing the book up as its
> author already has.
>
>
> > 4. make that the metadata text (near bookshelf) contains the same link
> > as the bookshelf ?
> >
> You can do this by modifying the relevant format statement for your
> displayed hierarchy.
>
>
> Hopefully this gives you a starting point.
>
> Richard.
>
> --
> DL Consulting
> Greenstone Digital Library and Digitisation Specialists
> contact@dlconsulting.com
> www.dlconsulting.com
>
>
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
> _________________________________________________________________
> Fixing up the home? Live Search can help
> http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmemailtaglinenov06&FORM=WLMTAG
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>