<template mode="any">/layouts/layout_default_template.xhtml</template>
</templates>
<rows>
- <row><widget>accessiondate</widget></row>
+ <row><widget>accessionDate</widget></row>
+ <row><widget>acquisitionAuthorizer</widget></row>
+ <row><widget>AcquisitionAuthorizerDate</widget></row>
+ <row><widget>AcquisitionDate</widget></row>
+ <row><widget>AcquisitionFunding</widget></row>
+ <row><widget>AcquisitionFundingSource</widget></row>
+ <row><widget>AcquisitionFundingSourceProvisos</widget></row>
+ <row><widget>AcquisitionMethod</widget></row>
+ <row><widget>AcquisitionNote</widget></row>
+ <row><widget>AcquisitionProvisos</widget></row>
+ <row><widget>AcquisitionReason</widget></row>
+ <row><widget>AcquisitionReferenceNumber</widget></row>
+ <row><widget>AcquisitionSource</widget></row>
+ <row><widget>GroupPurchasePrice</widget></row>
+ <row><widget>ObjectOfferPrice</widget></row>
+ <row><widget>ObjectPurchaseOfferPrice</widget></row>
+ <row><widget>ObjectPurchasePrice</widget></row>
+ <row><widget>OriginalObjectPurchasePrice</widget></row>
+ <row><widget>OriginalObjectPurchasePriceDenomination</widget></row>
+ <row><widget>TransferOfTitleNumber</widget></row>
</rows>
- <widget name="accessiondate" type="text">
+ <widget name="accessionDate" type="text">
<labels>
- <label mode="any">accessiondate</label>
+ <label mode="any">accessionDate</label>
</labels>
<translated>true</translated>
<fields>
- <field schema="acquisition">accessiondate</field>
+ <field>acq:accessionDate</field>
+ </fields>
+ <properties widgetMode="edit">
+ <property name="styleClass">dataInputText</property>
+ </properties>
+ </widget>
+
+ <widget name="acquisitionAuthorizer" type="text">
+ <labels>
+ <label mode="any">acquisitionAuthorizer</label>
+ </labels>
+ <translated>true</translated>
+ <fields>
+ <field>acq:acquisitionAuthorizer</field>
+ </fields>
+ <properties widgetMode="edit">
+ <property name="styleClass">dataInputText</property>
+ </properties>
+ </widget>
+
+ <widget name="AcquisitionAuthorizerDate" type="text">
+ <labels>
+ <label mode="any">AcquisitionAuthorizerDate</label>
+ </labels>
+ <translated>true</translated>
+ <fields>
+ <field>acq:AcquisitionAuthorizerDate</field>
+ </fields>
+ <properties widgetMode="edit">
+ <property name="styleClass">dataInputText</property>
+ </properties>
+ </widget>
+
+ <widget name="AcquisitionDate" type="text">
+ <labels>
+ <label mode="any">AcquisitionDate</label>
+ </labels>
+ <translated>true</translated>
+ <fields>
+ <field>acq:AcquisitionDate</field>
+ </fields>
+ <properties widgetMode="edit">
+ <property name="styleClass">dataInputText</property>
+ </properties>
+ </widget>
+
+ <widget name="AcquisitionFunding" type="text">
+ <labels>
+ <label mode="any">AcquisitionFunding</label>
+ </labels>
+ <translated>true</translated>
+ <fields>
+ <field>acq:AcquisitionFunding</field>
+ </fields>
+ <properties widgetMode="edit">
+ <property name="styleClass">dataInputText</property>
+ </properties>
+ </widget>
+
+ <widget name="AcquisitionFundingSource" type="text">
+ <labels>
+ <label mode="any">AcquisitionFundingSource</label>
+ </labels>
+ <translated>true</translated>
+ <fields>
+ <field>acq:AcquisitionFundingSource</field>
+ </fields>
+ <properties widgetMode="edit">
+ <property name="styleClass">dataInputText</property>
+ </properties>
+ </widget>
+
+ <widget name="AcquisitionFundingSourceProvisos" type="text">
+ <labels>
+ <label mode="any">AcquisitionFundingSourceProvisos</label>
+ </labels>
+ <translated>true</translated>
+ <fields>
+ <field>acq:AcquisitionFundingSourceProvisos</field>
+ </fields>
+ <properties widgetMode="edit">
+ <property name="styleClass">dataInputText</property>
+ </properties>
+ </widget>
+
+ <widget name="AcquisitionMethod" type="text">
+ <labels>
+ <label mode="any">AcquisitionMethod</label>
+ </labels>
+ <translated>true</translated>
+ <fields>
+ <field>acq:AcquisitionMethod</field>
+ </fields>
+ <properties widgetMode="edit">
+ <property name="styleClass">dataInputText</property>
+ </properties>
+ </widget>
+
+ <widget name="AcquisitionNote" type="text">
+ <labels>
+ <label mode="any">AcquisitionNote</label>
+ </labels>
+ <translated>true</translated>
+ <fields>
+ <field>acq:AcquisitionNote</field>
+ </fields>
+ <properties widgetMode="edit">
+ <property name="styleClass">dataInputText</property>
+ </properties>
+ </widget>
+
+ <widget name="AcquisitionProvisos" type="text">
+ <labels>
+ <label mode="any">AcquisitionProvisos</label>
+ </labels>
+ <translated>true</translated>
+ <fields>
+ <field>acq:AcquisitionProvisos</field>
+ </fields>
+ <properties widgetMode="edit">
+ <property name="styleClass">dataInputText</property>
+ </properties>
+ </widget>
+
+ <widget name="AcquisitionReason" type="text">
+ <labels>
+ <label mode="any">AcquisitionReason</label>
+ </labels>
+ <translated>true</translated>
+ <fields>
+ <field>acq:AcquisitionReason</field>
+ </fields>
+ <properties widgetMode="edit">
+ <property name="styleClass">dataInputText</property>
+ </properties>
+ </widget>
+
+ <widget name="AcquisitionReferenceNumber" type="text">
+ <labels>
+ <label mode="any">AcquisitionReferenceNumber</label>
+ </labels>
+ <translated>true</translated>
+ <fields>
+ <field>acq:AcquisitionReferenceNumber</field>
+ </fields>
+ <properties widgetMode="edit">
+ <property name="styleClass">dataInputText</property>
+ </properties>
+ </widget>
+
+ <widget name="AcquisitionSource" type="text">
+ <labels>
+ <label mode="any">AcquisitionSource</label>
+ </labels>
+ <translated>true</translated>
+ <fields>
+ <field>acq:AcquisitionSource</field>
+ </fields>
+ <properties widgetMode="edit">
+ <property name="styleClass">dataInputText</property>
+ </properties>
+ </widget>
+
+ <widget name="GroupPurchasePrice" type="text">
+ <labels>
+ <label mode="any">GroupPurchasePrice</label>
+ </labels>
+ <translated>true</translated>
+ <fields>
+ <field>acq:GroupPurchasePrice</field>
+ </fields>
+ <properties widgetMode="edit">
+ <property name="styleClass">dataInputText</property>
+ </properties>
+ </widget>
+
+ <widget name="ObjectOfferPrice" type="text">
+ <labels>
+ <label mode="any">ObjectOfferPrice</label>
+ </labels>
+ <translated>true</translated>
+ <fields>
+ <field>acq:ObjectOfferPrice</field>
+ </fields>
+ <properties widgetMode="edit">
+ <property name="styleClass">dataInputText</property>
+ </properties>
+ </widget>
+
+ <widget name="ObjectPurchaseOfferPrice" type="text">
+ <labels>
+ <label mode="any">ObjectPurchaseOfferPrice</label>
+ </labels>
+ <translated>true</translated>
+ <fields>
+ <field>acq:ObjectPurchaseOfferPrice</field>
+ </fields>
+ <properties widgetMode="edit">
+ <property name="styleClass">dataInputText</property>
+ </properties>
+ </widget>
+
+ <widget name="ObjectPurchasePrice" type="text">
+ <labels>
+ <label mode="any">ObjectPurchasePrice</label>
+ </labels>
+ <translated>true</translated>
+ <fields>
+ <field>acq:ObjectPurchasePrice</field>
+ </fields>
+ <properties widgetMode="edit">
+ <property name="styleClass">dataInputText</property>
+ </properties>
+ </widget>
+
+ <widget name="OriginalObjectPurchasePrice" type="text">
+ <labels>
+ <label mode="any">OriginalObjectPurchasePrice</label>
+ </labels>
+ <translated>true</translated>
+ <fields>
+ <field>acq:OriginalObjectPurchasePrice</field>
+ </fields>
+ <properties widgetMode="edit">
+ <property name="styleClass">dataInputText</property>
+ </properties>
+ </widget>
+
+ <widget name="OriginalObjectPurchasePriceDenomination" type="text">
+ <labels>
+ <label mode="any">OriginalObjectPurchasePriceDenomination</label>
+ </labels>
+ <translated>true</translated>
+ <fields>
+ <field>acq:OriginalObjectPurchasePriceDenomination</field>
+ </fields>
+ <properties widgetMode="edit">
+ <property name="styleClass">dataInputText</property>
+ </properties>
+ </widget>
+
+ <widget name="TransferOfTitleNumber" type="text">
+ <labels>
+ <label mode="any">TransferOfTitleNumber</label>
+ </labels>
+ <translated>true</translated>
+ <fields>
+ <field>acq:TransferOfTitleNumber</field>
</fields>
<properties widgetMode="edit">
<property name="styleClass">dataInputText</property>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
+<xs:schema \r
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"\r
+ xmlns:ns="http://collectionspace.org/acquisition/"\r
+ xmlns="http://collectionspace.org/acquisition/"\r
+ targetNamespace="http://collectionspace.org/acquisition/"\r
+ version="0.1">\r
+ \r
+ <!-- See http://wiki.collectionspace.org/display/collectionspace/Acquisition+Schema -->\r
+\r
+<!-- Object Entry Information Group -->\r
+ <xs:element name="accessionDate" type="xs:string"/>\r
+ <xs:element name="acquisitionAuthorizer" type="xs:string"/>\r
+ <xs:element name="AcquisitionAuthorizerDate" type="xs:string"/>\r
+ <xs:element name="AcquisitionDate" type="xs:string"/>\r
+ <xs:element name="AcquisitionFunding" type="xs:string"/>\r
+ <xs:element name="AcquisitionFundingSource" type="xs:string"/>\r
+ <xs:element name="AcquisitionFundingSourceProvisos" type="xs:string"/>\r
+ <xs:element name="AcquisitionMethod" type="xs:string"/>\r
+ <xs:element name="AcquisitionNote" type="xs:string"/>\r
+ <xs:element name="AcquisitionProvisos" type="xs:string"/>\r
+ <xs:element name="AcquisitionReason" type="xs:string"/>\r
+ <xs:element name="AcquisitionReferenceNumber" type="xs:string"/>\r
+ <xs:element name="AcquisitionSource" type="xs:string"/>\r
+ <xs:element name="GroupPurchasePrice" type="xs:string"/>\r
+ <xs:element name="ObjectOfferPrice" type="xs:string"/>\r
+ <xs:element name="ObjectPurchaseOfferPrice" type="xs:string"/>\r
+ <xs:element name="ObjectPurchasePrice" type="xs:string"/>\r
+ <xs:element name="OriginalObjectPurchasePrice" type="xs:string"/>\r
+ <xs:element name="OriginalObjectPurchasePriceDenomination" type="xs:string"/>\r
+ <xs:element name="TransferOfTitleNumber" type="xs:string"/> \r
+ \r
+</xs:schema>\r
final String SERVICE_PATH_COMPONENT = "acquisitions";
private String knownResourceId = null;
+ //FIXME: Remove this method once ALL the services use "_common" instead of "-common"
+ public String getCommonPartName() {
+ return getServicePathComponent() + "_common";
+ }
+
// ---------------------------------------------------------------
// CRUD tests : CREATE tests
// ---------------------------------------------------------------
Assert.assertNotNull(acquisition);
// Update the content of this resource.
- acquisition.setAccessiondate("updated-" + acquisition.getAccessiondate());
+ acquisition.setAccessionDate("updated-" + acquisition.getAccessionDate());
verbose("updated object", acquisition, AcquisitionsCommon.class);
// Submit the request to the service and store the response.
MultipartOutput output = new MultipartOutput();
getCommonPartName(), AcquisitionsCommon.class);
Assert.assertNotNull(updatedAcquisition);
- Assert.assertEquals(updatedAcquisition.getAccessiondate(),
- acquisition.getAccessiondate(),
+ Assert.assertEquals(updatedAcquisition.getAccessionDate(),
+ acquisition.getAccessionDate(),
"Data in updated object did not match submitted data.");
}catch(Exception e){
e.printStackTrace();
private MultipartOutput createAcquisitionInstance(String identifier) {
AcquisitionsCommon acquisition = new AcquisitionsCommon();
- acquisition.setAccessiondate("accessionDate-" + identifier);
+ acquisition.setAccessionDate("accessionDate-" + identifier);
MultipartOutput multipart = new MultipartOutput();
OutputPart commonPart = multipart.addPart(acquisition, MediaType.APPLICATION_XML_TYPE);
commonPart.getHeaders().add("label", getCommonPartName());