Changeset 2259 for TI01-discovery


Ignore:
Timestamp:
12/03/07 16:59:44 (13 years ago)
Author:
mpritcha
Message:

Fixed filter by scope by using voclib:spot-vocab

File:
1 edited

Legend:

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

    r2257 r2259  
    531531        public static String xqueryStrTemplate =  
    532532"xquery version \"1.0\"; \n"+ 
     533"import module namespace voclib=\"http://ndg.nerc.ac.uk/xquery/lib/vocab\" at \"xmldb:exist:///db/xqueryLib/Vocabs/vocab_xquery_lib.xquery\"; \n"+ 
    533534"declare namespace sql=\"http://exist-db.org/xquery/sql\"; \n"+ 
    534535"declare namespace moles=\"http://ndg.nerc.ac.uk/moles\"; \n"+ 
     
    580581"       let $name := string-join( ($coll , $thisdoc), '/' ) \n"+ 
    581582"       let $molesdoc := document( $name ) \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"+ 
     583"        where document($name)/moles:dgMetadata/moles:dgMetadataRecord/moles:dgStructuredKeyword[moles:dgValidTerm &= local:getScope() and voclib:spot-vocab($voclib:ndg_data_provider_vocab, moles:dgValidTermID/moles:ParentListID)] \n"+ 
    583584"      return $i \n"+ 
    584585"   ) \n"+ 
Note: See TracChangeset for help on using the changeset viewer.