Re: [greenstone-users] Image display problem

From Lenneth Valkyrie
DateMon, 9 Jan 2006 20:14:46 +0800 (CST)
Subject Re: [greenstone-users] Image display problem
In-Reply-To (43C188AC-9030400-dlconsulting-co-nz)
Hi Richard,
 
Thank you so much, i finally understand what is the problem now and my image appeared ^_^. I have a another question, is it possible to resize the image using greenstone instead of having to use other image editing software to resize the image?
 
Regards,
Jasmine

Richard Managh <richard@dlconsulting.co.nz> wrote:
Hi Jasmine,

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

format DocumentText "
src='/gsdl/collect/SCCCI/index/assoc/[assocfilepath]/[sc.AccessionNumber]'>

You substitute [Source] for [sc.AccessionNumber]

Which would give you:

format DocumentText "
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: **

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

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


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

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


Hope this helps,


Richard.
--
DL Consulting
Greenstone Digital Library and Digitisation Specialists
contact@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
>
> * * *importGeneral Affairs
> CommitteeBefore 1982Celebrations, Ceremonies &
> Festivals49.jpg*

> * * *indexed_doc*
> * * *ImagePlug*
> * * *49.jpg*
> * * *49.jpg*
> * * *JPEG*
> * * *unknown*
> * * *JPEG*
> * * *1052*
> * * *1672*
> * * *unknown*
> * * *> href="/gsdl/collect/gsarch/index/assoc/[assocfilepath]/[sc.AccessionNumber]">*
>
> * * *
*
> * * *> src="/gsdl/collect/gsarch/index/assoc/[assocfilepath]/[sc.AccessionNumber]"
> width=100>*

> * * *gif*
> * * *thumbnail.gif*
> * * *> src="/gsdl/collect/gsarch/index/assoc/[assocfilepath]/[Thumb]"
> width=[ThumbWidth] height=[ThumbHeight]>*

> * * *63*
> * * *100*
> * * *General Affairs Committee*
> * * *19640920*
> * * *Temasek Polytechnic, Information
> Management student*

> * * *49*
> * * *SCCCI (General Affairs
> Committee)*

> * * *General Affairs Committee-Before
> 1982-Celebrations, Ceremonies & Festivals*

> * * *NA*
> * * *49*
> * * *HASH0b7e3412832ce54061a81e*
> * * *HASH0b7e.dir*
> * * *49.jpg:image/JPEG:*
> * * > name="*gsdlassocfile*">*thumbnail.gif:image/gif:*
> * *
> * * *This document has no text.*
>
>
> and this is what my collect.cfg file look like for the format feature:
>
> format DateList "
>
> "
>
> format HList "[link][highlight][ex.Title][/highlight][/link]"
> format DocumentButtons ""
>
> format VList "
>
> "
> format DocumentHeading ""
>
> format DocumentText "
[link][icon][/link][highlight]{Or}{[dls.Title],[dc.Title],[ex.Title],Untitled}[/highlight][ex.Date][link][thumbicon][/link]Event Title: [sc.Title]
Date of Event:
>
[sc.Date]
Description: [sc.Description]
> src='/gsdl/collect/SCCCI/index/assoc/[assocfilepath]/[sc.AccessionNumber]'>
>

Event Title: [sc.Title]
>
Date of Event: [sc.Date]
Description:
>
[sc.Description]
>
Event Organiser: [sc.Organiser]
>
Notes: [sc.Notes]
"
>
>
> Thank you, i will be looking forward to the reply.
>
> Best Regards,
> Jasmine
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> New and Improved Yahoo! Mail
>
> - 1GB free storage!
>
>------------------------------------------------------------------------
>
>_______________________________________________
>greenstone-users mailing list
>greenstone-users@list.scms.waikato.ac.nz
>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>



Do you Yahoo!?
New and Improved Yahoo! Mail - 1GB free storage!