Re: [greenstone-users] First page of the document as the icon link

From Katherine Don
DateTue, 27 Jun 2006 09:10:01 +1200
Subject Re: [greenstone-users] First page of the document as the icon link
In-Reply-To (3F17EC9A8CCEAA408C8CCBE42B6785D9012C260D-sndc01-central-saniline-com)

That looks fine.
One thing I forgot to ask in the last email was how are you processing
your PDF documents? This will only work if you have converted to images.
If you are converting to html then it won't work, as there won't be an
image for the first page, and also you may not even have sections.

You can check in the archive files (greenstone/collect/xxx/archives)
what metadata you have.

Another way of doing this would be to manually save the first page of
the PDF as a JPEG image, give it the same name as the document, and use
the cover image mechanism.

E.g. for book1.pdf you'd save an image as book1.jpg. This would get
associated with the PDF file as a cover image (cover.jpg). The
[DocImage] format element is a link to the cover image.
So you could use eg
[srclink]<img src="[DocImage]" height="40"/>[/srclink]

Hope this helps,

Dep.Gesti?n Documental wrote:
> Hi,
> I guess I should write this sequence, by only changing the xxxx by the name of my collection. Is this right? It doesn't work. What am I writing incorrectly?
> <td valign="top">[link][icon][/link]</td>
> <td valign="top">[ex.srclink]<img
> src='/gsdl/collect/xxxx/index/assoc/[assocfilepath]/[child(first):Image]'
> height='60' width='40'/>[ex./srclink]</td>
> <td valign="top">[highlight]
> {Or}{[dls.Title],[dc.Title],[ex.Title],Untitled}
> [/highlight]{If}{[ex.Source],<br><i>([ex.Source])</i>}</td>
> Thanks!
> Blanca
> -----Mensaje original-----
> De: Katherine Don []
> Enviado el: viernes, 23 de junio de 2006 7:33
> Para: Dep.Gesti?n Documental
> CC: Greenstone-users (E-mail)
> Asunto: Re: [greenstone-users] First page of the document as the icon
> link
> Hi
> In your SearchVList format statement, try e.g.
> [srclink][child(first):srcicon][/srclink]
> (will display full size)
> or [srclink]<img
> src='/gsdl/collect/[collection]/index/assoc/[assocfilepath]/[child(first):Image]'
> height='60' width='40'/>[/srclink]
> (will display specified size)
> Regards,
> Katherine
> Dep.Gesti?n Documental wrote:
>>Dear friends,
>>When you are in the results page, how can you see the image of the first page of the document, instead of the pdf icon? As well, this image of the first page would be the link to the whole pdf document.
>>Thank you very much!
>>Blanca Muyo Redondo
>>Documentalista- Departamento de Operaciones
>>Fructu?s Gelabert 2-4 08970 Sant Joan Desp?
>>Barcelona (Spain) - Saniline -
>>Tel. +34 93 477 62 60 Fax +34 93 477 62 40
>>Mail: ; Web:
>>greenstone-users mailing list