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

From sw64@cs.waikato.ac.nz
DateThu, 4 Jan 2007 12:29:29 +1300 (NZDT)
Subject Re: [greenstone-users] Calculations in Format Statement and Date format
In-Reply-To (c387a3b60701030210s3fbd7be5jbcd7cda9c31c8144-mail-gmail-com)
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.

Regards
Shaoqun

> 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
>