Re: [greenstone-users] Re: Searches in GS 2.70

From Katherine Don
DateFri, 14 Jul 2006 17:01:20 +1200
Subject Re: [greenstone-users] Re: Searches in GS 2.70
In-Reply-To (11934605-1152724671853-JavaMail-ngmail-webmail-07-arcor-online-net)
Hi Volker

> I've some new questions.
>
> 1. To use the "maxnumeric"-option I've
> edit the config file. But If I rebuild the library out of the GLI a new file is created and my additions are deletet. Can I insert this out of the librarian? I checked all the design entries, but found no option.
>
You need to make sure that the collection is not open in the GLI when
you are editing the collect.cfg file, otherwise, as you have found out,
it overwrites it.

> 2. Very strange is the following point. I use the vmr.Date field of the metadata for latin numbers (centuries). They are displayed by the following line:
>
> {If}{[vmr.Date],
> <tr>
> <td align=right valign=top><b>Date:</b></td>
> <td align=left valign=bottom><a href=/gsdlmod?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-preferences-Diego+Spano--00-0-1-00-0--4----0-0-11-10-0utfZz-8-00&a=q&h=dv0&b=0&t=0&s=0&q=[vmr.Date]>
> [vmr.Date]</a> [vmr.DiffrentDating]</td>
> </tr>}
>
> With 4 entries I got 4 results:
>
> vmr.Date = X : No result, no line appears
> vmr.Date = III/IV : Just the first "III/" shown
> vmr.Date = IV-V : all the line is shown + diffrent dating
> vmr.Date = IV : No result, no line appears
>
> Is there a configuration for this line, I've to do?
>
Greenstone has some "useful" features like formatting dates nicely for
you. If the date is e.g. 20060504 it will display like 4 May 2006.
This is very helpful until you get a different date format like you
have, when it totally stops working.
One thing you can do is to rename your metadata to be something other
than Date.
Or you could edit the code if you don't want to rename the metadata.
In greenstone/src/recpt/formattools.cpp, find the
text_t format_date (const text_t &date) {
function and add
return date;
as the first line in the function.
Then you'll need to recompile.

Hope this helps,
Regards,
Katherine