Changeset 3224 for exist


Ignore:
Timestamp:
15/01/08 22:42:46 (12 years ago)
Author:
selatham
Message:

date bug fixes. Allowed extended metadata URLs as dc:identifier

File:
1 edited

Legend:

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

    r3118 r3224  
    2828for $identifiers in $DE/(dgMetadataDescription/descriptionSection/descriptionOnlineReference | abstract/abstractOnlineReference)[ 
    2929exists(dgReferenceClass/dgValidTermID/ParentListID) 
     30(:and 
     31#voclib:spot-vocab($voclib:ndg_online_reference_classes_vocab, dgReferenceClass/dgValidTermID/ParentListID) 
     32:) 
    3033and 
    31 voclib:spot-vocab($voclib:ndg_online_reference_classes_vocab, dgReferenceClass/dgValidTermID/ParentListID)  
    32 and 
    33 dgReferenceClass/dgValidTerm='DataPage'] 
     34(dgReferenceClass/dgValidTerm='DataPage' or dgReferenceClass/dgValidTerm='extended metadata') ] 
    3435return element dc:identifier {data($identifiers/dgSimpleLink/URI)}, 
    3536element dc:description {string($DE/dgMetadataDescription/abstract/abstractText)}, 
     
    3839if (exists($DE/(dgMetadataProvenance | DataProvenance)/RecordUpdate/UpdateDate)) then 
    3940for $updatedate in ($DE/(dgMetadataProvenance | DataProvenance)/RecordUpdate/UpdateDate) 
    40 order by xs:date($updatedate) 
     41order by xs:dateTime($updatedate) 
    4142return data($updatedate[1]) 
    4243else 
Note: See TracChangeset for help on using the changeset viewer.