[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reply to: [list | sender only]
Re: enumeration values
- Subject: Re: enumeration values
- From: Richard Gildea <rgildea@xxxxxxxxx>
- Date: Mon, 7 Jun 2010 12:15:37 +0100
- In-Reply-To: <8F77913624F7524AACD2A92EAF3BFA54165DF33805@SJMEMXMBS11.stjude.sjcrh.local>
- References: <AANLkTil-uCJIT-Rg_07zc3FTtY3ln8FMiOvAhcsGWAPq@mail.gmail.com><AANLkTikX0ngj8MfE7vAQ9gfN59oILZGtAgaNS1mLwR9M@mail.gmail.com><8F77913624F7524AACD2A92EAF3BFA54165DF33805@SJMEMXMBS11.stjude.sjcrh.local>
I'm not sure that the problem is restricted only to DDL1 dictionaries, it looks like the same problem would exist with a DDL2 dictionary also.
It seems to me that this could be resolved relatively simply by the addition of an extra item added to the DDL to indicate whether the given enumeration choices can be combined in *any order*. Obviously for this to be the case it should only apply to one character codes. It should be easy for a validator to then loop through every character in the value to be validated, and check that each character is a valid choice. It should also check that each code is used only once.
Such a DDL item could be something such as _enumeration_combine or _enumeration_permute (or DDL2 equivalent), which itself has permitted values of 'yes' and 'no' (the default). Adding an extra item like this shouldn't break, or change the behaviour of, older validators, whilst allowing up to date validators to validate these concatenated values correctly.
I think you are probably correct regarding the case sensitivity issue - it would probably be best to (or at least have an option to) treat case sensitive mismatches as warnings instead of errors.
Thanks,
Richard
_______________________________________________ cif-developers mailing list cif-developers@iucr.org http://scripts.iucr.org/mailman/listinfo/cif-developers
Reply to: [list | sender only]
- Follow-Ups:
- RE: enumeration values (Bollinger, John C)
- References:
- enumeration values (Richard Gildea)
- RE: enumeration values (Bollinger, John C)
- Prev by Date: RE: enumeration values
- Next by Date: RE: enumeration values
- Prev by thread: RE: enumeration values
- Next by thread: RE: enumeration values
- Index(es):