Re: [greenstone-users] adding images to null documents

From ruben pandolfi
DateFri, 26 Jan 2007 09:56:13 +0100
Subject Re: [greenstone-users] adding images to null documents
In-Reply-To (53432-130-217-244-2-1169774277-squirrel-webmail-scms-waikato-ac-nz)
Thank you Shaoqun,

{If}{[hascover],

Is working perfectly :-)

Ciao,

ruben

sw64@cs.waikato.ac.nz ha scritto:
> Hello Ruben,
>
> I am afraid that there is no way to do that without modifying c code, sorry.
>
> However, you can use the following statement to link to the cover images
> without using DocumentImage.
> {If}{[hascover],<img
> src="_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/cover.jpg">[Title]</img>}
>
> The [hascover] metadata is only set for the documents with a cover image.
>
> Regards
> Shaoqun
>
>> Thank you Shaoqun,
>>
>> I have downloaded new NULPlug, it works and now I have the following
>> code on every document:
>>
>>
>> <div class="heading_image">
>>
>> <img alt=""
>> onError="src='http://www02.unibg.it/~morin/gsdl/images/blank.gif'"
>> src="http://www02.unibg.it/~morin/gsdl/collect/babel3/index/assoc/HASHc39b.dir/cover.jpg">
>> </div>
>>
>>
>> the only problem is that I do not have cover image for every entry, and
>> do not want to have this extra code on every page.
>>
>> Is it possible to print the code only if an image is really present?
>>
>> I also tried [DocImage] to print the image url but no luck, alway empty.
>>
>> My aim is to use a condition like:
>>
>> {If}{[DocImage, ....
>>
>> is this possible?
>>
>> thank you,
>>
>> Ruben
>>
>>
>> sw64@cs.waikato.ac.nz ha scritto:
>>> Hello ruben,
>>>
>>> I have added the cover image support to NULPlug, you can get it from
>>> http://www.cs.waikato.ac.nz/~shaoqun, and replace the old on in
>>> GSDLHOME/perllib/plugins.
>>>
>>> I think that document number is actually the title metadata i.e.
>>> [Title],
>>> but, anyway, you don't need it anymore.
>>>
>>> Regards
>>> Shaoqun
>>>
>>>
>>>> I think I can make it works with:
>>>>
>>>> _httpprefix_/collect/[collection]/myimages/xxx.jpg
>>>>
>>>> but wich is the variable that print document number?
>>>>
>>>> I see it is printed in the window title , e.g. " 00000199 " for
>>>> 00000199.nul and have :
>>>>
>>>> <title>00000199</title>
>>>>
>>>> but no info about it in the wiki. ([DocOID] is a different number)
>>>>
>>>> I will call my images the same and use the document number to build
>>>> dynamic string and find come way to make display IF the image exists.
>>>>
>>>> Thank you
>>>>
>>>> ruben
>>>>
>>>>
>>>>
>>>> sw64@cs.waikato.ac.nz ha scritto:
>>>>> Hello ruben,
>>>>>
>>>>> Currently, NULPlug that propresses null files doesn't support cover
>>>>> images, but you still can put images somewhere in your collection and
>>>>> access them. For example, if your images is in
>>>>> collect/collect_name/myimages, they can be accessed by using
>>>>> _httpprefix_/collect/[collection]/myimages/xxx.jpg in a statement, in
>>>>> your
>>>>> case <img src="_httpprefix_/collect/[collection]/myimages/xxx.jpg">
>>>>>
>>>>> Regards
>>>>> Shaoqun
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I'm trying to associate an image cover to my bibliographical entries
>>>>>> extracted from cds/isis
>>>>>>
>>>>>> I have enabled
>>>>>>
>>>>>> format DocumentImages true
>>>>>>
>>>>>> in collect.cfg
>>>>>>
>>>>>> all plugins seems to be enabled by default as the options is only "no
>>>>>> cover image"
>>>>>>
>>>>>> Image are named exactly like the nul file, in the same folder, e.g.:
>>>>>>
>>>>>> folder1/00000118.nul
>>>>>> folder1/00000118.jpg
>>>>>>
>>>>>> Though I can not see any image output. Any ideas about it?
>>>>>>
>>>>>> Wich is the default path to reach images? I would like to keep all
>>>>>> the
>>>>>> images in one folder and then call them in my collect.cfg file in
>>>>>> this
>>>>>> way:
>>>>>>
>>>>>> <img src="pathtoimage">
>>>>>>
>>>>>> Thank you for your help guys,
>>>>>>
>>>>>> Ruben
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ..................
>>>>>> ..................
>>>>>>
>>>>>> Ruben Pandolfi
>>>>>>
>>>>>> -------------------------------------------------------------
>>>>>> "...I Think This is the Beginning of a Beautiful Friendship."
>>>>>> -------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> greenstone-users mailing list
>>>>>> greenstone-users@list.scms.waikato.ac.nz
>>>>>> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>>>>>>
>>>>>
>>>> --
>>>>
>>>> ..................
>>>> ..................
>>>>
>>>> Ruben Pandolfi
>>>>
>>>> -------------------------------------------------------------
>>>> "...I Think This is the Beginning of a Beautiful Friendship."
>>>> -------------------------------------------------------------
>>>>
>>>>
>>>
>>>
>>
>> --
>>
>> ..................
>> ..................
>>
>> Ruben Pandolfi
>>
>> -------------------------------------------------------------
>> "...I Think This is the Beginning of a Beautiful Friendship."
>> -------------------------------------------------------------
>>
>>
>
>
>


--

..................
..................

Ruben Pandolfi

-------------------------------------------------------------
"...I Think This is the Beginning of a Beautiful Friendship."
-------------------------------------------------------------