Re: [greenstone-users] Using images instead of text

From Chaitra Rao
DateMon, 14 Mar 2005 15:09:19 +0530 (IST)
Subject Re: [greenstone-users] Using images instead of text
In-Reply-To (4234DB76-7010204-cs-waikato-ac-nz)
Thanx Michael. I used the format statement as you'd suggested. But the
metadata in the heirarchy file is in marathi(an indian Language) and I've
used a different metadata set (agr.mds- for the agricultural domain). I've
used the AutoHeirarchy classisfier and have used agr.CommodityName(these
values are in marathi) as metadata for this classifier. I tried using the
following format:

format HList "[link][highlight]<img
src=/gsdl/web/images/[agr.CommodityName]>[/highlight][/link]"

But I'm not able to see any images. I'd also tried using [ex.Image] but
I'm not able to view the images :(

Is it because of unicode values ? Is there something else I can do? I need
to use thumbnails of general categories(such as vegetables, cereals etc)on
top.


The new metadata set(agr.mds) file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MetadataSet [

<!-- The outer tag of any metadata set. Contains some number of
elements. -->
<!-- @param creator The name of the entity resposibly for this set.
-->
<!-- @param contact A contact address for the creator.
-->
<!-- @param description A description of this metadata set.
-->
<!-- @param family The namespace of this metadata set.
-->
<!-- @param lastchanged The full date, user name and machine name of the
last editor. -->
<!-- uses the form:
-->
<!-- Day Mon(th) dd hh:mm:ss yyyy '-' <username> on <machine>
-->
<!-- @param name The name of this metadata set.
-->
<!-- @param namespace The abbreviated namespace of this metadata set.
-->
<!ELEMENT MetadataSet (Element+)>
<!ATTLIST MetadataSet
contact CDATA #REQUIRED
creator CDATA #REQUIRED
description CDATA #REQUIRED
family CDATA #REQUIRED
lastchanged CDATA #REQUIRED
name CDATA #REQUIRED
namespace CDATA #REQUIRED>

<!-- An element in the metadata set. -->
<!ELEMENT Element (Attribute*,OptionList?,AssignedValues?)>
<!ATTLIST Element
name CDATA #REQUIRED
occurances CDATA "0">

<!-- Each element has several attribute children. -->
<!ELEMENT Attribute (#PCDATA)>
<!ATTLIST Attribute
name CDATA #REQUIRED>

<!-- For listing predefined values for this element. -->
<!ELEMENT OptionList (Value+)>
<!ATTLIST OptionList
restricted (true|false) "false">

<!-- Each element also contains a tree of values that have been assigned
to it. This may include a multilayer nested subject hierachy. -->
<!ELEMENT AssignedValues (Subject+)>

<!-- A value. -->
<!ELEMENT Subject (Value|Alias?|Subject*)>
<!ELEMENT Value (#PCDATA)>
<!ATTLIST Value
occurances CDATA "1">
<!ELEMENT Alias (#PCDATA)>
]>
<MetadataSet creator="The Greenstone Librarian Interface"
lastchanged="Thursday March 10 2005 11:23:49 - ChaitraB on chaitra"
namespace="agr">
<Name language="en">Metadata set for Agriculture domain</Name>
<Element name="CommodityName">
<Attribute language="en"
name="identifier">CommodityName</Attribute>
</Element>
<Element name="DiseaseName">
<Attribute language="en" name="identifier">DiseaseName</Attribute>
</Element>
<Element name="CausativeFactors">
<Attribute language="en"
name="identifier">CausativeFactors</Attribute>
</Element>
<Element name="Symptoms">
<Attribute language="en" name="identifier">Symptoms</Attribute>
</Element>
<Element name="PredisposableFactors">
<Attribute language="en"
name="identifier">PredisposableFactors</Attribute>
</Element>
<Element name="Prevention">
<Attribute language="en" name="identifier">Prevention</Attribute>
</Element>
<Element name="ControlMeasures">
<Attribute language="en"
name="identifier">ControlMeasures</Attribute>
</Element>
<Element name="GeneraInfo">
<Attribute language="en" name="identifier">GeneraInfo</Attribute>
</Element>
<Element name="Organic/NaturalControl">
<Attribute language="en"
name="identifier">Organic/NaturalControl</Attribute>
</Element>
</MetadataSet>

Please help!

Regards,
Chaitra

On Mon, 14 Mar 2005, Michael Dewsnip wrote:

> Hi,
>
> You can use format statements to do what you want -- you need to change
> the HList format statement rather than VList. If your hierarchy metadata
> values contain the name of the image to display, and you've put the
> images in Greenstone's "images" directory, something like:
>
> format HList "[link][highlight]<img
> src=/gsdl/web/images/[Title]>[/highlight][/link]"
>
> should get you started. (If you only want to apply this to the x-th
> classifier, use format CLxHList instead).
>
> Regards,
>
> Michael
>
>
>
> Chaitra Rao wrote:
>
> >Sorry... I guess its best to describe what I was attempting...
> >
> >I have built a collection of images and have used the Heirarchy classifier
> >with the hlist_at_top option. Now, this displays the text from the
> >heirarchy text file as hyperlinks on the top part of the interface. My
> >question is, is it possible to have images instead of this text?
> >
> >
> >Regards,
> >Chaitra
> >
> >On Fri, 4 Mar 2005, Michael Dewsnip wrote:
> >
> >
> >
> >>Hi,
> >>
> >>I don't quite understand what you mean -- do you mean linking between
> >>Greenstone documents?
> >>
> >>Regards,
> >>
> >>Michael
> >>
> >>
> >>
> >>Chaitra Rao wrote:
> >>
> >>
> >>
> >>>Hi,
> >>> I wanted to know if its possible to use hyperlinked image icons instead
> >>>of text to link to documents within greenstone?
> >>>
> >>>Regards,
> >>>Chaitra
> >>>
> >>>
> >>>
> >>>_______________________________________________
> >>>greenstone-users mailing list
> >>>greenstone-users@list.scms.waikato.ac.nz
> >>>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
> >>>
> >>>
> >>>
> >>>
> >>>
> >
> >
> >
> >
>