]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-504: Exchanged "_" for "-" in all Nuxeo-related entity services. Updated...
authorRichard Millet <richard.millet@berkeley.edu>
Fri, 9 Oct 2009 07:08:05 +0000 (07:08 +0000)
committerRichard Millet <richard.millet@berkeley.edu>
Fri, 9 Oct 2009 07:08:05 +0000 (07:08 +0000)
32 files changed:
services/acquisition/client/src/test/java/org/collectionspace/services/client/test/AcquisitionServiceTest.java
services/acquisition/jaxb/src/main/java/org/collectionspace/services/AcquisitionJAXBSchema.java
services/acquisition/jaxb/src/main/resources/acquisitions_common.xsd
services/acquisition/service/src/main/java/org/collectionspace/services/acquisition/nuxeo/AcquisitionDocumentModelHandler.java
services/client/pom.xml
services/client/src/main/java/org/collectionspace/services/client/test/AbstractServiceTest.java
services/collectionobject/3rdparty/nuxeo-platform-cs-collectionobject/src/main/resources/OSGI-INF/core-types-contrib.xml
services/collectionobject/3rdparty/nuxeo-platform-cs-collectionobject/src/main/resources/OSGI-INF/layouts-contrib.xml
services/collectionobject/3rdparty/nuxeo-platform-cs-collectionobject/src/main/resources/schemas/collectionobjects-common.xsd [deleted file]
services/collectionobject/3rdparty/nuxeo-platform-cs-collectionobject/src/main/resources/schemas/collectionobjects_common.xsd [new file with mode: 0644]
services/collectionobject/3rdparty/nuxeo-platform-cs-collectionobject/src/main/resources/schemas/collectionobjects_naturalhistory.xsd [moved from services/collectionobject/3rdparty/nuxeo-platform-cs-collectionobject/src/main/resources/schemas/collectionobjects-naturalhistory.xsd with 100% similarity]
services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectServiceTest.java
services/collectionobject/jaxb/src/main/resources/collectionobjects-common.xsd [deleted file]
services/collectionobject/jaxb/src/main/resources/collectionobjects_common.xsd [new file with mode: 0644]
services/collectionobject/jaxb/src/main/resources/collectionobjects_naturalhistory.xsd [moved from services/collectionobject/jaxb/src/main/resources/collectionobjects-naturalhistory.xsd with 100% similarity]
services/common/src/main/config/tenant-bindings.xml
services/common/src/main/java/org/collectionspace/services/common/context/AbstractServiceContext.java
services/common/src/main/java/org/collectionspace/services/common/context/ServiceContext.java
services/common/src/main/java/org/collectionspace/services/common/repository/AbstractDocumentHandler.java
services/common/src/main/resources/relations_common.xsd [moved from services/common/src/main/resources/relations-common.xsd with 96% similarity]
services/intake/3rdparty/nuxeo-platform-cs-intake/src/main/resources/OSGI-INF/core-types-contrib.xml
services/intake/3rdparty/nuxeo-platform-cs-intake/src/main/resources/OSGI-INF/layouts-contrib.xml
services/intake/3rdparty/nuxeo-platform-cs-intake/src/main/resources/schemas/intakes_common.xsd [moved from services/intake/3rdparty/nuxeo-platform-cs-intake/src/main/resources/schemas/intakes-common.xsd with 100% similarity]
services/intake/jaxb/src/main/resources/intakes-common.xsd
services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/core-types-contrib.xml
services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/OSGI-INF/layouts-contrib.xml
services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/schemas/relations_common.xsd [moved from services/relation/3rdparty/nuxeo-platform-cs-relation/src/main/resources/schemas/relations-common.xsd with 100% similarity]
services/vocabulary/3rdparty/nuxeo-platform-cs-vocabulary/src/main/resources/OSGI-INF/core-types-contrib.xml
services/vocabulary/3rdparty/nuxeo-platform-cs-vocabulary/src/main/resources/OSGI-INF/layouts-contrib.xml
services/vocabulary/3rdparty/nuxeo-platform-cs-vocabulary/src/main/resources/schemas/vocabularies_common.xsd [moved from services/vocabulary/3rdparty/nuxeo-platform-cs-vocabulary/src/main/resources/schemas/vocabularies-common.xsd with 100% similarity]
services/vocabulary/3rdparty/nuxeo-platform-cs-vocabulary/src/main/resources/schemas/vocabularyitems_common.xsd [moved from services/vocabulary/3rdparty/nuxeo-platform-cs-vocabulary/src/main/resources/schemas/vocabularyitems-common.xsd with 100% similarity]
services/vocabulary/jaxb/src/main/resources/vocabulary_common.xsd [moved from services/vocabulary/jaxb/src/main/resources/vocabulary-common.xsd with 97% similarity]

