Re: [greenstone-users] Attach external file to an image

From Katherine Don
DateMon, 07 Mar 2005 11:53:04 +1300
Subject Re: [greenstone-users] Attach external file to an image
In-Reply-To (Pine-LNX-4-44-0503041056360-14689-100000-fornax-it-iitb-ac-in)
Hi Chaitra

As I understand it, you want to have some images in your collection, and
from the image document page you want to link to an html page, within
greenstone. And you want the html page to be searchable too.
(If this is not what you are trying to do, please explain in more detail.)

Heres an example of how you can achieve this.

Add an image to your collection. Add metadata to the image specifying
the url of the html page (the metadata must include http://...)
download the html page using a mirroring software (eg, wget, or use the
download pane in GLI). Put the html page into the collection, preserving
the directory structure (i.e. the full url of the file is captured in
the directory hierarchy, but without the http:// part)

set the flag -file_is_url for HTMLPlug.

then in the DocumentText format statement (for the image page), you can use
<a href="/gsdlmod?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-preferences-Tran--00-0-1-00-0--4----0-0-11-10-0utfZz-8-00&a=extlink&rl=1&href=[metadata you specified the url
in]">xxx</a>
to make a link to the html page - clicking it will take you to the
greenstone version of the page.

I hope this helps,
Katherine Don

Chaitra Rao wrote:
> Hi,
> I was succesfully able to use Iframes within the greenstone interface
> to display an external HTML file. However, I am unable to search the
> content of this HTML page although it's been specified as a metadata to
> the image being included in the collection. Can someone help me with this?
>
> Thanx!
>
> Regards,
> Chaitra
>
> On Thu, 20 Jan 2005, Michael Dewsnip wrote:
>
>
>>Hi,
>>
>>
>>>I would like to know if it is possible to display the contents of an
>>>external HTML page which contains some data relating to the image,within
>>>greenstone's browser interface and not as an external link?
>>>
>>>
>
> I don't think this is possible, unless maybe you do something weird with
> frames? If you want HTML pages to be displayed within the Greenstone
> interface then I think you will have to have them processed by
> Greenstone.
>
> Regards,
>
> Michael
>
>
>>
>>>>Hi,
>>>>
>>>>You can do this by editing the format statement for your classifier.
>>>>Instead of something like
>>>>
>>>> [link][thumbicon][/link]
>>>>
>>>>(which displays the thumbnail icon with a link to the Greenstone
>>>>document for that image), specify the link to your external file:
>>>>
>>>> <a href="...">[thumbicon]</a>
>>>>
>>>>Regards,
>>>>
>>>>Michael
>>>>
>>>>
>>>>
>>>>Chaitra Rao wrote:
>>>>
>>>>
>>>>
>>>>
>>>>>Hi,
>>>>> Can someone tell me if I can display the contents of an external file
>>>>>when I click an image in an image collection(similar to the image
>>>>>demo example on the nzdl site).
>>>>>
>>>>>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
>>>
>>>
>>>
>>
>
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>