]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-4391: Adding PlaceAuthorityClient to import, adding Placeitem to getCommonSche...
authorRick Jaffe <rjaffe@berkeley.edu>
Wed, 14 Mar 2012 06:57:53 +0000 (23:57 -0700)
committerRick Jaffe <rjaffe@berkeley.edu>
Wed, 14 Mar 2012 06:57:53 +0000 (23:57 -0700)
services/relation/service/src/main/java/org/collectionspace/services/relation/nuxeo/RelationDocumentModelHandler.java

index 2c394b3a325c12c80c90e0461af5f65f317512e6..ebd2323fcf8cdab4a5582906b5a35f25944afff4 100644 (file)
@@ -53,6 +53,7 @@ import org.collectionspace.services.client.PersonAuthorityClient;
 import org.collectionspace.services.client.OrgAuthorityClient;
 import org.collectionspace.services.client.LocationAuthorityClient;
 import org.collectionspace.services.client.TaxonomyAuthorityClient;
+import org.collectionspace.services.client.PlaceAuthorityClient;
 
 import org.collectionspace.services.common.document.DocumentWrapper;
 import org.collectionspace.services.jaxb.AbstractCommonList;
@@ -407,6 +408,8 @@ public class RelationDocumentModelHandler
                        common_schema = LocationAuthorityClient.SERVICE_ITEM_COMMON_PART_NAME;
                else if(docType.startsWith("Taxon"))
                        common_schema = TaxonomyAuthorityClient.SERVICE_ITEM_COMMON_PART_NAME;
+               else if(docType.startsWith("Placeitem"))
+                       common_schema = PlaceAuthorityClient.SERVICE_ITEM_COMMON_PART_NAME;
                //else leave it null.
        }
        return common_schema;