Changeset 4996 for ndgCommon


Ignore:
Timestamp:
18/02/09 16:27:48 (10 years ago)
Author:
cbyrom
Message:

Fix xquery to remove illegal character, return localID string for
replacing + add full links to referenced xquery libs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ndgCommon/trunk/ndg/common/xmldb/xquery/moles2mdip.xq

    r4793 r4996  
    1 (: Create an MDIP record for moles documents in /misc/humid1/cbyrom/eclipseWorkspace/ingestAutomation-upgrade2/OAIBatch/data/badc/discovery/moles/ that have badc.nerc.ac.uk and test_file2 :) 
    2 import module namespace voclib='http://ndg.nerc.ac.uk/xquery/lib/vocab' at 'vocab_xquery_lib.xquery'; 
    3 import module namespace utillib='http://ndg.nerc.ac.uk/xquery/lib/utilities' at 'utility_xquery_lib.xquery'; 
     1(: This xquery for TargetCollection RepositoryID and LocalID will find and convert Moles to MDIP format :) 
     2import module namespace voclib='http://ndg.nerc.ac.uk/xquery/lib/vocab' at 'xmldb:exist:///db/xqueryLib/Vocabs/vocab_xquery_lib.xquery'; 
     3import module namespace utillib='http://ndg.nerc.ac.uk/xquery/lib/utilities' at 'xmldb:exist:///db/xqueryLib/Utilities/utility_xquery_lib.xquery'; 
    44 
    55declare default element namespace 'http://www.oceannet.org/mdip/xml'; 
     
    1212declare variable $targetCollection as xs:string := 'TargetCollection'; 
    1313declare variable $repositoryIdentifier as xs:string := 'RepositoryID'; 
    14 declare variable $localIdentifier as xs:string := 'BGSSEA412'; 
     14declare variable $localIdentifier as xs:string := 'LocalID'; 
    1515 
    1616declare variable $ISO_639-2_ns as xs:string := $voclib:ISO_639-2_ns; 
Note: See TracChangeset for help on using the changeset viewer.