Re: [greenstone-users] switching between small and large images in PagedImgPlug

From Katherine Don
DateFri, 14 May 2004 17:03:56 +1200
Subject Re: [greenstone-users] switching between small and large images in PagedImgPlug
In-Reply-To (D3909DE84BABBB4C8C793EBC67ED9D3A0A0A74B5-exchange2-drexel-edu)
Hi Ian

Thank you for pointing out the mistakes in my PagedImgPlug description.
I have fixed them now for the next release.

The problem with the format statement (I have just discovered) is that
you need double quotes around the items in the test in the If statement.
So change the bits
...
to
...

and it should work.

about refers to the cgi argument p - which is set in the link:
<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-about-Amin+Hedjazi--00-0-1-00-0--4----0-0-11-10-0utfZz-8-00&a=d&d=40A4533C-4030406-cs-waikato-ac-nz&p=small>

Regards,
Katherine Don

Richmond,Ian wrote:
> I am using Greenstone 2.50 with pagedImgPlug
>
> I have been trying to make the second suggested Document Text format example in the pagedImagePlug work, but have had no success; it reloads with the same srcicon image. Here is the original from the PagedImgPlug.pm:
>
> # format DocumentText "<center><table width=537><tr><td><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-about-Amin+Hedjazi--00-0-1-00-0--4----0-0-11-10-0utfZz-8-00&a=d&d=40A4533C-4030406-cs-waikato-ac-nz&p=small>Switch to small version.</a></td></tr><tr><td><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-about-Amin+Hedjazi--00-0-1-00-0--4----0-0-11-10-0utfZz-8-00&a=d&d=40A4533C-4030406-cs-waikato-ac-nz&p=small title=Switch to small version>[srcicon]</a>'about' eq 'full',<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-about-Amin+Hedjazi--00-0-1-00-0--4----0-0-11-10-0utfZz-8-00&a=d&d=40A4533C-4030406-cs-waikato-ac-nz&p=small' title='Switch to small version'>[srcicon]</a>,<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-about-Amin+Hedjazi--00-0-1-00-0--4----0-0-11-10-0utfZz-8-00&a=d&d=40A4533C-4030406-cs-waikato-ac-nz&p=full' title='Switch to fullsize version'>[screenicon]</a>)</td></tr></table></center>
>
> I have "fixed" the 2nd title="Switch to fullsize version' to:title='Switch to fullsize version' and added a closing ) to the second If statement.
>
> All I get is the "Switch to small version" showing no matter how many times I click on it.
> The URL of the link to switch is:
> http://n2-128-247.dhcp.drexel.edu/gsdl?e=d-0-00-whywomen--00-0-0--0prompt-10---4------0-1l--1-en-50---20-small---00031-001-1-0utfZz-8-00&a=d&d=189&p=small
>
> I am not even quite sure which macro I am referring to with the about variable.
> I can display either the [srcicon] or the [screenicon] images successfully with the simple version:
> <center><table width=537><tr><td>[srcicon]</td></tr></table></center>
> So I think my problem is in the if statements somewhere.
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>