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

From Tomáš Fiala
DateThu, 04 Jan 2007 10:52:14 +0100
Subject Re: [greenstone-users] - Maximum number of thumbnails shown per page - old books - image collection -
In-Reply-To (459B0A48-30704-dlconsulting-co-nz)
Hello Richard,

Richard Managh wrote :
> 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.
>
I will divide the book in more levels. It is easy and quick solution for
someone who doesn't know how to
write c++ code.

>
>> 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.
>
I put this format statement in VLIST <a
href=_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[ex.Image]
target="_blank"/> and it seems to be working.

>
>> 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 *http://tinyurl.com/yzoyrd*

>
>
>> 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.
>

This seems to work fine for me <td
valign=top>{If}{[numleafdocs],[link][icon] {Or}
{[dls.Title],[ex.Title],[/link],[dc.Title],Untitled}[/link],
[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td> It also
hides the icon to dummy text.
>
> Hopefully this gives you a starting point.
>
> Richard.
>
> --
> DL Consulting
> Greenstone Digital Library and Digitisation Specialists
> contact@dlconsulting.com
> www.dlconsulting.com
>
Many thanks for your help !

Sincerely,

Tomas
>
>