Re: [greenstone-users] custom metadata and related images

From Tod Olson
DateWed, 07 Apr 2004 18:52:46 -0500
Subject Re: [greenstone-users] custom metadata and related images
In-Reply-To (20040407172201F-tao-uchicago-edu)
>>>>> "TO" == Tod Olson <tao@uchicago.edu> writes:

>>>>> "KD" == Katherine Don <kjdon@cs.waikato.ac.nz> writes:
KD> There is an entry in the FAQ about how to add new images
KD> (http://www.greenstone.org/cgi-bin/library?e=p-en-faq-utfZz-8&a=p&p=faqbuild#32)
KD> A quick look at it doesn't show up anything you have missed, but
KD> you may like to look through to make sure.

TO> I've double-checked, looks like all of the macros are defined.

TO> I've also tried assigning a -buttonname for one of the default images
TO> that is otherwise unused in this collection:

TO> classify Hierarchy -metadata MusicGenre -buttonname Topic
TO> -hfile genre.txt -sort TitleIdx

TO> Still no images or unresolved macros in the HTML, just this mysterious
TO> "de" string.

Breakthrough: the Hierarchy classifier triggers the problem! Using
the current custom macros with the Hierarchy classifier results in
no buttons. This definition:

classify Hierarchy -metadata MusicGenre -hfile genre.txt -sort TitleIdx

produces HTML with no image. Here are the title, green navbar, and
"button" navbar HTML fragments:

<td align=right><h2>de</h2></td>

de [<-- between green spacer images]

<a href="/cgi-bin/library?e=p-000-00---0choptest--00-0-0-0prompt-10---4------0-1l--1-en-50---20-about---00031-001-1-0utfZz-8-00&a=d&cl=CL3">de</a>


Rebuilding the collection using the AZCompact, the custom images are
perfect. From collect.cfg:

classify AZCompactList -metadata MusicGenre

Here are the title, green navbar, and "button" navbar HTML fragments:

<td align=right><img src="/gsdl/images/h_genr.gif" width=200

<img
src="/gsdl/images/tgenrgr.gif" width=87 border=0>

<a href="/cgi-bin/library?e=p-000-00---0choptest--00-0-0-0prompt-10---4------0-1l--1-en-50---20-about---00031-001-1-0utfZz-8-00&a=d&cl=CL3" onMouseover="roll('musicgenre',1);" onMouseOut="roll('musicgenre',0);"><img
name="musicgenre" src="/gsdl/images/tgenrof.gif" onLoad="gbutton(this,'/gsdl/images/tgenron.gif');" border=0 alt="Browse by genre" title="Browse by genre"></a>


Any ideas on how the Hierarchy classifer could be tanking the custom
metadata stuff? Maybe some lingering code from a previous version
(2.40a)? Suggestions for what to try next?

-Tod

Tod A. Olson <tod@uchicago.edu> "How do you know I'm mad?" said Alice.
Sr. Programmer / Analyst "If you weren't mad, you wouldn't have
The University of Chicago Library come here," said the Cat.