Hi Francois,
I was unaware of the "null" option in Boolean. I thought it was either '0',
'1', 'true' or 'false'. 'false' would be not pass rather than 'null'.
Thanks.
John
-----Original Message-----
From: geonetwork-devel-bounces@lists.sourceforge.net
[mailto:geonetwork-devel-bounces@lists.sourceforge.net] On
Behalf Of Francois-Xavier Prunayre
Sent: Tuesday, 2 September 2008 7:21 PM
To: geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] gco:Boolean form control
Hi all, when editing gco:Boolean in GeoNetwork we don't have any
specific form control. Here is a patch to add a combobox with null,
true, false options for all gco:Boolean elements. Checkbox
could not be
use because valid values for xsi:boolean are 0, 1, true,
false and null.
I'm using it mainly for data quality, conformance result option to set
if test was valid/failed or not pass (null).
If this is useful, I could apply the patch.
Ciao.
Francois
Hi John you're right for the null (even if in GeoNetwork you could set
boolean to null but it's not valid for XSD).
As mentionned by Pierre on this list, "not pass" will be set using
gco:nilReason.
<gmd:result><gmd:DQ_ConformanceResult>...<gmd:pass><gco:Boolean>true</gco:Boolean></gmd:pass>
</gmd:DQ_ConformanceResult></gmd:result>
<gmd:result><gmd:DQ_ConformanceResult>...<gmd:pass><gco:Boolean>false</gco:Boolean></gmd:pass>
</gmd:DQ_ConformanceResult></gmd:result>
<gmd:result gco:nilReason="inapplicable"/>
Thanks.
Francois
On ven, 2008-09-12 at 12:59 +1000, John.Hockaday@anonymised.com wrote:
Hi Francois,
I was unaware of the "null" option in Boolean. I thought it was either '0',
'1', 'true' or 'false'. 'false' would be not pass rather than 'null'.
Thanks.
John
> -----Original Message-----
> From: geonetwork-devel-bounces@lists.sourceforge.net
> [mailto:geonetwork-devel-bounces@lists.sourceforge.net] On
> Behalf Of Francois-Xavier Prunayre
> Sent: Tuesday, 2 September 2008 7:21 PM
> To: geonetwork-devel@lists.sourceforge.net
> Subject: [GeoNetwork-devel] gco:Boolean form control
>
>
> Hi all, when editing gco:Boolean in GeoNetwork we don't have any
> specific form control. Here is a patch to add a combobox with null,
> true, false options for all gco:Boolean elements. Checkbox
> could not be
> use because valid values for xsi:boolean are 0, 1, true,
> false and null.
>
> I'm using it mainly for data quality, conformance result option to set
> if test was valid/failed or not pass (null).
>
> If this is useful, I could apply the patch.
>
> Ciao.
>
> Francois
>