Changeset 2106 for TI01-discovery/trunk


Ignore:
Timestamp:
05/02/07 12:03:11 (13 years ago)
Author:
mpritcha
Message:

Fixed namespace problem with filterByScope function in xquery.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/trunk/ws-Discovery2/src/ndg/services/discovery/SearchAgent.java

    r1812 r2106  
    532532"xquery version \"1.0\"; \n"+ 
    533533"declare namespace sql=\"http://exist-db.org/xquery/sql\"; \n"+ 
     534"declare namespace moles=\"http://ndg.nerc.ac.uk/moles\"; \n"+ 
    534535"declare function local:getScope() as xs:string { \n"+ 
    535536"   \"__subst_scope__\" \n"+ 
     
    579580"       let $name := string-join( ($coll , $thisdoc), '/' ) \n"+ 
    580581"       let $molesdoc := document( $name ) \n"+ 
    581 "        where document($name)//dgStructuredKeyword/dgValidTerm[. &= local:getScope()] \n"+ 
     582"        where document($name)/moles:dgMetadata/moles:dgMetadataRecord/moles:dgStructuredKeyword[moles:dgValidTerm &= local:getScope() and moles:dgValidTermID/moles:ParentListID='http://vocab.ndg.nerc.ac.uk/term/N010/0'] \n"+ 
    582583"      return $i \n"+ 
    583584"   ) \n"+ 
Note: See TracChangeset for help on using the changeset viewer.