1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- XMLReplay tests of advanced search in CollectionObject records -->
5 <!-- IMPORTANT: THESE ARE STICKY :: THEY STICK AROUND UNTIL RESET, IN EXEC ORDER OF THIS FILE. -->
6 <auth ID="admin@testsci.collectionspace.org">YWRtaW5AdGVzdHNjaS5jb2xsZWN0aW9uc3BhY2Uub3JnOkFkbWluaXN0cmF0b3I=</auth>
9 <testGroup ID="advSearchCommonSchema" autoDeletePOSTS="true">
10 <!-- Create a new CollectionObject record with a common part. -->
11 <test ID="co1" auth="admin@testsci.collectionspace.org">
13 <uri>/cspace-services/collectionobjects/</uri>
14 <filename>collectionobject/co1.xml</filename>
16 <!-- Advanced search for CollectionObject records matching the -->
17 <!-- expected text within a single field in the common part. -->
18 <test ID="co1advsearch">
20 <uri>/cspace-services/collectionobjects?as=collectionobjects_common%3AobjectNumber%3D'6.0221415'</uri>
22 <expected level="TEXT" />
23 <label>abstract-common-list</label>
24 <filename>collectionobject/res/co1-adv-search-testsci.res.xml</filename>
29 <testGroup ID="advSearchExtensionSchema" autoDeletePOSTS="true">
30 <!-- Create a new CollectionObject record with an extension schema part -->
31 <test ID="co2" auth="admin@testsci.collectionspace.org">
33 <uri>/cspace-services/collectionobjects/</uri>
34 <filename>collectionobject/co2.xml</filename>
36 <!-- Verify that the record contains an expected field value -->
37 <!-- in the extension schema part -->
40 <uri>/cspace-services/collectionobjects/${co2.CSID}</uri>
42 <expected level="TEXT" />
43 <label>collectionobjects_naturalhistory</label>
44 <filename>collectionobject/res/co2.res.xml</filename>
47 <!-- Advanced search for CollectionObject records matching the -->
48 <!-- expected text within a single field in the extension schema part. -->
49 <test ID="co2advsearch">
51 <uri>/cspace-services/collectionobjects?as=collectionobjects_testsci%3AfieldLocVerbatim%3D'jlmbsoqjlmbsoq'</uri>
53 <expected level="TEXT" />
54 <label>abstract-common-list</label>
55 <filename>collectionobject/res/co2-adv-search-testsci.res.xml</filename>