| Hi Chaitra
You can build a classifier on any metadata, but the value of that
metadata will be stored as Title metadata for any nodes in the classifier.
Have you actually tried to use the format statement with Title instead
of agr.CommodityName?
format CL3HList
" [link][highlight]{Or}{[Title],Untitled}[/highlight][/link]
By the way, AutoHierarchy is designed for hierarchical metadata - if
this is not what you have then an AZlist is probably better.
Regards,
Katherine
Chaitra Rao wrote:
> Hi Katherine,
> Thank you so much for the info. Is there any way in which I can make
> the classifier process arg.X metadata instead of [ex.Title]? When we set
> up the Auto Heirarchy classifier, we need to provide the metadata field. I
> have provided agr.X as the metadata for this classifier.
>
> The problem is that I need to use images instead of [Title] and I'm
> unable to do so. Is there something else I can do to achieve this? I hope
> the problem statement is clear enuf. Do let me know if I need to furnish
> more details.
>
> Regards,
> Chaitra
>
> On Wed, 16 Mar 2005, Katherine Don wrote:
>
>
>>Hi Chaitra
>>
>>Ah, I see your problem. If you are formatting a classifier node, then
>>the only metadata available is [Title] (or [ex.Title] which is the same
>>thing). If you have built eg AZList on agr.X metadata, then the agr.X
>>metadata is stored as the Title metadata for the node.
>>
>>Your HList format statement should use [ex.Title] instead of
>>[agr.CommodityName].
>>
>>Sorry, I should have noticed this in your last email.
>>
>>Regards,
>>Katherine
>>
>>Chaitra Rao wrote:
>>
>>>Hi,
>>> Would like to add that I also observed a strange thing today. When we
>>>use the Heirarchy classifier , the [agr.CommodityName] metadata does not
>>>hold the values assigned to them while the HTML pages are generated. The
>>>[ex.Title] metadata contains these values. I tried to display the values
>>>using the follwoing format statement
>>>
>>>format CL3HList
>>>" [link][highlight]{Or}{[agr.CommodityName],Untitled}[/highlight][/link]"
>>>
>>>The GS interface displays "untitled" instead of the [agr.CommodityName]
>>>value. Is this a bug ? How can this be fixed?
>>>
>>>I'm using gs v2.53.
>>>
>>>Regards,
>>>Chaitra
>>>
>>>On Tue, 15 Mar 2005, Chaitra Rao wrote:
>>>
>>>
>>>
>>>>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> <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
>>>>>>
>>>>>
>>>
>
> |