[greenstone-devel] Re: [greenstone-users] Calculations in Format Statement and Date format

From Ata ur Rehman
DateThu, 4 Jan 2007 09:19:24 +0500
Subject [greenstone-devel] Re: [greenstone-users] Calculations in Format Statement and Date format
In-Reply-To (44586-130-217-244-2-1167866969-squirrel-webmail-scms-waikato-ac-nz)
Dear Shaoqun
Thanks for resp. Its I am surprised to know that.... I dont know even abc of perl :( . Any other solution?

On 1/4/07, sw64@cs.waikato.ac.nz <sw64@cs.waikato.ac.nz> wrote:
Hello Ata,

Sorry, there is no easy to accomplish those two tasks in Greentone. You
either need to modify the perl code (I can help you if you want to
proceed) or could try using Javascript.


> I have a format string having the following code which displays the size
> of
> a file.  But this size is in bytes and I want to display it in Kilo Bytes
> or
> Mega Bytes. How can i do that?
> {if}{[FileSize],File Size: [FileSize] bytes}
> Means i want to display [FileSize] / 1024 for kilo bytes and
> [FileSize]/1024/1024 for Mega Bytes.  Any idea.  Similarly I have a meta
> field dc.Date having dates in format yyyymmdd and i want to display only
> years how can i format this date to extract only years from [dc.Date] ?
> Regards,
> Ata ur Rehman,
> Librarian,
> Akhter Hameed Khan Resource Center (AHKRC),
> NRSP-Institute of Rural Management,
> F-6/4, Islamabad
> Ph: +92 51 2822752
>       +92 51 2822792
> http://www.irm.edu.pk/

> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users