def setup
@username = 'uid=cburt,o=PISCO,dc=ecoinformatics,dc=org'
@password = '7lobster'
@metacat = Metacat.new("http://data.piscoweb.org/catalog/metacat")
@squery = '<?xml version="1.0"?>
<pathquery version="1.2">
<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>
<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>
<returnfield>dataset/title</returnfield>
<returnfield>dataTable/entityName</returnfield>
<returnfield>creator/individualName/surName</returnfield>
<returnfield>creator/organizationName</returnfield>
<returnfield>dataTable/physical/distribution/online/url</returnfield>
<querygroup operator="INTERSECT">
<queryterm casesensitive="false" searchmode="starts-with">
<value>PISCO:</value>
<pathexpr>title</pathexpr>
</queryterm>
<querygroup operator="INTERSECT">
<queryterm casesensitive="true" searchmode="equals">
<value>Subtidal Community Survey Data</value>
<pathexpr>keywordSet/keyword</pathexpr>
</queryterm>
<queryterm casesensitive="true" searchmode="equals">
<value>PISCO Categories</value>
<pathexpr>keywordSet/keywordThesaurus</pathexpr>
</queryterm>
</querygroup>
</querygroup>
</pathquery>'
@data_table_docid = 'HMS001_020ADCP019R00_20060612.40.1'
@eml_docid = 'HMS001_020ADCP019R00_20060612.50.1'
@locked_docid = 'chad.1.1'
end