Re: [greenstone-users] Display Multiple Values, ThumbIcon

From Katherine Don
DateWed, 26 Nov 2003 11:02:14 +1300
Subject Re: [greenstone-users] Display Multiple Values, ThumbIcon
In-Reply-To (009401c3b07d$ce2d9440$0101a8c0-pavilion)
hi Joel

1. Greenstone is bad at handling multiple values for metadata - i.e. it doesn't. This is something we have been intending to add, but haven't yet :-( which doesn't help you much.
The way we have got around this in the past is to edit the plugins that are being used, to make an extra metadata field - eg in your case, have dc.Subject and perhaps dc.Subjects, which has all the subject values appended together separated by <br>.

2. Your version of greenstone has a bug in ImagePlug - have a look through the code - its in gsdl/perllib/plugins/ImagePlug.pm, and find where it assigns the thumbicon metadata.

$doc_obj->add_metadata ($section, "thumbicon", "<img src=/gsdl/collect/gsarch/index/assoc/[assocfilepath]/[Thumb] width=[ThumbWidth] height=[ThumbHeight>");

There is a missing ] at the end of ThumbHeight. Add that in and reimport and build the collection.

Hope this helps
Katherine Don
Joel Abrams wrote:

Hello all, I'm using Greenstone with my MLS class on Digital Libraries at Simmons College in Boston.  We're putting together a sample digital library, and I've got two questions that I can't seem to get answers in the docs for: 1) How does one display multiple values for a metadata field?  IE, we've got documents that have more than one value of DC.Subject, and I'd like to display all the values, with a <br> in between. 2) When using [ThumbIcon] to display the thumbnail, there is no "height" value going into the <IMG> tag that is generated.  It just goes to "height=" and then doesn't even provide a right-bracket.  The thumbnails are being generated with ImagePlug. We're using v 2.40 on a Linux installation. Thanks for any help,Joel

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