From: Aron Roberts Date: Tue, 1 Jun 2010 19:38:01 +0000 (+0000) Subject: CSPACE-1227,CSPACE-1916: Filled out CollectionObject schema, in the Services Layer... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=7fd19138f4543e366a87e574d5ed8e0adbfe2a93;p=tmp%2Fjakarta-migration.git CSPACE-1227,CSPACE-1916: Filled out CollectionObject schema, in the Services Layer, with the remaining fields required by Cataloging Schema Limited for 0.7 on the wiki. Note that briefDescription is still a single, non-repatable scalar in this check-in, and that the three fields - relatedObjectNumber, relatedObjectAssociation, and relatedObjectNote - are not included, per Megan in IRC on 2010-06-01. Changes a Nuxeo document type, and thus requires stopping the 2 JBoss servers and performing an 'ant deploy'. --- diff --git a/services/collectionobject/3rdparty/nuxeo-platform-cs-collectionobject/src/main/resources/schemas/collectionobjects_common.xsd b/services/collectionobject/3rdparty/nuxeo-platform-cs-collectionobject/src/main/resources/schemas/collectionobjects_common.xsd index a57f26555..286256e10 100644 --- a/services/collectionobject/3rdparty/nuxeo-platform-cs-collectionobject/src/main/resources/schemas/collectionobjects_common.xsd +++ b/services/collectionobject/3rdparty/nuxeo-platform-cs-collectionobject/src/main/resources/schemas/collectionobjects_common.xsd @@ -40,6 +40,16 @@ + @@ -142,6 +152,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java b/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java index 0e1e8c350..ff96591c3 100644 --- a/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java +++ b/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java @@ -30,6 +30,7 @@ import javax.ws.rs.core.Response; import org.collectionspace.services.client.CollectionObjectClient; import org.collectionspace.services.client.CollectionObjectFactory; import org.collectionspace.services.client.CollectionSpaceClient; +import org.collectionspace.services.collectionobject.BriefDescriptionList; import org.collectionspace.services.collectionobject.CollectionobjectsCommon; import org.collectionspace.services.collectionobject.domain.naturalhistory.CollectionobjectsNaturalhistory; import org.collectionspace.services.collectionobject.CollectionobjectsCommonList; @@ -1050,7 +1051,15 @@ public class CollectionObjectServiceTest extends AbstractServiceTestImpl { private MultipartOutput createCollectionObjectInstance(String commonPartName, String objectNumber, String objectName) { CollectionobjectsCommon collectionObject = new CollectionobjectsCommon(); - + + /* + BriefDescriptionList descriptionList = new BriefDescriptionList(); + List descriptions = descriptionList.getBriefDescription(); + descriptions.add("Papier mache bird cow mask with horns, " + + "painted red with black and yellow spots. " + + "Puerto Rico. ca. 8" high, 6" wide, projects 10" (with horns)."); + */ + ResponsibleDepartmentList deptList = new ResponsibleDepartmentList(); List depts = deptList.getResponsibleDepartment(); // @TODO Use properly formatted refNames for representative departments @@ -1088,6 +1097,7 @@ public class CollectionObjectServiceTest extends AbstractServiceTestImpl { collectionObject.setObjectName(objectName); collectionObject.setAge(""); //test for null string + // collectionObject.setBriefDescriptions(descriptionList); collectionObject.setBriefDescription("Papier mache bird cow mask with horns, " + "painted red with black and yellow spots. " + "Puerto Rico. ca. 8" high, 6" wide, projects 10" (with horns)."); diff --git a/services/collectionobject/jaxb/src/main/resources/collectionobjects_common.xsd b/services/collectionobject/jaxb/src/main/resources/collectionobjects_common.xsd index 3c4b69a8c..2a43a7b9d 100644 --- a/services/collectionobject/jaxb/src/main/resources/collectionobjects_common.xsd +++ b/services/collectionobject/jaxb/src/main/resources/collectionobjects_common.xsd @@ -45,15 +45,18 @@ - + - + + + + @@ -70,13 +73,13 @@ - + - + @@ -98,7 +101,7 @@ - + @@ -109,7 +112,7 @@ - + @@ -122,7 +125,7 @@ - + @@ -131,14 +134,14 @@ - + - + @@ -149,8 +152,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + @@ -170,6 +238,12 @@ + + + + + +