Ignore:
Timestamp:
11/02/08 09:59:51 (12 years ago)
Author:
lawrence
Message:

BrowseServer? removed from xquery. Bug fix in listing query?

File:
1 edited

Legend:

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

    r3182 r3361  
    22main aim should be to produce DIF documents from MOLES for NDG participants. 
    33Key parameters to be changed when used in anger are 
    4  TargetCollection, Repository ID, LocalID, BrowseServer :) 
     4 TargetCollection, Repository ID, LocalID :) 
    55 
    66import module namespace voclib='http://ndg.nerc.ac.uk/xquery/lib/vocab' at 'xmldb:exist:///db/xqueryLib/Vocabs/vocab_xquery_lib.xquery'; 
     
    1515declare variable $repositoryIdentifier as xs:string {'RepositoryID'}; 
    1616declare variable $localIdentifier as xs:string {'LocalID'}; 
    17 declare variable $browseServer as xs:string {'BrowseServer'}; 
    1817(: Keep 
    1918declare variable $targetCollection as xs:string {'/db/ndg_B_metadata'}; 
    2019declare variable $repositoryIdentifier as xs:string {'badc.nerc.ac.uk'}; 
    2120declare variable $localIdentifier as xs:string {'dataent_CIRA'}; 
    22 declare variable $browseServer as xs:string {'ndgbeta.badc.rl.ac.uk'}; 
    2321:) 
    2422for $DE in collection($targetCollection)/moles:dgMetadata/moles:dgMetadataRecord[ 
     
    253251        element Reference {''}, 
    254252        element Summary {string($DE/moles:dgMetadataDescription/moles:abstract/moles:abstractText)}, 
    255         element Related_URL  { 
    256             element URL_Content_Type {'VIEW_EXTENDED_METADATA'}, 
    257             element URL {concat($browseServer,'/view/',data($DE/moles:dgMetadataID/moles:repositoryIdentifier),'__NDG-B1__', 
    258             data($DE/moles:dgMetadataID/moles:localIdentifier))}, 
    259             element Description {'A NERC DataGrid MOLES record is available at this URL.'} 
    260             }, 
    261253        for $DG in $DE/moles:dgDataEntity/moles:dgDataGranule 
    262254            (: BNL need to make sure we have a function for doing related URLs :) 
Note: See TracChangeset for help on using the changeset viewer.