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

From Richard Managh
DateFri, 05 Jan 2007 08:02:22 +1300
Subject Re: [greenstone-users] - Maximum number of thumbnails shown per page - old books - image collection -
In-Reply-To (459CCE4E-7050003-ulib-sk)
Hi Tomas,

Yes, PagedImgPlug would provide you with previous and next navigation links, but still no "go to page number" functionality.

It is possible to do this with javascript (i.e. without modifying greenstones c++ and/or perl code) but you might have to put javascript data structures (i.e. arrays) of book information into a macro file with the valid page ranges of each book. So it wouldn't be "automatic" in the way that PagedImgPlug provides those navigation links.

You would add a "go to page number" form to macros so that it would display where you want it, and it would have to know what book it is currently working on, and the valid page numbers it can go to, with a mapping between user entered page numbers and those pages greenstone OIDs - so the javascript can send the browser to the right page. i.e. arrays containing mappings similar to the following:

page -> OID

1       -> HASHecd552ed3c2d5f1f6a620f.1
2       -> HASHecd552ed3c2d5f1f6a620f.2


This might be a very complex and clunky solution to implement but it is still possible i think.

DL Consulting
Greenstone Digital Library and Digitisation Specialists

               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.
This seems to be a bigger problem for me. What about using pagedimage plug for it ? Like **