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 (*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