Changeset 4866 for exist


Ignore:
Timestamp:
28/01/09 11:19:05 (10 years ago)
Author:
sdonegan
Message:

Problem with extracting daterange data - now fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/xquery/moles2mdip.xq

    r4864 r4866  
    113113             if ($DE//moles:dgTemporalCoverage/(moles:DateSingle | moles:DateRange/moles:DateRangeStart) != '') then 
    114114                element DatasetStartDate { 
    115                     let $dateStart:=min($DE//moles:dgTemporalCoverage/(moles:DateSingle | moles:DateRange/moles:DateRangeStart)) 
     115                    let $dateStart:=($DE//moles:dgTemporalCoverage/(moles:DateSingle | moles:DateRange/moles:DateRangeStart)) 
    116116                    return  
    117117                        if (empty($dateStart)) then ()  
     
    123123            if ($DE//moles:dgTemporalCoverage/(moles:DateSingle | moles:DateRange/moles:DateRangeEnd) != '') then 
    124124                element DatasetEndDate{ 
    125                   let $dateEnd:=max($DE//moles:dgTemporalCoverage/(moles:DateSingle | moles:DateRange/moles:DateRangeEnd)) 
     125                  let $dateEnd:=($DE//moles:dgTemporalCoverage/(moles:DateSingle | moles:DateRange/moles:DateRangeEnd)) 
    126126                  return 
    127127                    if (empty($dateEnd)) then ()  
Note: See TracChangeset for help on using the changeset viewer.