Re: [greenstone-users] - Maximum number of thumbnails shown per page - old books - image collection -

From Richard Managh
DateWed, 03 Jan 2007 14:43:36 +1300
Subject Re: [greenstone-users] - Maximum number of thumbnails shown per page - old books - image collection -
In-Reply-To (459A3AA8-60200-ulib-sk)
Hi Tomá?,

Tomá? Fiala wrote:
Hello everyone,

I am creating an image collection of old books (**).  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

For example:

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.

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.


DL Consulting
Greenstone Digital Library and Digitisation Specialists