Changeset 2197
- Timestamp:
- 21/02/07 12:40:22 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI01-discovery/trunk/ws-Discovery2/src/ndg/services/discovery/SearchAgent.java
r2106 r2197 559 559 " let $s_result := ( \n"+ 560 560 " for $j in $result/sql:row/id/text() \n"+ 561 " return <document>{$j}</document>\n"+561 " return $j \n"+ 562 562 " ) \n"+ 563 563 " return $s_result \n"+ … … 567 567 " let $result := __subst_term__ \n"+ 568 568 " for $i in $result \n"+ 569 " return <document>{util:document-name($i)}</document>\n"+569 " return util:document-name($i) \n"+ 570 570 "}; \n"+ 571 571 "declare function local:mergeResults($arg1 as item()*, $arg2 as item()*) as item()* { \n"+ 572 " for $i in $arg1[. /text()=$arg2/text()] \n"+573 " return <document>{$i/text()}</document>\n"+572 " for $i in $arg1[.=$arg2] \n"+ 573 " return $i \n"+ 574 574 "}; \n"+ 575 575 "declare function local:filterByScope($arg1 as item()*) as item()* { \n"+ … … 577 577 " for $i in $arg1 \n"+ 578 578 " let $coll := '/db/discovery/moles' \n"+ 579 " let $thisdoc := $i /text()\n"+579 " let $thisdoc := $i \n"+ 580 580 " let $name := string-join( ($coll , $thisdoc), '/' ) \n"+ 581 581 " let $molesdoc := document( $name ) \n"+ … … 590 590 " for $i in $arg1 \n"+ 591 591 " let $coll := '/db/discovery/moles' \n"+ 592 " let $thisdoc := $i /text()\n"+592 " let $thisdoc := $i \n"+ 593 593 " let $name := string-join( ($coll , $thisdoc), '/' ) \n"+ 594 594 " order by document($name)/dgMetadata/dgMetadataRecord/dgDataEntity/dgDataSummary/dgDataCoverage/dgTemporalCoverage/DateRange/DateRangeStart descending \n"+ … … 598 598 " for $i in $arg1 \n"+ 599 599 " let $coll := '/db/discovery/moles' \n"+ 600 " let $thisdoc := $i /text()\n"+600 " let $thisdoc := $i \n"+ 601 601 " let $name := string-join( ($coll , $thisdoc), '/' ) \n"+ 602 602 " order by document($name)/dgMetadata/dgMetadataRecord/dgDataEntity/dgDataSummary/dgDataCoverage/dgTemporalCoverage/DateRange/DateRangeStart ascending \n"+ … … 641 641 "}; \n"+ 642 642 "for $i in local:buildResult() \n"+ 643 "return $i\n";643 "return <document>{$i}</document> \n"; 644 644 645 645 }
Note: See TracChangeset
for help on using the changeset viewer.