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

From Chaitra Rao
DateTue, 15 Mar 2005 10:41:57 +0530 (IST)
Subject Re: [greenstone-users] Using images instead of text
In-Reply-To (4236334E-4090602-cs-waikato-ac-nz)
Thanx Katherine. I tried debugging the problem as suggested by you. I
found the following lines in the page source corresponding to the images

<td>&nbsp;&nbsp;&nbsp;<a
href="/gsdl/cgi-bin/library.exe?e=d-000-00---0cropdise--00-0-0--0prompt-10---4------0-1l--1-en%5fUS-50---20-about---00031-001-1-0utfZz-8-00&a=d&cl=CL2.5"><img
src='/gsdl/images/.jpg'></a></td>

For some reason, the metadata tags are not being replaced by the
[agr.CommodityName] values. However, if I mention the name explicitly e.g
Banana.jpg, etc, the images appear. Is something missing somewhere?

Another thing, the latest gsdl installation(gs v2.53) is in a folder
called gs-new; /gsdl is the alias for this directory. Could this be
the problem?

Regards,
Chaitra

On Tue, 15 Mar 2005, Katherine Don wrote:

> Hi Chaitra
>
> Is the HList format statement being used? If you look at the page
> source, do you have <img src=....> tags for each item in the horizontal
> list?
> What appears on the display? do you get broken images, or do you still
> get the text appearing?
>
> If you get broken images, have a look at the image link (open link in a
> new window) and you should be able to see why the images are not
> working. maybe the names are wrong, or you haven't put them into the
> correct directory.
> For example, do you need <img src='/gsdl/web/images/[agr.CommodityName].gif'>??
>
> Regards,
> Katherine Don
>
> Chaitra Rao wrote:
> > 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
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>
> >>>
> >>>
> >>>
> >>
> >
> >
> > _______________________________________________
> > greenstone-users mailing list
> > greenstone-users@list.scms.waikato.ac.nz
> > https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
> >
>