Bug #3137
closedThe query example in metacatquery.html document need to be changed
0%
Description
Here is the example in that page:
The Pathquery Document
<pathquery version="1.0">
<meta_file_id>unspecified</meta_file_id>
<querytitle>unspecified</querytitle>
<returnfield>resource/dataset/originator/individualName/surName</returnfield>
<returnfield>resource/dataset/originator/individualName/givenName</returnfield>
<returnfield>resource/dataset/keywordInfo/keyword</returnfield>
<returndoctype></returndoctype>
<querygroup operator="UNION">
<queryterm casesensitive="false" searchmode="contains">
<value>%</value>
</queryterm>
<queryterm casesensitive="false" searchmode="contains">
<value>-//NCEAS//resource//EN</value>
<pathexpr>returndoc</pathexpr>
</queryterm>
<queryterm casesensitive="false" searchmode="contains">
<value>-//NCEAS//eml-dataset//EN</value>
<pathexpr>returndoc</pathexpr>
</queryterm>
</querygroup>
</pathquery>
This query make no sense to user. We need another one which query eml documents.
Updated by Jing Tao over 16 years ago
Change to another query:
<pathquery version="1.0">
<meta_file_id>unspecified</meta_file_id>
<querytitle>unspecified</querytitle>
<returnfield>dataset/title</returnfield>
<returnfield>keyword</returnfield>
<returnfield>originator/individualName/surName</returnfield>
<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>
<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>
<querygroup operator="UNION">
<queryterm casesensitive="false" searchmode="contains">
<value>Plant</value>
<pathexpr>dataset/title</pathexpr>
</queryterm>
<queryterm casesensitive="false" searchmode="contains">
<value>plant</value>
<pathexpr>keyword</pathexpr>
</queryterm>
</querygroup>
</pathquery>