Changeset 2173 for TI07-MOLES/trunk


Ignore:
Timestamp:
15/02/07 15:17:04 (13 years ago)
Author:
ko23
Message:

Refactoring intermediate

Location:
TI07-MOLES/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/DublinCore/XQuery/NDG-DublinCore.xquery

    r2171 r2173  
    11import module namespace voclib='http://ndg.nerc.ac.uk/xquery/lib/vocab' at 'xmldb:exist:///db/xqueryLib/Vocabs/vocab_xquery_lib.xquery'; 
     2import module namespace utillib='http://ndg.nerc.ac.uk/xquery/lib/utilities' at 'xmldb:exist:///db/xqueryLib/Utilities/utility_xquery_lib.xquery'; 
    23declare default element namespace 'http://ndg.nerc.ac.uk/moles'; 
    34declare namespace xsi='http://www.w3.org/2001/XMLSchema-instance';  
     
    1819        element dc:title {string($DE/name)}, 
    1920        element dc:type {'Dataset'}, 
    20         element dc:identifier {concat($DE/dgMetadataID/repositoryIdentifier, ':DC:', $DE/dgMetadataID/localIdentifier)}, 
     21        element dc:identifier {concat($DE/moles:dgMetadataID/moles:repositoryIdentifier, $utillib:moles_id_separator, 'DC', $utillib:moles_id_separator, $DE/moles:dgMetadataID/moles:localIdentifier)}, 
    2122        element dc:description {string($DE/dgMetadataDescription/abstract/abstractText)}, 
    2223        element dc:date 
  • TI07-MOLES/trunk/ISO19115-19139/XQuery/NDG-ISO19115-139.xquery

    r2171 r2173  
    1414declare namespace xlink='http://www.w3.org/1999/xlink';  
    1515declare namespace xsi='http://www.w3.org/2001/XMLSchema-instance';  
    16 declare namespace f='http://ndg.nerc.ac.uk/moles/localfunctions'; 
    1716 
    1817for $DE in collection($targetCollection)/moles:dgMetadata/moles:dgMetadataRecord[ 
     
    2423element MD_Metadata {  
    2524        attribute xsi:schemaLocation {'http://www.isotc211.org/2005/gmd http://www.isotc211.org/2005/gmd/metadataEntity.xsd'}, 
    26         element fileIdentifier {element gco:CharacterString {concat($DE/moles:dgMetadataID/moles:repositoryIdentifier, ':ISO19115:', $DE/moles:dgMetadataID/moles:localIdentifier)}}, 
     25        element fileIdentifier {element gco:CharacterString {concat($DE/moles:dgMetadataID/moles:repositoryIdentifier, $utillib:moles_id_separator, 'ISO19115', $utillib:moles_id_separator, $DE/moles:dgMetadataID/moles:localIdentifier)}}, 
    2726        element language { 
    2827                element gmd:LanguageCode { 
  • TI07-MOLES/trunk/MDIP/XQueries/NDG-MDIP.xquery

    r2171 r2173  
    11import module namespace voclib='http://ndg.nerc.ac.uk/xquery/lib/vocab' at 'xmldb:exist:///db/xqueryLib/Vocabs/vocab_xquery_lib.xquery'; 
     2import module namespace utillib='http://ndg.nerc.ac.uk/xquery/lib/utilities' at 'xmldb:exist:///db/xqueryLib/Utilities/utility_xquery_lib.xquery'; 
    23declare default element namespace 'http://www.dassh.ac.uk'; 
    34declare namespace moles='http://ndg.nerc.ac.uk/moles'; 
Note: See TracChangeset for help on using the changeset viewer.