/** This method may be called from a test case, using a syntax like ${oe9.reqValue("personauthorities_common","//shortIdentifier")} */\r
public String sent(String xpath) throws Exception {\r
try {\r
- String source = this.requestPayloadsRaw;\r
+ String source = this.requestPayload; // REM - 5/9/2012 : Changing to requestPayload from requestPayloadsRaw to get actual sent payload \r
if (source == null){\r
return "ERROR:null:requestPayloadsRaw";\r
}\r
start = cursor;\r
\r
Expression expr = jexl.createExpression(var);\r
- Object resultObj = expr.evaluate(jc);\r
+ Object resultObj = expr.evaluate(jc); //REM - 5/9/2011 - Usually calls back to fields and methods in ServiceResult class to do the evaluation -e.g., the "got" method.\r
String resultStr;\r
if (null == resultObj){\r
//debug: System.out.println("null found while evaluationg variable: '"+var+"' Jexl context: "+dumpContext(jc));\r
<document name="locations">
<ns2:locations_common xmlns:ns2="http://collectionspace.org/services/location" xmlns:ns3="http://collectionspace.org/services/jaxb">
<shortIdentifier>${shortIdentifier}</shortIdentifier>
- <!-- <refName>urn:cspace:org.collectionspace.demo:locationauthority:name(${authShortIdentifier}):location:name(${shortIdentifier})</refName> -->
- <termStatus>Approved</termStatus>
- <displayNameComputed>true</displayNameComputed>
- <shortDisplayNameComputed>false</shortDisplayNameComputed>
- <name>${name}</name>
+ <refName>urn:cspace:core.collectionspace.org:locationauthorities:name(${authShortIdentifier}):item:name(${shortIdentifier})'${name}'</refName>
+
+ <locTermGroupList>
+ <locTermGroup>
+ <termPrefForLang>false</termPrefForLang>
+ <termName>${name}</termName>
+ <termDisplayName>${name}</termDisplayName>
+ <termType/>
+ <termSource/>
+ <termStatus>Approved</termStatus>
+ <termQualifier/>
+ <termSourceID/>
+ <termSourceDetail/>
+ <termSourceNote/>
+ <termLanguage/>
+ </locTermGroup>
+ </locTermGroupList>
+
<conditionGroupList>
<conditionGroup>
<conditionNote>Basically clean</conditionNote>
<!-- <inAuthority>${inAuthority}</inAuthority>\r
<shortIdentifier>${shortIdentifier}</shortIdentifier>\r
<refName>urn:cspace:org.collectionspace.demo:locationauthority:name(${authShortIdentifier}):location:name(${shortIdentifier})'${name}'</refName> -->\r
- <displayName>${name}</displayName>\r
- <displayNameComputed>false</displayNameComputed>\r
- <shortDisplayNameComputed>true</shortDisplayNameComputed>\r
+\r
+ <locTermGroupList>\r
+ <locTermGroup>\r
+ <termPrefForLang>false</termPrefForLang>\r
+ <termName>${name}</termName>\r
+ <termDisplayName>${name}</termDisplayName>\r
+ <termStatus>Approved</termStatus>\r
+ </locTermGroup>\r
+ </locTermGroupList>\r
+ \r
</ns2:locations_common>\r
<!-- \r
WARNING: ${itemCSID} does NOT get expanded by XmlReplay. \r
<inAuthority>${inAuthority}</inAuthority>\r
<shortIdentifier>${shortIdentifier}</shortIdentifier>\r
<refName>urn:cspace:org.collectionspace.demo:locationauthority:name(${authShortIdentifier}):location:name(${shortIdentifier})'${name}'</refName>\r
- <displayName>${name}</displayName>\r
- <displayNameComputed>false</displayNameComputed>\r
- <shortDisplayNameComputed>true</shortDisplayNameComputed>\r
+\r
+ <locTermGroupList>\r
+ <locTermGroup>\r
+ <termPrefForLang>false</termPrefForLang>\r
+ <termName>${name}</termName>\r
+ <termDisplayName>${name}</termDisplayName>\r
+ <termStatus>Approved</termStatus>\r
+ </locTermGroup>\r
+ </locTermGroupList>\r
+ \r
</ns2:locations_common>\r
<ns3:relations-common-list xmlns:ns3="http://collectionspace.org/services/relation" xmlns:ns2="http://collectionspace.org/services/jaxb">\r
<relation-list-item>\r
<document name="locations">\r
<ns2:locations_common xmlns:ns2="http://collectionspace.org/services/location" xmlns:ns3="http://collectionspace.org/services/jaxb">\r
<shortIdentifier>${shortIdentifier}</shortIdentifier>\r
- <displayName>${name}</displayName>\r
- <displayNameComputed>false</displayNameComputed>\r
+\r
+ <locTermGroupList>\r
+ <locTermGroup>\r
+ <termPrefForLang>false</termPrefForLang>\r
+ <termName>${name}</termName>\r
+ <termDisplayName>${name}</termDisplayName>\r
+ <termStatus>Approved</termStatus>\r
+ </locTermGroup>\r
+ </locTermGroupList>\r
+ \r
</ns2:locations_common>\r
<!-- \r
WARNING: ${itemCSID} does NOT get expanded by XmlReplay. \r
<filename>objectexit/oePersonDisplayOnly.xml</filename>\r
<vars>\r
<var ID="displayName">Finbar the DisplayName</var>\r
+ <var ID="shortIdentifier">Finbar_the_shortIdentifier</var>\r
</vars>\r
</test>\r
<test ID="oePersonGET">\r
<!-- TODO: .got is not namespace aware yet, so you must make the xpath work around it for now.-->\r
<var ID="csidGot">${oePersonGET.got("//csid")}</var> \r
<var ID="inAuthority">${oePersonauthority.CSID}</var>\r
+ <var ID="inAuthorityShortIdentifier">${oePersonauthority.sent("//shortIdentifier")}</var>\r
<var ID="displayName">${oePerson.sent("//displayName")}</var>\r
- <var ID="refName">urn:cspace:collectionspace.org:Personauthorities(${oePersonauthority.sent("//shortIdentifier")}):items(foobar)'${oePerson.sent("//displayName")}'</var>\r
+ <var ID="shortIdentifier">${oePerson.sent("//shortIdentifier")}</var>\r
+ <var ID="refName">urn:cspace:core.collectionspace.org:personauthorities:name(${inAuthorityShortIdentifier}):item:name(${shortIdentifier})'${displayName}'</var>\r
</vars>\r
</response>\r
</test>\r
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
<document name="persons">\r
-<ns2:persons_common\r
-xmlns:ns2="http://collectionspace.org/services/person"\r
-xmlns:ns3="http://collectionspace.org/services/jaxb">\r
- <!--<shortIdentifier>thePersonShortIdentifier</shortIdentifier>-->\r
- <displayName>${displayName}</displayName>\r
- <displayNameComputed>false</displayNameComputed>\r
-</ns2:persons_common>\r
+ <ns2:persons_common\r
+ xmlns:ns2="http://collectionspace.org/services/person"\r
+ xmlns:ns3="http://collectionspace.org/services/jaxb">\r
+ <shortIdentifier>${shortIdentifier}</shortIdentifier>\r
+ <personTermGroupList>\r
+ <personTermGroup>\r
+ <termName>${displayName}</termName>\r
+ <termPrefForLang>false</termPrefForLang>\r
+ <termDisplayName>${displayName}</termDisplayName>\r
+ </personTermGroup>\r
+ </personTermGroupList> \r
+ </ns2:persons_common>\r
</document>\r
-\r
<?xml version="1.0" encoding="UTF-8"?>
<document name="persons">
<ns2:persons_common xmlns:ns2="http://collectionspace.org/services/person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <nationalities />
- <shortDisplayName />
- <schoolsOrStyles />
- <groups />
- <occupations />
- <displayNameComputed>false</displayNameComputed>
<inAuthority>${inAuthority}</inAuthority>
- <displayName>Finbar the DisplayName</displayName>
+ <shortIdentifier>${shortIdentifier}</shortIdentifier>
+ <refName>${refName}</refName>
</ns2:persons_common>
- <ns2:collectionspace_core xmlns:ns2="http://collectionspace.org/collectionspace_core/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <tenantId>1</tenantId>
- <updatedAt>2011-04-23T23:02:16Z</updatedAt>
- <createdAt>2011-04-23T23:02:16Z</createdAt>
- </ns2:collectionspace_core>
- <ns2:account_permission xmlns:ns2="http://collectionspace.org/services/authorization">
- <account>
- <accountId>6b296c92-bb90-42d8-a804-3ec87c5e21d6</accountId>
- <userId>admin@core.collectionspace.org</userId>
- </account>
- <permission>
- <permRelationshipId>70</permRelationshipId>
- <permissionId>1aa2c5b8-ce60-412b-bb45-cadba34fab7d</permissionId>
- <resourceName>/personauthorities/*/items/*/workflow/</resourceName>
- <actionGroup>CRUDL</actionGroup>
- </permission>
- <permission>
- <permRelationshipId>71</permRelationshipId>
- <permissionId>a7f67d3d-ecee-41a5-9b8d-5a7f89345caa</permissionId>
- <resourceName>persons</resourceName>
- <actionGroup>CRUDL</actionGroup>
- </permission>
- </ns2:account_permission>
</document>
<document name="persons">\r
<ns2:persons_common xmlns:ns2="http://collectionspace.org/services/person" xmlns:ns3="http://collectionspace.org/services/jaxb">\r
<shortIdentifier>pmadry</shortIdentifier>\r
- <displayNameComputed>false</displayNameComputed>\r
- <shortDisplayNameComputed>false</shortDisplayNameComputed>\r
- <shortDisplayName>Penelope Madry</shortDisplayName>\r
- <displayName>Penelope Madry, New York</displayName>\r
- <termStatus>${termStatus}</termStatus>\r
+ \r
+ <personTermGroupList>\r
+ <personTermGroup>\r
+ <termName>Penelope Madry, New York</termName>\r
+ <termPrefForLang>false</termPrefForLang>\r
+ <termDisplayName>Penelope Madry, New York</termDisplayName>\r
+ <termStatus>${termStatus}</termStatus>\r
+ </personTermGroup>\r
+ </personTermGroupList> \r
+ \r
<bioNote>Project Manager for CollectionSpace</bioNote>\r
</ns2:persons_common>\r
</document>\r
<document name="persons">\r
<ns2:persons_common xmlns:ns2="http://collectionspace.org/services/person" xmlns:ns3="http://collectionspace.org/services/jaxb">\r
<shortIdentifier>pschmitz</shortIdentifier>\r
- <displayNameComputed>false</displayNameComputed>\r
- <shortDisplayNameComputed>false</shortDisplayNameComputed>\r
- <shortDisplayName>Patrick Schmitz</shortDisplayName>\r
- <displayName>Patrick Schmitz, Berkeley</displayName>\r
- <termStatus>${termStatus}</termStatus>\r
+\r
+ <personTermGroupList>\r
+ <personTermGroup>\r
+ <termName>Patrick Schmitz, Berkeley</termName>\r
+ <termPrefForLang>false</termPrefForLang>\r
+ <termDisplayName>Patrick Schmitz, Berkeley</termDisplayName>\r
+ <termStatus>${termStatus}</termStatus>\r
+ </personTermGroup>\r
+ </personTermGroupList> \r
+ \r
<bioNote>Technical Lead for CollectionSpace</bioNote>\r
<description>This is a test PersonAuthority item</description>\r
<source>Some mythical book</source>\r
<inAuthority>${inAuthority}</inAuthority>\r
<shortIdentifier>${shortIdentifier}</shortIdentifier>\r
<refName>urn:cspace:org.collectionspace.demo:personauthority:name(${authShortIdentifier}):person:name(${shortIdentifier})'John Wayne'</refName>\r
- <displayName>John Wayne</displayName>\r
- <displayNameComputed>false</displayNameComputed>\r
- <shortDisplayName>JohnWayne</shortDisplayName>\r
- <shortDisplayNameComputed>false</shortDisplayNameComputed>\r
- <foreName>John</foreName>\r
- <surName>Wayne</surName>\r
+ \r
+ <personTermGroupList>\r
+ <personTermGroup>\r
+ <termName>John Wayne</termName>\r
+ <termPrefForLang>false</termPrefForLang>\r
+ <termDisplayName>John Wayne</termDisplayName>\r
+ <foreName>John</foreName>\r
+ <surName>Wayne</surName>\r
+ </personTermGroup>\r
+ </personTermGroupList> \r
+ \r
<birthDate>May 26, 1907</birthDate>\r
<deathDate>June 11, 1979</deathDate>\r
<birthPlace>Winterset, Iowa</birthPlace>\r
<document name="persons">
<ns2:persons_common xmlns:ns2="http://collectionspace.org/services/person" xmlns:ns3="http://collectionspace.org/services/jaxb">
<shortIdentifier>${shortIdentifier}</shortIdentifier>
- <displayName>${foreName} ${surName}</displayName>
- <displayNameComputed>false</displayNameComputed>
- <shortDisplayName>>${foreName} ${surName}</shortDisplayName>
- <shortDisplayNameComputed>false</shortDisplayNameComputed>
- <foreName>${foreName}</foreName>
- <surName>${surName}</surName>
+
+ <personTermGroupList>
+ <personTermGroup>
+ <termName>${foreName} ${surName}</termName>
+ <termPrefForLang>false</termPrefForLang>
+ <termDisplayName>${foreName} ${surName}</termDisplayName>
+ <foreName>${foreName}</foreName>
+ <surName>${surName}</surName>
+ </personTermGroup>
+ </personTermGroupList>
+
</ns2:persons_common>
<ns4:persons_naturalhistory xmlns:ns4="http://collectionspace.org/services/person/domain/naturalhistory" xmlns:ns3="http://collectionspace.org/services/jaxb">
<entityType>${entityType}</entityType>
<document name="persons">
<pers:persons_common xmlns:pers="http://collectionspace.org/services/person">
<shortIdentifier>${shortIdentifier}</shortIdentifier>
- <displayName>${foreName} ${surName}</displayName>
- <displayNameComputed>false</displayNameComputed>
- <shortDisplayName>>${foreName} ${surName}</shortDisplayName>
- <shortDisplayNameComputed>false</shortDisplayNameComputed>
- <foreName>${foreName}</foreName>
- <surName>${surName}</surName>
+
+ <personTermGroupList>
+ <personTermGroup>
+ <termName>${foreName} ${surName}</termName>
+ <termPrefForLang>false</termPrefForLang>
+ <termDisplayName>${foreName} ${surName}</termDisplayName>
+ <foreName>${foreName}</foreName>
+ <surName>${surName}</surName>
+ </personTermGroup>
+ </personTermGroupList>
+
</pers:persons_common>
<pnh:persons_naturalhistory xmlns:pnh="http://collectionspace.org/services/person/domain/naturalhistory">
<entityType>${entityType}</entityType>
<inAuthority>${inAuthority}</inAuthority>\r
<shortIdentifier>${shortIdentifier}</shortIdentifier>\r
<refName>urn:cspace:org.collectionspace.demo:personauthority:name(${authShortIdentifier}):person:name(${shortIdentifier})'John Wayne'</refName>\r
- <displayName>John Wayne</displayName>\r
- <displayNameComputed>false</displayNameComputed>\r
- <shortDisplayName>JohnWayne</shortDisplayName>\r
- <shortDisplayNameComputed>false</shortDisplayNameComputed>\r
- <foreName>John</foreName>\r
- <surName>Wayne</surName>\r
+\r
+ <personTermGroupList>\r
+ <personTermGroup>\r
+ <termName>John Wayne</termName>\r
+ <termPrefForLang>false</termPrefForLang>\r
+ <termDisplayName>John Wayne</termDisplayName>\r
+ <foreName>John</foreName>\r
+ <surName>Wayne</surName>\r
+ </personTermGroup>\r
+ </personTermGroupList> \r
+ \r
<birthDate>May 26, 1907</birthDate>\r
<deathDate>June 11, 1979</deathDate>\r
<birthPlace>Winterset, Iowa</birthPlace>\r
<inAuthority>${inAuthority}</inAuthority>\r
<shortIdentifier>${shortIdentifier}</shortIdentifier>\r
<refName>urn:cspace:org.collectionspace.demo:personauthority:name(${authShortIdentifier}):person:name(${shortIdentifier})'John Wayne'</refName>\r
- <displayName>John Wayne</displayName>\r
- <displayNameComputed>false</displayNameComputed>\r
- <shortDisplayName>JohnWayne</shortDisplayName>\r
- <shortDisplayNameComputed>false</shortDisplayNameComputed>\r
- <foreName>John</foreName>\r
- <surName>Wayne</surName>\r
+\r
+ <personTermGroupList>\r
+ <personTermGroup>\r
+ <termName>John Wayne</termName>\r
+ <termPrefForLang>false</termPrefForLang>\r
+ <termDisplayName>John Wayne</termDisplayName>\r
+ <foreName>John</foreName>\r
+ <surName>Wayne</surName>\r
+ </personTermGroup>\r
+ </personTermGroupList> \r
+ \r
<birthDate>May 26, 1907</birthDate>\r
<deathDate>June 11, 1979</deathDate>\r
<birthPlace>Winterset, Iowa</birthPlace>\r
<inAuthority>${inAuthority}</inAuthority>\r
<shortIdentifier>${shortIdentifier}</shortIdentifier>\r
<refName>urn:cspace:org.collectionspace.demo:personauthority:name(${authShortIdentifier}):person:name(${shortIdentifier})'John Wayne'</refName>\r
- <displayName>John Wayne</displayName>\r
- <displayNameComputed>false</displayNameComputed>\r
- <shortDisplayName>JohnWayne</shortDisplayName>\r
- <shortDisplayNameComputed>false</shortDisplayNameComputed>\r
- <foreName>John</foreName>\r
- <surName>Wayne</surName>\r
+\r
+ <personTermGroupList>\r
+ <personTermGroup>\r
+ <termName>John Wayne</termName>\r
+ <termPrefForLang>false</termPrefForLang>\r
+ <termDisplayName>John Wayne</termDisplayName>\r
+ <foreName>John</foreName>\r
+ <surName>Wayne</surName>\r
+ </personTermGroup>\r
+ </personTermGroupList> \r
+ \r
<birthDate>May 26, 1907</birthDate>\r
<deathDate>June 11, 1979</deathDate>\r
<birthPlace>Winterset, Iowa</birthPlace>\r
<inAuthority>${inAuthority}</inAuthority>\r
<shortIdentifier>${shortIdentifier}</shortIdentifier>\r
<refName>urn:cspace:org.collectionspace.demo:personauthority:name(${authShortIdentifier}):person:name(${shortIdentifier})'John Wayne'</refName>\r
- <displayName>John Wayne</displayName>\r
- <displayNameComputed>false</displayNameComputed>\r
- <shortDisplayName>JohnWayne</shortDisplayName>\r
- <shortDisplayNameComputed>false</shortDisplayNameComputed>\r
- <foreName>John</foreName>\r
- <surName>Wayne</surName>\r
+\r
+ <personTermGroupList>\r
+ <personTermGroup>\r
+ <termName>John Wayne</termName>\r
+ <termPrefForLang>false</termPrefForLang>\r
+ <termDisplayName>John Wayne</termDisplayName>\r
+ <foreName>John</foreName>\r
+ <surName>Wayne</surName>\r
+ </personTermGroup>\r
+ </personTermGroupList> \r
+ \r
<birthDate>May 26, 1907</birthDate>\r
<deathDate>June 11, 1979</deathDate>\r
<birthPlace>Winterset, Iowa</birthPlace>\r
<inAuthority>${inAuthority}</inAuthority>\r
<shortIdentifier>${shortIdentifier}</shortIdentifier>\r
<refName>urn:cspace:org.collectionspace.demo:personauthority:name(${authShortIdentifier}):person:name(${shortIdentifier})'John Wayne'</refName>\r
- <displayName>John Wayne</displayName>\r
- <displayNameComputed>false</displayNameComputed>\r
- <shortDisplayName>JohnWayne</shortDisplayName>\r
- <shortDisplayNameComputed>false</shortDisplayNameComputed>\r
- <foreName>John</foreName>\r
- <surName>Wayne</surName>\r
+\r
+ <personTermGroupList>\r
+ <personTermGroup>\r
+ <termName>John Wayne</termName>\r
+ <termPrefForLang>false</termPrefForLang>\r
+ <termDisplayName>John Wayne</termDisplayName>\r
+ <foreName>John</foreName>\r
+ <surName>Wayne</surName>\r
+ </personTermGroup>\r
+ </personTermGroupList> \r
+ \r
<birthDate>May 26, 1907</birthDate>\r
<deathDate>June 11, 1979</deathDate>\r
<birthPlace>Winterset, Iowa</birthPlace>\r
<inAuthority>${inAuthority}</inAuthority>\r
<shortIdentifier>${shortIdentifier}</shortIdentifier>\r
<refName>urn:cspace:org.collectionspace.demo:personauthority:name(${authShortIdentifier}):person:name(${shortIdentifier})'John Wayne'</refName>\r
- <displayName>John Wayne</displayName>\r
- <displayNameComputed>false</displayNameComputed>\r
- <shortDisplayName>JohnWayne</shortDisplayName>\r
- <shortDisplayNameComputed>false</shortDisplayNameComputed>\r
- <foreName>John</foreName>\r
- <surName>Wayne</surName>\r
+\r
+ <personTermGroupList>\r
+ <personTermGroup>\r
+ <termName>John Wayne</termName>\r
+ <termPrefForLang>false</termPrefForLang>\r
+ <termDisplayName>John Wayne</termDisplayName>\r
+ <foreName>John</foreName>\r
+ <surName>Wayne</surName>\r
+ </personTermGroup>\r
+ </personTermGroupList> \r
+ \r
<birthDate>May 26, 1907</birthDate>\r
<deathDate>June 11, 1979</deathDate>\r
<birthPlace>Winterset, Iowa</birthPlace>\r
<run controlFile="objectexit/object-exit.xml" testGroup="makeone" />\r
<run controlFile="objectexit/object-exit.xml" testGroup="checkList" />\r
<run controlFile="objectexit/object-exit-display.xml" testGroup="refNameDisplayNameOnly" />\r
+\r
+<!--\r
<run controlFile="collectionobject/collectionobject-adv-search.xml" testGroup="advSearchCommonSchema" />\r
<run controlFile="collectionobject/collectionobject-adv-search.xml" testGroup="advSearchExtensionSchema" />\r
<run controlFile="acquisitions/acquisitions.xml" testGroup="makeone" />\r
<run controlFile="acquisitions/acquisitions.xml" testGroup="testList" />\r
<run controlFile="relation/relation.xml" testGroup="makeRelations" />\r
- <!-- No - this test is broken\r
- <run controlFile="relation/relation.xml" testGroup="r2only" />\r
- -->\r
+-->\r
+\r
+<!-- No - this test is broken\r
+ <run controlFile="relation/relation.xml" testGroup="r2only" />\r
+-->\r
+\r
<run controlFile="person/person.xml" testGroup="postPerson" />\r
<run controlFile="person/person.xml" testGroup="updatePerson" />\r
<run controlFile="person/person.xml" testGroup="PersonAddRelsDeleteRels" />\r
+\r
<run controlFile="location/location-hierarchy.xml" testGroup="HierarchicLocation" />\r
+\r
+<!-- \r
<run controlFile="organization/organization-hierarchy.xml" testGroup="HierarchicOrganization" />\r
<run controlFile="batch/batch.xml" />\r
<run controlFile="report/report.xml" />\r
<run controlFile="vocabulary/vocabulary.xml" testGroup="TestOrder" />\r
- <run controlFile="authrefs/authrefs.xml" testGroup="AuthRefs" />\r
- <run controlFile="authrefs/authrefsSimple.xml" testGroup="AuthRefsSimple" />\r
- <run controlFile="authrefs/authrefsComplex.xml" testGroup="AuthRefsComplex" />\r
+ <run controlFile="authrefs/authrefs.xml" testGroup="AuthRefs" />\r
+ <run controlFile="authrefs/authrefsSimple.xml" testGroup="AuthRefsSimple" />\r
+ <run controlFile="authrefs/authrefsComplex.xml" testGroup="AuthRefsComplex" />\r
<run controlFile="imports/imports.xml" testGroup="importsTestGroup" />\r
-\r
+-->\r
\r
</xmlReplayMaster>\r
\r