Changeset 1800 for TI07-MOLES/trunk/DIF


Ignore:
Timestamp:
04/12/06 13:48:19 (13 years ago)
Author:
ko23
Message:

Change d2b to operate "per discovery record"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/DIF/XQuery/DIF2MOLES.xquery

    r1799 r1800  
     1(: Version for one DIF per dgMetadata instance :) 
    12(: Note algoritm for creating non-pre-existing organisations :) 
    23 (: dgPersons are not created as one can't tell automatically which are people and which are orgs, and orgs are simpler :)   
     
    1718declare variable $input_repository_local as xs:string {'Input_Repository_Code_LocalID'}; 
    1819 
    19 element dgMetadata { 
    2020for $DIF in collection($input_collection)/dif:DIF[dif:Entry_ID='NOCSDAT100'] 
    2121return 
     22element dgMetadata { 
    2223        element dgMetadataRecord { 
    2324                element dgMetadataID { 
     
    187188                else () 
    188189        } (: </dgMetadataRecord>:), 
    189         for $creator in distinct-values(collection($input_collection)/dif:DIF/dif:Data_Set_Citation/dif:Dataset_Creator | dif:Originating_Center) 
     190        for $creator in distinct-values($DIF/(dif:Data_Set_Citation/dif:Dataset_Creator | dif:Originating_Center)) 
    190191        return 
    191192                element dgOrganisation { 
Note: See TracChangeset for help on using the changeset viewer.