[greenstone-users] chronological sorting and thumbnail resizing

From Katherine Don
DateSat Apr 4 08:47:03 2009
Subject [greenstone-users] chronological sorting and thumbnail resizing
In-Reply-To (ef4e00ea6d8b2be1bfd418b4bd77a352-squirrel-mail-amtelecom-net)
Hi Michael

To have a classifier sorted overall by Date, use DateList. To have one
grouped by another element then the bookshelves sorted by date, add
-sort dc.Date option to the classifier.
You can use [format:dc.Date] instead of [dc.Date] to display the date

Re thumbnails, do you mean you have an image that is a vertical image,
so its appearing narrower than the others?
In our code we use the option -geometry widthxheight, where we set both
width and height to the thumbnailsize option given to the plugin. A
quick check on google
shows that you can specify just the width or height. i.e. -geometry width

So try editing perllib/plugins/ImageConverter.pm, look for the
create_thumbnail method, and find the following lines:

# Generate the thumbnail with convert
my ($result,$thumbnailfile)
= $self->convert($original_file, $thumbnailtype, "-geometry
$thumbnailsize" . "x$thumbnailsize", "THUMB");

Remove the xthumbnailsize bit:

# Generate the thumbnail with convert
my ($result,$thumbnailfile)
= $self->convert($original_file, $thumbnailtype, "-geometry
$thumbnailsize", "THUMB");

And rebuild.

Does this work? I haven't got image magick at home so can't try it out.

Michael Manchester wrote:
> Hello:
> Despite some effort to resolve these two questions using online resources,
> I cannot determine the proper procedure and was hoping someone could help.
> First, I have two browsing classifiers containing images and want to sort
> them by the date metadata. The dates were added in dc.Date using yyyymmdd
> format (ie. 19890113) but they are not appearing in chronological order.
> Of course, even if they appeared by date I would want it displayed in a
> more conventional manner (ie. January 13, 1989). How do I accomplish this.
> Second, I would like to resize a vertical thumbnail to match the width of
> two other horizontal thumbnails.
> Can anyone explain or point me to a specific resource that would be able
> to answer these two issues.
> Thank you for any assistance.
> Michael Manchester
> Ontario, Canada
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users