44 | | This proposal would see !GeoNetwork use parser from the JODA time library for this purpose as JODA is generally considered to be the most comprehensive time library for Java. The parsing and conversion step is done by a call to Java objects that use the JODA library when preparing the Lucene Document for indexing (index-fields.xsl). |
| 57 | {{{ |
| 58 | <gmd:temporalElement> |
| 59 | <gmd:EX_TemporalExtent> |
| 60 | <gmd:extent> |
| 61 | <gml:TimePeriod xmlns="http://www.isotc211.org/2005/gmd" gml:id="TemporalExtent"> |
| 62 | <!-- |
| 63 | 1) Use indeterminate position to specify the beginning of the extent as "now" |
| 64 | 2) Use -P3D to specify a period of 3 days (minus means subtract from the other extent) - so its 3 days before now |
| 65 | --> |
| 66 | <gml:beginPosition>2000-01-01<gml:beginPosition/> |
| 67 | <gml:endPosition indeterminatePosition="now"> |
| 68 | </gml:TimePeriod> |
| 69 | </gmd:extent> |
| 70 | </gmd:EX_TemporalExtent> |
| 71 | </gmd:temporalElement> |
| 72 | }}} |
| 73 | |
| 74 | Note that the second example above uses an indeterminatePosition to specify one end of the extent - indeterminate extents yet to be supported. |
| 75 | |
| 76 | Temporal extents supported: |
| 77 | |
| 78 | * begin: most any date format supported by JODA eg. ISO datetime, ISO date, some other forms of date, plus indeterminateposition="now" |
| 79 | * end: same as begin but also any GML time period eg. P3D (or even a negative period) as above |
| 80 | |
| 81 | This proposal would see !GeoNetwork use the parser from the JODA time library for this purpose as JODA is generally considered to be the most comprehensive time library for Java. The parsing and conversion step is done by a call to Java objects that use the JODA library when preparing the Lucene Document for indexing (index-fields.xsl). |
| 82 | |
| 83 | Proposal also includes hide/show for some advanced search fields to reduce size of the form. |