Re: gco:Boolean form control [SEC=UNCLASSIFIED]

View: New views
2 Messages — Rating Filter:   Alert me  

Re: gco:Boolean form control [SEC=UNCLASSIFIED]

by John.Hockaday :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
> [mailto:geonetwork-devel-bounces@...] On
> Behalf Of Francois-Xavier Prunayre
> Sent: Tuesday, 2 September 2008 7:21 PM
> To: geonetwork-devel@...
> 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
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@...
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Re: gco:Boolean form control [SEC=UNCLASSIFIED]

by Francois-Xavier Prunayre-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@... 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@...
> > [mailto:geonetwork-devel-bounces@...] On
> > Behalf Of Francois-Xavier Prunayre
> > Sent: Tuesday, 2 September 2008 7:21 PM
> > To: geonetwork-devel@...
> > 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
> >



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@...
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
LightInTheBox - Buy quality products at wholesale price!