index 053ac6f08730184ac06790cf392dd1e13d4474aa..6c029f69071c8ddb3bdc2fa5459cb8e5f6989e23 100644 (file)
@@ -52,11 +52,6 @@ public class AcquisitionServiceTest extends AbstractServiceTest {
     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
     // ---------------------------------------------------------------
@@ -243,7 +238,7 @@ public class AcquisitionServiceTest extends AbstractServiceTest {
                 verbose("readList: list-item[" + i + "] csid=" +
                         item.getCsid());
                 verbose("readList: list-item[" + i + "] objectNumber=" +
-                        item.getAccessiondate());
+                        item.getAccessionDate());
                 verbose("readList: list-item[" + i + "] URI=" +
                         item.getUri());
                 i++;
index 6b36e4853f9aee40045d1bb7b59b1ff7adddd1aa..6e494646162b67a260b217ad890191deb1c2041c 100644 (file)
@@ -8,7 +8,7 @@ package org.collectionspace.services;
  *\r
  */\r
 public interface AcquisitionJAXBSchema {\r
-       final static String ACCESSIONDATE = "accessiondate";\r
+       final static String ACCESSIONDATE = "accessionDate";\r
 }\r
 \r
 \r
index 0542493f7c54daf090cffef777a27e81a816cb8a..d15fc2f23c7da39a16b29cffa9416e8948472faa 100644 (file)
@@ -48,7 +48,7 @@
                 <xs:element name="acquisition-list-item" maxOccurs="unbounded">
                     <xs:complexType>
                         <xs:sequence>
-                            <xs:element name="accessiondate" type="xs:string"
+                            <xs:element name="accessionDate" type="xs:string"
                                 minOccurs="1" />
                             <!-- uri to retrive acquisition details -->
                             <xs:element name="uri" type="xs:anyURI"
index 4c3f15ce030333b5ea9ae0ad0658c8f181c2a5fc..c178e25027df43a4e585b328dc73e096efbe5ebf 100644 (file)
@@ -121,7 +121,7 @@ public class AcquisitionDocumentModelHandler
         while(iter.hasNext()){
             DocumentModel docModel = iter.next();
             AcquisitionListItem listItem = new AcquisitionListItem();
-            listItem.setAccessiondate((String) docModel.getProperty(getServiceContext().getCommonPartLabel(),
+            listItem.setAccessionDate((String) docModel.getProperty(getServiceContext().getCommonPartLabel(),
                     AcquisitionJAXBSchema.ACCESSIONDATE));
             //need fully qualified context for URI
             String id = docModel.getId();
index 45f303aa22c12942e8aece3b29d694b7c6081e01..5e05751faa1cbc435afc7ac7476d7282b4584f2d 100644 (file)
     <name>services.client</name>\r
 \r
     <dependencies>\r
+        <dependency>\r
+            <groupId>org.collectionspace.services</groupId>\r
+            <artifactId>org.collectionspace.services.common</artifactId>\r
+            <version>1.0</version>\r
+        </dependency>\r
         <dependency>\r
             <groupId>org.slf4j</groupId>\r
             <artifactId>slf4j-api</artifactId>\r
index 0391baf5e85385a8c6877edc907754815eb82959..efeb736ec1b546140ac81dd649bddb0e2c95a5cc 100644 (file)
@@ -33,6 +33,7 @@ import javax.xml.bind.Marshaller;
 
 import javax.xml.bind.Unmarshaller;
 import org.collectionspace.services.client.TestServiceClient;
+import org.collectionspace.services.common.context.ServiceContext;
 
 import org.jboss.resteasy.client.ClientRequest;
 import org.jboss.resteasy.client.ClientResponse;
@@ -266,7 +267,8 @@ public abstract class AbstractServiceTest implements ServiceTest {
 
     @Override
     public String getCommonPartName() {
-        return getServicePathComponent() + "-common";
+        return getServicePathComponent() + ServiceContext.PART_LABEL_SEPERATOR + 
+               ServiceContext.PART_COMMON_LABEL;
     }
 
     // ---------------------------------------------------------------
index 8ab4cb2e023a1ae89eb63faf973845c5807515ba..9b58b6ea7572995c86a03cd96ab3d56d00829fff 100644 (file)
@@ -1,15 +1,15 @@
 <?xml version="1.0"?>
 <component name="org.collectionspace.collectionobject.coreTypes">
     <extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema">
-        <schema name="collectionobjects-common" prefix="collectionobjects-common" src="schemas/collectionobjects-common.xsd"/>
-        <schema name="collectionobjects-naturalhistory" prefix="collectionobjects-naturalhistory" src="schemas/collectionobjects-naturalhistory.xsd"/>
+        <schema name="collectionobjects_common" prefix="collectionobjects_common" src="schemas/collectionobjects_common.xsd"/>
+        <schema name="collectionobjects_naturalhistory" prefix="collectionobjects_naturalhistory" src="schemas/collectionobjects_naturalhistory.xsd"/>
     </extension>
     <extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype">
         <doctype name="CollectionObject" extends="Document">
             <schema name="common"/>
             <schema name="dublincore"/>
-            <schema name="collectionobjects-common"/>
-            <schema name="collectionobjects-naturalhistory"/>
+            <schema name="collectionobjects_common"/>
+            <schema name="collectionobjects_naturalhistory"/>
         </doctype>
     </extension>
 </component>
index ee35a77d43fbaefd020ff02d0157aeb860dd4682..a27ee1ff7c711b6dbf6bd92c31f5c30ce0835365 100644 (file)
       <rows>
         <row><widget>objectNumber</widget></row>
         <row><widget>otherNumber</widget></row>
+        <row><widget>otherNumberType</widget></row>
         <row><widget>briefDescription</widget></row>
         <row><widget>comments</widget></row>
         <row><widget>distFeatures</widget></row>
+        <row><widget>numberOfObjects</widget></row>
+        
         <row><widget>objectName</widget></row>
+        <row><widget>objectNameCurrency</widget></row>
+        <row><widget>objectNameNote</widget></row>
+        <row><widget>objectNameSystem</widget></row>
+        <row><widget>objectNameType</widget></row>
+        <row><widget>objectNameLanguage</widget></row>
+        
         <row><widget>responsibleDept</widget></row>
         <row><widget>title</widget></row>
+        <row><widget>objectTitleLanguage</widget></row>
+        <row><widget>titleTranslation</widget></row>
+        <row><widget>titleType</widget></row>
       </rows>
 
       <widget name="objectNumber" type="text">
@@ -26,7 +38,7 @@
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="collectionobject">objectNumber</field>
+          <field schema="collectionobjects_common">objectNumber</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="collectionobject">otherNumber</field>
+          <field schema="collectionobjects_common">otherNumber</field>
+        </fields>
+        <properties widgetMode="edit">
+          <property name="styleClass">dataInputText</property>
+        </properties>
+      </widget>
+      
+      <widget name="otherNumberType" type="text">
+        <labels>
+          <label mode="any">otherNumberType</label>
+        </labels>
+        <translated>true</translated>
+        <fields>
+          <field schema="collectionobjects_common">otherNumberType</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
@@ -52,7 +77,7 @@
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="collectionobject">briefDescription</field>
+          <field schema="collectionobjects_common">briefDescription</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
@@ -65,7 +90,7 @@
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="collectionobject">comments</field>
+          <field schema="collectionobjects_common">comments</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="collectionobject">distFeatures</field>
+          <field schema="collectionobjects_common">distFeatures</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="collectionobject">objectName</field>
+          <field schema="collectionobjects_common">objectName</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="collectionobject">responsibleDept</field>
+          <field schema="collectionobjects_common">responsibleDept</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="collectionobject">title</field>
+          <field schema="collectionobjects_common">title</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
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
deleted file mode 100644 (file)
index d37b63e..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<?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/collectionobject/"\r
-    xmlns="http://collectionspace.org/collectionobject/"\r
-    targetNamespace="http://collectionspace.org/collectionobject/"\r
-    version="0.1">\r
-\r
-    <xs:element name="objectNumber" type="xs:string"/>\r
-    <xs:element name="otherNumber" type="xs:string"/>\r
-    <xs:element name="briefDescription" type="xs:string"/>\r
-    <xs:element name="comments" type="xs:string"/>\r
-    <xs:element name="distFeatures" type="xs:string"/>\r
-    <xs:element name="objectName" type="xs:string"/>\r
-    <xs:element name="responsibleDept" type="xs:string"/>\r
-    <xs:element name="title" type="xs:string"/>\r
-    \r
-</xs:schema>\r
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
new file mode 100644 (file)
index 0000000..78f6e9f
--- /dev/null
@@ -0,0 +1,119 @@
+<?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/collectionobject/"\r
+    xmlns="http://collectionspace.org/collectionobject/"\r
+    targetNamespace="http://collectionspace.org/collectionobject/"\r
+    version="0.1">\r
+\r
+                <!-- Object identification information -->\r
+                <xs:element name="objectNumber" type="xs:string"/>\r
+                <xs:element name="otherNumber" type="xs:string"/>\r
+                <xs:element name="otherNumberType" type="xs:string"/>\r
+                <xs:element name="briefDescription" type="xs:string"/>\r
+                <xs:element name="comments" type="xs:string"/>\r
+                <xs:element name="distFeatures" type="xs:string"/>\r
+                <xs:element name="numberOfObjects" type="xs:string"/>\r
+                <xs:element name="objectName" type="xs:string"/>\r
+                <xs:element name="objectNameCurrency" type="xs:string"/>\r
+                <xs:element name="objectNameNote" type="xs:string"/>\r
+                <xs:element name="objectNameSystem" type="xs:string"/>\r
+                <xs:element name="objectNameType" type="xs:string"/>\r
+                <xs:element name="objectNameLanguage" type="xs:string"/>\r
+                <xs:element name="responsibleDept" type="xs:string"/>\r
+                <xs:element name="title" type="xs:string"/>\r
+                <xs:element name="objectTitleLanguage" type="xs:string"/>\r
+                <xs:element name="titleTranslation" type="xs:string"/>\r
+                <xs:element name="titleType" type="xs:string"/>\r
+                \r
+                       <!-- Object description information -->\r
+                <xs:element name="age" type="xs:string" />\r
+                <xs:element name="ageQualifier" type="xs:string" />\r
+                <xs:element name="ageUnit" type="xs:string" />\r
+                <xs:element name="color" type="xs:string" />\r
+\r
+                       <!-- Object description Content information -->                \r
+                <xs:element name="contentActivity" type="xs:string" />\r
+                <xs:element name="contentConcept" type="xs:string" />\r
+                <xs:element name="contentDate" type="xs:string" />\r
+                <xs:element name="contentDescription" type="xs:string" />\r
+                <xs:element name="contentEventName" type="xs:string" />\r
+                <xs:element name="contentEventNameType" type="xs:string" />\r
+                <xs:element name="contentNote" type="xs:string" />\r
+                <xs:element name="contentLanguage" type="xs:string" />\r
+                <xs:element name="contentObject" type="xs:string" />\r
+                <xs:element name="contentObjectType" type="xs:string" />\r
+                <xs:element name="contentOrganization" type="xs:string" />\r
+                <xs:element name="contentOther" type="xs:string" />\r
+                <xs:element name="contentOtherType" type="xs:string" />\r
+                <xs:element name="contentPeople" type="xs:string" />\r
+                <xs:element name="contentPerson" type="xs:string" />\r
+                <xs:element name="contentPlace" type="xs:string" />\r
+                <xs:element name="contentPosition" type="xs:string" />\r
+                <xs:element name="copyNumber" type="xs:string" />\r
+\r
+                       <!-- Object description Dimension information -->\r
+                <xs:element name="dimension" type="xs:string" />\r
+                <xs:element name="dimensionMeasuredPart" type="xs:string" />\r
+                <xs:element name="dimensionMeasurementUnit" type="xs:string" />\r
+                <xs:element name="dimensionValue" type="xs:string" />\r
+                <xs:element name="dimensionValueDate" type="xs:string" />\r
+                <xs:element name="dimensionValueQualifier" type="xs:string" />\r
+                \r
+                <xs:element name="editionNumber" type="xs:string" />\r
+                <xs:element name="form" type="xs:string" />\r
+\r
+                       <!-- Object description Inscription content information -->\r
+                <xs:element name="inscriptionContent" type="xs:string" />\r
+                <xs:element name="inscriber" type="xs:string" />\r
+                <xs:element name="inscriptionDate" type="xs:string" />\r
+                <xs:element name="inscriptionInterpretation" type="xs:string" />\r
+                <xs:element name="inscriptionLanguage" type="xs:string" />\r
+                <xs:element name="inscriptionMethod" type="xs:string" />\r
+                <xs:element name="inscriptionPosition" type="xs:string" />\r
+                <xs:element name="inscriptionScript" type="xs:string" />\r
+                <xs:element name="inscriptionTranslation" type="xs:string" />\r
+                <xs:element name="inscriptionTransliteration" type="xs:string" />\r
+                <xs:element name="inscriptionType" type="xs:string" />\r
+                \r
+\r
+                       <!-- Object description Inscription description information -->\r
+                           <xs:element name="inscriptionDescription" type="xs:string" />\r
+                <xs:element name="inscriptionDescriptionInscriber" type="xs:string" />\r
+                <xs:element name="inscriptionDescriptionDate" type="xs:string" />\r
+                <xs:element name="inscriptionDescriptionInterpretation" type="xs:string" />\r
+                <xs:element name="inscriptionDescriptionMethod" type="xs:string" />\r
+                <xs:element name="inscriptionDescriptionPosition" type="xs:string" />\r
+                <xs:element name="inscriptionDescriptionType" type="xs:string" />\r
+\r
+                       <!-- Object description Material information -->\r
+                               <xs:element name="material" type="xs:string" />\r
+                               <xs:element name="materialComponent" type="xs:string" />\r
+                               <xs:element name="materialComponentNote" type="xs:string" />\r
+                               <xs:element name="materialName" type="xs:string" />\r
+                               <xs:element name="materialSource" type="xs:string" />\r
+\r
+                       <!-- Misc Object description information -->\r
+                               <xs:element name="objectStatus" type="xs:string" />\r
+                               <xs:element name="phase" type="xs:string" />\r
+                               <xs:element name="physicalDescription" type="xs:string" />\r
+                               <xs:element name="sex" type="xs:string" />\r
+                               <xs:element name="style" type="xs:string" />\r
+                               <xs:element name="technicalAttribute" type="xs:string" />\r
+                               <xs:element name="technicalAttributeMeasurement" type="xs:string" />\r
+                               <xs:element name="technicalAttributeMeasurementUnit" type="xs:string" />\r
+                               <xs:element name="objectComponentName" type="xs:string" />\r
+                               <xs:element name="objectComponentInformation" type="xs:string" />\r
+                               \r
+                       <!-- Object description Date information -->\r
+                               <xs:element name="dateAssociation" type="xs:string" />\r
+                               <xs:element name="dateEarliestSingle" type="xs:string" />\r
+                               <xs:element name="dateEarliestSingleCertainty" type="xs:string" />\r
+                               <xs:element name="dateEarlierstSingleQualifier" type="xs:string" />\r
+                               <xs:element name="dateLatest" type="xs:string" />\r
+                               <xs:element name="dateLatestCertainty" type="xs:string" />\r
+                               <xs:element name="dateLatestQualifier" type="xs:string" />\r
+                               <xs:element name="datePeriod" type="xs:string" />\r
+                               <xs:element name="dateText" type="xs:string" />\r
+    \r
+</xs:schema>\r
index a8e4999057b2d96587e38f7723047faa66fbaef1..60b43b6f4ee86cd92f078da8e8ede23765e9410b 100644 (file)
@@ -53,6 +53,11 @@ public class CollectionObjectServiceTest extends AbstractServiceTest {
     final String SERVICE_PATH_COMPONENT = "collectionobjects";
     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
     // ---------------------------------------------------------------
diff --git a/services/collectionobject/jaxb/src/main/resources/collectionobjects-common.xsd b/services/collectionobject/jaxb/src/main/resources/collectionobjects-common.xsd
deleted file mode 100644 (file)
index e34e35c..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<xs:schema 
-  xmlns:xs="http://www.w3.org/2001/XMLSchema"
-  xmlns:ns="http://collectionspace.org/servics/collectionobject"
-  xmlns="http://collectionspace.org/services/collectionobject"
-  targetNamespace="http://collectionspace.org/services/collectionobject"
-  version="0.1"
->
-
-<!-- avoid XmlRootElement nightnmare, see http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html-->
-
-    <!-- collectionobjects-common -->
-    <!-- convention: <servicename>-common  -->
-    <xs:element name="collectionobjects-common">
-        <xs:complexType>
-            <xs:sequence>
-                <xs:element name="csid" type="xs:string" />
-                <xs:element name="objectNumber" type="xs:string"/>
-                <xs:element name="otherNumber" type="xs:string"/>
-                <xs:element name="briefDescription" type="xs:string"/>
-                <xs:element name="comments" type="xs:string"/>
-                <xs:element name="distFeatures" type="xs:string"/>
-                <xs:element name="objectName" type="xs:string"/>
-                <xs:element name="responsibleDept" type="xs:string"/>
-                <xs:element name="title" type="xs:string"/>
-            </xs:sequence>
-        </xs:complexType>
-    </xs:element>
-    
-    <!-- collection objects as in nuxeo repository -->
-    <xs:element name="collectionobjects-common-list">
-        <xs:complexType>
-            <xs:sequence>
-                <xs:element name="collection-object-list-item" maxOccurs="unbounded">
-                    <xs:complexType>
-                        <xs:sequence>
-                            <xs:element name="objectNumber" type="xs:string"
-                                minOccurs="1" />
-                            <!-- uri to retrive collection object details -->
-                            <xs:element name="uri" type="xs:anyURI"
-                                minOccurs="1" />
-                            <xs:element name="csid" type="xs:string"
-                                minOccurs="1" />
-                        </xs:sequence>
-                    </xs:complexType>
-                </xs:element>
-            </xs:sequence>
-        </xs:complexType>
-    </xs:element>
-    
-</xs:schema>
-
diff --git a/services/collectionobject/jaxb/src/main/resources/collectionobjects_common.xsd b/services/collectionobject/jaxb/src/main/resources/collectionobjects_common.xsd
new file mode 100644 (file)
index 0000000..e0995e7
--- /dev/null
@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<xs:schema 
+  xmlns:xs="http://www.w3.org/2001/XMLSchema"
+  xmlns:ns="http://collectionspace.org/servics/collectionobject"
+  xmlns="http://collectionspace.org/services/collectionobject"
+  targetNamespace="http://collectionspace.org/services/collectionobject"
+  version="0.1"
+>
+
+<!-- avoid XmlRootElement nightnmare, see http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html-->
+
+    <!-- collectionobjects-common -->
+    <!-- convention: <servicename>-common  -->
+    <xs:element name="collectionobjects_common">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element name="csid" type="xs:string" />
+                
+                <!-- Object identification information -->
+                <xs:element name="objectNumber" type="xs:string"/>
+                <xs:element name="otherNumber" type="xs:string"/>
+                <xs:element name="otherNumberType" type="xs:string"/>
+                <xs:element name="briefDescription" type="xs:string"/>
+                <xs:element name="comments" type="xs:string"/>
+                <xs:element name="distFeatures" type="xs:string"/>
+                <xs:element name="numberOfObjects" type="xs:string"/>
+                <xs:element name="objectName" type="xs:string"/>
+                <xs:element name="objectNameCurrency" type="xs:string"/>
+                <xs:element name="objectNameNote" type="xs:string"/>
+                <xs:element name="objectNameSystem" type="xs:string"/>
+                <xs:element name="objectNameType" type="xs:string"/>
+                <xs:element name="objectNameLanguage" type="xs:string"/>
+                <xs:element name="responsibleDept" type="xs:string"/>
+                <xs:element name="title" type="xs:string"/>
+                <xs:element name="objectTitleLanguage" type="xs:string"/>
+                <xs:element name="titleTranslation" type="xs:string"/>
+                <xs:element name="titleType" type="xs:string"/>
+                
+                       <!-- Object description information -->
+                <xs:element name="age" type="xs:string" />
+                <xs:element name="ageQualifier" type="xs:string" />
+                <xs:element name="ageUnit" type="xs:string" />
+                <xs:element name="color" type="xs:string" />
+
+                       <!-- Object description Content information -->                
+                <xs:element name="contentActivity" type="xs:string" />
+                <xs:element name="contentConcept" type="xs:string" />
+                <xs:element name="contentDate" type="xs:string" />
+                <xs:element name="contentDescription" type="xs:string" />
+                <xs:element name="contentEventName" type="xs:string" />
+                <xs:element name="contentEventNameType" type="xs:string" />
+                <xs:element name="contentNote" type="xs:string" />
+                <xs:element name="contentLanguage" type="xs:string" />
+                <xs:element name="contentObject" type="xs:string" />
+                <xs:element name="contentObjectType" type="xs:string" />
+                <xs:element name="contentOrganization" type="xs:string" />
+                <xs:element name="contentOther" type="xs:string" />
+                <xs:element name="contentOtherType" type="xs:string" />
+                <xs:element name="contentPeople" type="xs:string" />
+                <xs:element name="contentPerson" type="xs:string" />
+                <xs:element name="contentPlace" type="xs:string" />
+                <xs:element name="contentPosition" type="xs:string" />
+                <xs:element name="copyNumber" type="xs:string" />
+
+                       <!-- Object description Dimension information -->
+                <xs:element name="dimension" type="xs:string" />
+                <xs:element name="dimensionMeasuredPart" type="xs:string" />
+                <xs:element name="dimensionMeasurementUnit" type="xs:string" />
+                <xs:element name="dimensionValue" type="xs:string" />
+                <xs:element name="dimensionValueDate" type="xs:string" />
+                <xs:element name="dimensionValueQualifier" type="xs:string" />
+                
+                <xs:element name="editionNumber" type="xs:string" />
+                <xs:element name="form" type="xs:string" />
+
+                       <!-- Object description Inscription content information -->
+                <xs:element name="inscriptionContent" type="xs:string" />
+                <xs:element name="inscriber" type="xs:string" />
+                <xs:element name="inscriptionDate" type="xs:string" />
+                <xs:element name="inscriptionInterpretation" type="xs:string" />
+                <xs:element name="inscriptionLanguage" type="xs:string" />
+                <xs:element name="inscriptionMethod" type="xs:string" />
+                <xs:element name="inscriptionPosition" type="xs:string" />
+                <xs:element name="inscriptionScript" type="xs:string" />
+                <xs:element name="inscriptionTranslation" type="xs:string" />
+                <xs:element name="inscriptionTransliteration" type="xs:string" />
+                <xs:element name="inscriptionType" type="xs:string" />
+                
+
+                       <!-- Object description Inscription description information -->
+                           <xs:element name="inscriptionDescription" type="xs:string" />
+                <xs:element name="inscriptionDescriptionInscriber" type="xs:string" />
+                <xs:element name="inscriptionDescriptionDate" type="xs:string" />
+                <xs:element name="inscriptionDescriptionInterpretation" type="xs:string" />
+                <xs:element name="inscriptionDescriptionMethod" type="xs:string" />
+                <xs:element name="inscriptionDescriptionPosition" type="xs:string" />
+                <xs:element name="inscriptionDescriptionType" type="xs:string" />
+
+                       <!-- Object description Material information -->
+                               <xs:element name="material" type="xs:string" />
+                               <xs:element name="materialComponent" type="xs:string" />
+                               <xs:element name="materialComponentNote" type="xs:string" />
+                               <xs:element name="materialName" type="xs:string" />
+                               <xs:element name="materialSource" type="xs:string" />
+
+                       <!-- Misc Object description information -->
+                               <xs:element name="objectStatus" type="xs:string" />
+                               <xs:element name="phase" type="xs:string" />
+                               <xs:element name="physicalDescription" type="xs:string" />
+                               <xs:element name="sex" type="xs:string" />
+                               <xs:element name="style" type="xs:string" />
+                               <xs:element name="technicalAttribute" type="xs:string" />
+                               <xs:element name="technicalAttributeMeasurement" type="xs:string" />
+                               <xs:element name="technicalAttributeMeasurementUnit" type="xs:string" />
+                               <xs:element name="objectComponentName" type="xs:string" />
+                               <xs:element name="objectComponentInformation" type="xs:string" />
+                               
+                       <!-- Object description Date information -->
+                               <xs:element name="dateAssociation" type="xs:string" />
+                               <xs:element name="dateEarliestSingle" type="xs:string" />
+                               <xs:element name="dateEarliestSingleCertainty" type="xs:string" />
+                               <xs:element name="dateEarlierstSingleQualifier" type="xs:string" />
+                               <xs:element name="dateLatest" type="xs:string" />
+                               <xs:element name="dateLatestCertainty" type="xs:string" />
+                               <xs:element name="dateLatestQualifier" type="xs:string" />
+                               <xs:element name="datePeriod" type="xs:string" />
+                               <xs:element name="dateText" type="xs:string" />
+                
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+    
+    <!-- collection objects as in nuxeo repository -->
+    <xs:element name="collectionobjects-common-list">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element name="collection-object-list-item" maxOccurs="unbounded">
+                    <xs:complexType>
+                        <xs:sequence>
+                            <xs:element name="objectNumber" type="xs:string"
+                                minOccurs="1" />
+                            <!-- uri to retrive collection object details -->
+                            <xs:element name="uri" type="xs:anyURI"
+                                minOccurs="1" />
+                            <xs:element name="csid" type="xs:string"
+                                minOccurs="1" />
+                        </xs:sequence>
+                    </xs:complexType>
+                </xs:element>
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+    
+</xs:schema>
+
index 9355c744aad267b078c7e0eaba973d9350ca2e93..05e8caf716b60dfbcb76ede3abf9167efac52eb9 100644 (file)
                 </service:part>
                 <service:part id="1" control_group="Managed"
                             versionable="true" auditable="false"
-                            label="collectionobjects-common" updated="" order="1">
+                            label="collectionobjects_common" updated="" order="1">
                     <service:content contentType="application/xml">
                         <service:xmlContent
                         namespaceURI="http://collectionspace.org/services/collectionobject"
-                        schemaLocation="http://collectionspace.org/services/collectionobject http://services.collectionspace.org/collectionobject/collectionobjects-common.xsd">
+                        schemaLocation="http://collectionspace.org/services/collectionobject http://services.collectionspace.org/collectionobject/collectionobjects_common.xsd">
                         </service:xmlContent>
                     </service:content>
                 </service:part>
                 <service:part id="2" control_group="Managed"
                             versionable="true" auditable="false"
-                            label="collectionobjects-naturalhistory" updated="" order="2">
+                            label="collectionobjects_naturalhistory" updated="" order="2">
                     <service:content contentType="application/xml">
                         <service:xmlContent
                         namespaceURI="http://collectionspace.org/services/collectionobject/domain/naturalhistory"
-                        schemaLocation="http://collectionspace.org/services/collectionobject/domain/naturalhistory http://collectionspace.org/services/collectionobject/domain/collectionobjects-naturalhistory.xsd">
+                        schemaLocation="http://collectionspace.org/services/collectionobject/domain/naturalhistory http://collectionspace.org/services/collectionobject/domain/collectionobjects_naturalhistory.xsd">
                         </service:xmlContent>
                     </service:content>
                 </service:part>
                 </service:part>
                 <service:part id="1" control_group="Managed"
                             versionable="true" auditable="false"
-                            label="intakes-common" updated="" order="1">
+                            label="intakes_common" updated="" order="1">
                     <service:content contentType="application/xml">
                         <service:xmlContent
                         namespaceURI="http://collectionspace.org/services/intake"
-                        schemaLocation="http://collectionspace.org/services/intake http://services.collectionspace.org/intake/intakes-common.xsd">
+                        schemaLocation="http://collectionspace.org/services/intake http://services.collectionspace.org/intake/intakes_common.xsd">
                         </service:xmlContent>
                     </service:content>
                 </service:part>
                 </service:part>
                 <service:part id="1" control_group="Managed"
                             versionable="true" auditable="false"
-                            label="vocabularies-common" updated="" order="1">
+                            label="vocabularies_common" updated="" order="1">
                     <service:content contentType="application/xml">
                         <service:xmlContent
                         namespaceURI="http://collectionspace.org/services/vocabulary"
-                        schemaLocation="http://collectionspace.org/services/vocabulary http://services.collectionspace.org/vocabulary/vocabularies-common.xsd">
+                        schemaLocation="http://collectionspace.org/services/vocabulary http://services.collectionspace.org/vocabulary/vocabularies_common.xsd">
                         </service:xmlContent>
                     </service:content>
                 </service:part>
                 </service:part>
                 <service:part id="1" control_group="Managed"
                             versionable="true" auditable="false"
-                            label="relations-common" updated="" order="1">
+                            label="relations_common" updated="" order="1">
                     <service:content contentType="application/xml">
                         <service:xmlContent
                         namespaceURI="http://collectionspace.org/services/relation"
-                        schemaLocation="http://collectionspace.org/services/relation http://services.collectionspace.org/relation/relations-common.xsd">
+                        schemaLocation="http://collectionspace.org/services/relation http://services.collectionspace.org/relation/relations_common.xsd">
                         </service:xmlContent>
                     </service:content>
                 </service:part>
index fdebfe5d420d899ab7f7be365a4b0192c8aa9f39..333a5502b2e3469350c758516e36083faa6576ad 100644 (file)
@@ -49,7 +49,7 @@ public abstract class AbstractServiceContext<T1, T2>
     Map<String, ObjectPartType> objectPartMap = new HashMap<String, ObjectPartType>();
     private ServiceBindingType serviceBinding;
     private TenantBindingType tenantBinding;
-
+    
     public AbstractServiceContext(String serviceName) {
         TenantBindingConfigReader tReader =
                 ServiceMain.getInstance().getTenantBindingConfigReader();
@@ -82,7 +82,7 @@ public abstract class AbstractServiceContext<T1, T2>
      */
     @Override
     public String getCommonPartLabel() {
-        return getServiceName().toLowerCase() + "-common";
+        return getServiceName().toLowerCase() + PART_LABEL_SEPERATOR + PART_COMMON_LABEL;
     }
 
     @Override
index ab63c0e11363d8acf6eaa0a82b39708607703549..f3587cc57213187acb9a4296994cbc7c982e8387 100644 (file)
@@ -36,6 +36,12 @@ import org.collectionspace.services.common.service.ServiceBindingType;
  */
 public interface ServiceContext<T1, T2> {
 
+    /**
+     * The charactor used to separtate the words in a part label
+     */
+    public static final String PART_LABEL_SEPERATOR = "_";
+    public static final String PART_COMMON_LABEL = "common";
+       
     /**
      * getTenantId get tenant id
      * @return tenant id
index 367def58f9d152a9aeb36b55a896cd31929a8c48..03a6d3d442b6cd5000bbae824ffba19be3aec5e7 100644 (file)
@@ -173,7 +173,7 @@ public abstract class AbstractDocumentHandler<T, TL>
         StringTokenizer tkz = new StringTokenizer(qProp, ":");
         if(tkz.countTokens() != 2){
             String msg = "Property must be in the form xxx:yyy, " +
-                    "e.g. collectionobjects-common:objectNumber";
+                    "e.g. collectionobjects_common:objectNumber";
             logger.error(msg);
             throw new IllegalArgumentException(msg);
         }
similarity index 96%
rename from services/common/src/main/resources/relations-common.xsd
rename to services/common/src/main/resources/relations_common.xsd
index 8bbc6587c6e74cb94b09eda7ab019863bcf40ce5..bf3db87afe45e220eca10095d293a0aa8556e4d7 100644 (file)
@@ -21,7 +21,7 @@
     >\r
 \r
     <!-- Relation -->\r
-    <xs:element name="relations-common">\r
+    <xs:element name="relations_common">\r
         <xs:complexType>\r
             <xs:sequence>\r
                <xs:element name="csid" type="xs:string" />            \r
index 2fa6e50a649d31eb3f9e4e6925dd33b6399d0df1..98b355bb641d79a3a118533dc3616f7b45459026 100644 (file)
@@ -1,13 +1,13 @@
 <?xml version="1.0"?>
 <component name="org.collectionspace.intake.coreTypes">
   <extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema">
-    <schema name="intakes-common" prefix="intakes-common" src="schemas/intakes-common.xsd"/>
+    <schema name="intakes_common" prefix="intakes_common" src="schemas/intakes_common.xsd"/>
   </extension>
   <extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype">
     <doctype name="Intake" extends="Document">
       <schema name="common"/>
       <schema name="dublincore"/>
-      <schema name="intakes-common"/>
+      <schema name="intakes_common"/>
     </doctype>
   </extension>
 </component>
index a651ba18d6014f27b5da3940961d3487c28bca8e..63d04b0480d1ff22339893c5ef0a461975367495 100644 (file)
@@ -28,7 +28,7 @@
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="intake">currentOwner</field>
+          <field schema="intakes_common">currentOwner</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
@@ -41,7 +41,7 @@
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="intake">depositor</field>
+          <field schema="intakes_common">depositor</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
@@ -54,7 +54,7 @@
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="intake">depositorsRequirements</field>
+          <field schema="intakes_common">depositorsRequirements</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
@@ -67,7 +67,7 @@
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="intake">entryDate</field>
+          <field schema="intakes_common">entryDate</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
@@ -80,7 +80,7 @@
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="intake">entryMethod</field>
+          <field schema="intakes_common">entryMethod</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
@@ -93,7 +93,7 @@
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="intake">entryNote</field>
+          <field schema="intakes_common">entryNote</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="intake">entryNumber</field>
+          <field schema="intakes_common">entryNumber</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="intake">entryReason</field>
+          <field schema="intakes_common">entryReason</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="intake">packingNote</field>
+          <field schema="intakes_common">packingNote</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="intake">returnDate</field>
+          <field schema="intakes_common">returnDate</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
index 485eafa756f6c6f0f8f64cd57fd1b6dde4c0a4d2..8f01f1f0b5de82a947720889c992e7819b669b66 100644 (file)
@@ -12,7 +12,7 @@
 <!-- See http://wiki.collectionspace.org/display/collectionspace/Intake+Schema -->    
     
     <!-- intake  -->
-    <xs:element name="intakes-common">
+    <xs:element name="intakes_common">
         <xs:complexType>
             <xs:sequence>
                 <xs:element name="csid" type="xs:string" />
index 151b2c157fa3c1cd53cdd6942060aa6c145e1788..b017466495274ff73672c050d58ab00fe8e4215b 100644 (file)
 -->
 <component name="org.collectionspace.relation.coreTypes">
   <extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema">
-    <schema name="relations-common" prefix="relations-common" src="schemas/relations-common.xsd"/>
+    <schema name="relations_common" prefix="relations_common" src="schemas/relations_common.xsd"/>
   </extension>
   <extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype">
     <doctype name="Relation" extends="Document">
       <schema name="common"/>
       <schema name="dublincore"/>
-      <schema name="relations-common"/>
+      <schema name="relations_common"/>
     </doctype>
   </extension>
 </component>
index e9e3b748d6826df6ccdf46c30ca72a29f55c8e6a..ff58c8e364771b78e92a77ceb5f8efe662a43a50 100644 (file)
         <layout name="relation">
             <templates>
                 <template mode="any">/layouts/layout_default_template.xhtml</template>
-            </templates>
-            
+            </templates>            
             <rows>
-                <row>
-                    <widget>relationtype</widget>
-                </row>
+                <row><widget>relationshipType</widget></row>
+                <row><widget>documentId1</widget></row>
+                <row><widget>documentType1</widget></row>
+                <row><widget>documentId2</widget></row>
+                <row><widget>documentType2</widget></row>
             </rows>
             
-            <widget name="relationtype" type="template">
+            <widget name="relationshipType" type="text">
+                <labels>
+                    <label mode="any">Relationship Type</label>
+                </labels>
+                <translated>true</translated>
                 <fields>
-                    <field>rel:relationtype</field>
+                    <field schema="relations_common">relationshipType</field>
                 </fields>
-                <properties mode="any">
-                    <property name="template">
-                        /widgets/complex_widget_template.xhtml
-                    </property>
+                <properties widgetMode="edit">
+                    <property name="styleClass">dataInputText</property>
+                </properties>
+            </widget>
+            
+            <widget name="documentId1" type="text">
+                <labels>
+                    <label mode="any">Document ID 1</label>
+                </labels>
+                <translated>true</translated>
+                <fields>
+                    <field schema="relations_common">documentId1</field>
+                </fields>
+                <properties widgetMode="edit">
+                    <property name="styleClass">dataInputText</property>
+                </properties>
+            </widget>
+            
+            <widget name="documentType1" type="text">
+                <labels>
+                    <label mode="any">Document Type 1</label>
+                </labels>
+                <translated>true</translated>
+                <fields>
+                    <field schema="relations_common">documentType1</field>
+                </fields>
+                <properties widgetMode="edit">
+                    <property name="styleClass">dataInputText</property>
                 </properties>
-                
-                <subWidgets>
-                    
-                    <widget name="documentId1" type="text">
-                        <labels>
-                            <label mode="any">Document ID 1</label>
-                        </labels>
-                        <translated>true</translated>
-                        <fields>
-                            <field>documentId1</field>
-                        </fields>
-                        <properties widgetMode="edit">
-                            <property name="styleClass">dataInputText</property>
-                        </properties>
-                    </widget>
-                    
-                    <widget name="documentType1" type="text">
-                        <labels>
-                            <label mode="any">Document Type 1</label>
-                        </labels>
-                        <translated>true</translated>
-                        <fields>
-                            <field>documentType1</field>
-                        </fields>
-                        <properties widgetMode="edit">
-                            <property name="styleClass">dataInputText</property>
-                        </properties>
-                    </widget>
-                    
-                    <widget name="documentId2" type="text">
-                        <labels>
-                            <label mode="any">Document ID 2</label>
-                        </labels>
-                        <translated>true</translated>
-                        <fields>
-                            <field>documentId2</field>
-                        </fields>
-                        <properties widgetMode="edit">
-                            <property name="styleClass">dataInputText</property>
-                        </properties>
-                    </widget>
-                    
-                    <widget name="documentType2" type="text">
-                        <labels>
-                            <label mode="any">Document Type 2</label>
-                        </labels>
-                        <translated>true</translated>
-                        <fields>
-                            <field>documentType2</field>
-                        </fields>
-                        <properties widgetMode="edit">
-                            <property name="styleClass">dataInputText</property>
-                        </properties>
-                    </widget>
-                    
-                </subWidgets>
             </widget>
             
+            <widget name="documentId2" type="text">
+                <labels>
+                    <label mode="any">Document ID 2</label>
+                </labels>
+                <translated>true</translated>
+                <fields>
+                    <field schema="relations_common">documentId2</field>
+                </fields>
+                <properties widgetMode="edit">
+                    <property name="styleClass">dataInputText</property>
+                </properties>
+            </widget>
+            
+            <widget name="documentType2" type="text">
+                <labels>
+                    <label mode="any">Document Type 2</label>
+                </labels>
+                <translated>true</translated>
+                <fields>
+                    <field schema="relations_common">documentType2</field>
+                </fields>
+                <properties widgetMode="edit">
+                    <property name="styleClass">dataInputText</property>
+                </properties>
+            </widget>
+                    
         </layout>
     </extension>
 </component>
index 7521aa8f46325357ec920a446a979c8dd90f2a68..fd3f4448b780f02c9acdcff67840014619bf8b41 100644 (file)
@@ -1,23 +1,23 @@
 <?xml version="1.0"?>
 <component name="org.collectionspace.vocabulary.coreTypes">
   <extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema">
-    <schema name="vocabularies-common" prefix="vocabularies-common" src="schemas/vocabularies-common.xsd"/>
+    <schema name="vocabularies_common" prefix="vocabularies_common" src="schemas/vocabularies_common.xsd"/>
   </extension>
   <extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema">
-    <schema name="vocabularyitems-common" prefix="vocabularyitems-common" src="schemas/vocabularyitems-common.xsd"/>
+    <schema name="vocabularyitems_common" prefix="vocabularyitems_common" src="schemas/vocabularyitems_common.xsd"/>
   </extension>
   <extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype">
     <doctype name="Vocabulary" extends="Document">
       <schema name="common"/>
       <schema name="dublincore"/>
-      <schema name="vocabularies-common"/>
+      <schema name="vocabularies_common"/>
     </doctype>
   </extension>
   <extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype">
     <doctype name="VocabularyItem" extends="Document">
       <schema name="common"/>
       <schema name="dublincore"/>
-      <schema name="vocabularyitems-common"/>
+      <schema name="vocabularyitems_common"/>
     </doctype>
   </extension>
 </component>
index 166b39d35bd424f44a27517c4bc98ca3634eb634..87fa5ccb50b5e01b626e102cb1581acaeee0a236 100644 (file)
@@ -20,7 +20,7 @@
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="vocabulary">displayName</field>
+          <field schema="vocabularies_common">displayName</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
@@ -33,7 +33,7 @@
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="vocabulary">vocabType</field>
+          <field schema="vocabularies_common">vocabType</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
@@ -60,7 +60,7 @@
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="vocabularyitem">displayName</field>
+          <field schema="vocabularyitems_common">displayName</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
@@ -73,7 +73,7 @@
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="vocabularyitem">inVocabulary</field>
+          <field schema="vocabularyitems_common">inVocabulary</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
similarity index 97%
rename from services/vocabulary/jaxb/src/main/resources/vocabulary-common.xsd
rename to services/vocabulary/jaxb/src/main/resources/vocabulary_common.xsd
index 0af81ee58134702eee6800508393ecc7c8855504..721babad8bdcb2ce5561a439cc07e6eda9458fdd 100644 (file)
@@ -12,7 +12,7 @@
 <!-- See http://wiki.collectionspace.org/display/collectionspace/Vocabulary+Schema -->    
     
     <!-- Vocabulary  -->
-    <xs:element name="vocabularies-common">
+    <xs:element name="vocabularies_common">
         <xs:complexType>
             <xs:sequence>
                 <!--  Common identifier -->