Re: [greenstone-users] Image display problem

From Richard Managh
DateMon, 09 Jan 2006 10:48:28 +1300
Subject Re: [greenstone-users] Image display problem
In-Reply-To (20060108145803-77084-qmail-web32202-mail-mud-yahoo-com)
Hi Jasmine,

I would suggest that instead of the following in the top of your
DocumentText format statement:

format DocumentText "<center><table width=pagewidth><img
src='/gsdl/collect/SCCCI/index/assoc/[assocfilepath]/[sc.AccessionNumber]'>

You substitute [Source] for [sc.AccessionNumber]

Which would give you:

format DocumentText "<center><table width=pagewidth><img
src='/gsdl/collect/SCCCI/index/assoc/[assocfilepath]/[Source]'>

This is because in your doc.xml file [sc.AccessionNumber] in the example
you sent, would evaluate to "49" when what you probably want is "49.jpg"

So, for your image, instead of: **

<img
src='/gsdl/collect/SCCCI/index/assoc/[assocfilepath]/[sc.AccessionNumber]'>

Which gives: <img
src='/gsdl/collect/SCCCI/index/assoc/*HASH0b7e.dir*/*49*'>


You would have: <img
src='/gsdl/collect/SCCCI/index/assoc/[assocfilepath]/[Source]'>

Which gives: <img
src='/gsdl/collect/SCCCI/index/assoc/*HASH0b7e.dir*/*49.jpg*'>


Hope this helps,


Richard.
--
DL Consulting
Greenstone Digital Library and Digitisation Specialists
contact&#64;dlconsulting.co.nz
www.dlconsulting.co.nz

Jasmine wrote:

> Hi,
> I had been figuring out how to solve the image display problem for
> days and still couldn't find where the fault lies. My image still
> could not appear. I looked into my doc.xml file and this is how it
> looks like
>
> * * <Metadata name="*gsdlsourcefilename*">*importGeneral Affairs
> CommitteeBefore 1982Celebrations, Ceremonies &
> Festivals49.jpg*</Metadata>
> * * <Metadata name="*gsdldoctype*">*indexed_doc*</Metadata>
> * * <Metadata name="*Plugin*">*ImagePlug*</Metadata>
> * * <Metadata name="*Image*">*49.jpg*</Metadata>
> * * <Metadata name="*Source*">*49.jpg*</Metadata>
> * * <Metadata name="*FileFormat*">*JPEG*</Metadata>
> * * <Metadata name="*FileSize*">*unknown*</Metadata>
> * * <Metadata name="*ImageType*">*JPEG*</Metadata>
> * * <Metadata name="*ImageWidth*">*1052*</Metadata>
> * * <Metadata name="*ImageHeight*">*1672*</Metadata>
> * * <Metadata name="*ImageSize*">*unknown*</Metadata>
> * * <Metadata name="*srclink*">*<a
> href="/gsdl/collect/gsarch/index/assoc/[assocfilepath]/[sc.AccessionNumber]">*</Metadata>
>
> * * <Metadata name="*/srclink*">*</a>*</Metadata>
> * * <Metadata name="*srcicon*">*<img
> src="/gsdl/collect/gsarch/index/assoc/[assocfilepath]/[sc.AccessionNumber]"
> width=100>*</Metadata>
> * * <Metadata name="*ThumbType*">*gif*</Metadata>
> * * <Metadata name="*Thumb*">*thumbnail.gif*</Metadata>
> * * <Metadata name="*thumbicon*">*<img
> src="/gsdl/collect/gsarch/index/assoc/[assocfilepath]/[Thumb]"
> width=[ThumbWidth] height=[ThumbHeight]>*</Metadata>
> * * <Metadata name="*ThumbWidth*">*63*</Metadata>
> * * <Metadata name="*ThumbHeight*">*100*</Metadata>
> * * <Metadata name="*sc.Keywords*">*General Affairs Committee*</Metadata>
> * * <Metadata name="*sc.Date*">*19640920*</Metadata>
> * * <Metadata name="*sc.Creator*">*Temasek Polytechnic, Information
> Management student*</Metadata>
> * * <Metadata name="*sc.AccessionNumber*">*49*</Metadata>
> * * <Metadata name="*sc.Organiser*">*SCCCI (General Affairs
> Committee)*</Metadata>
> * * <Metadata name="*sc.Categories*">*General Affairs Committee-Before
> 1982-Celebrations, Ceremonies & Festivals*</Metadata>
> * * <Metadata name="*sc.Notes*">*NA*</Metadata>
> * * <Metadata name="*Title*">*49*</Metadata>
> * * <Metadata name="*Identifier*">*HASH0b7e3412832ce54061a81e*</Metadata>
> * * <Metadata name="*assocfilepath*">*HASH0b7e.dir*</Metadata>
> * * <Metadata name="*gsdlassocfile*">*49.jpg:image/JPEG:*</Metadata>
> * * <Metadata
> name="*gsdlassocfile*">*thumbnail.gif:image/gif:*</Metadata>
> * * </Description>
> * * <Content>*This document has no text.*</Content>
>
>
> and this is what my collect.cfg file look like for the format feature:
>
> format DateList "<td>[link][icon][/link]</td>
> <td>[highlight]{Or}{[dls.Title],[dc.Title],[ex.Title],Untitled}[/highlight]</td>
> <td>[ex.Date]</td>"
>
> format HList "[link][highlight][ex.Title][/highlight][/link]"
> format DocumentButtons ""
>
> format VList "<td valign=top>[link][thumbicon][/link]</td>
> <td valign=top><b> Event Title: </b>[sc.Title]<br> <b> Date of Event:
> </b>[sc.Date]<br><b> Description: </b>[sc.Description]</td>
> "
> format DocumentHeading ""
>
> format DocumentText "<center><table width=pagewidth><img
> src='/gsdl/collect/SCCCI/index/assoc/[assocfilepath]/[sc.AccessionNumber]'>
> <tr><td><br><b>Event Title: </b>[sc.Title]
> <br><b>Date of Event: </b>[sc.Date]<br><b>Description:
> </b>[sc.Description]
> <br><b>Event Organiser: </b>[sc.Organiser]
> <br><b>Notes: </b>[sc.Notes]</td></tr></table></center>"
>
>
> Thank you, i will be looking forward to the reply.
>
> Best Regards,
> Jasmine
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> New and Improved Yahoo! Mail
> <http://us.rd.yahoo.com/yma/tgl/def/*http://sg.whatsnew.mail.yahoo.com>
> - 1GB free storage!
>
>------------------------------------------------------------------------
>
>_______________________________________________
>greenstone-users mailing list
>greenstone-users@list.scms.waikato.ac.nz
>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>