[Silva-general] lowercase language field in the metadata
kit BLAKE
kitblake at gmail.com
Thu Mar 29 13:14:40 CEST 2007
2007/3/29, Luthiger Stoll Benno <benno.luthiger at id.ethz.ch>:
> Dear Kit
> > It could be that some users have set the language field in the metadata.
> > In Silva 1.6 the language codes have been changed to lowercase to
> > conform with the standard. If you have pages using the old uppercase
> > letters, you may get an error in the properties screen. You'll need to
> > change the setting in a specific series of steps. Please mail the list
> > for a detailed explanation.
> As far as I can see, this change happened to Silva 1.5.10 too, and yes, we encounter
> the difficulties you announced.
> What specific series of steps do you suggest?
It depends on how many pages are affected. If it's just a couple,
there's a manual way to fix the problem, but if it's many an upgrade
script should be used (also you'd be certain that you got all of
them).
Here's the manual way. In the ZMI, go to the metadata service and edit
the language field. That would be:
[yourSilva]/service_metadata/collection/silva-extra/language/field/manage_main
In the "Items" field, find the language which is listed in the error,
perhaps German:
German | de
Add another one next to it with capitals:
GermanTemp | DE
Then "Save changes".
Now you won't get an error in the properties screen, and you can
change the language from GermanTemp to proper German. Afterwards you
should delete the GermanTemp of course.
We will include the upgrade code in the next release, as that field is
more in use than we thought. If there are many pages and the problem
needs to be solved immediately we can send you a script. Or you can
check the code out of the trunk later to test (testing which would be
appreciated :-))
Kit
--
Kit BLAKE · Infrae · http://infrae.com/ + 31 10 243 7051
Hoevestraat 10 · 3033 GC · Rotterdam + The Netherlands
Contact = http://xri.net/=kitblake
More information about the Silva-general
mailing list