]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
NOJIRA - fixed support for additional schema fields in the nuxeo layout, in the tests...
authorPatrick Schmitz <pschmitz@berkeley.edu>
Wed, 6 Jan 2010 07:31:41 +0000 (07:31 +0000)
committerPatrick Schmitz <pschmitz@berkeley.edu>
Wed, 6 Jan 2010 07:31:41 +0000 (07:31 +0000)
services/organization/3rdparty/nuxeo-platform-cs-organization/src/main/resources/OSGI-INF/layouts-contrib.xml
services/organization/client/src/test/java/org/collectionspace/services/client/test/OrgAuthorityServiceTest.java
services/organization/import/src/main/java/org/collectionspace/services/organization/importer/OrgAuthorityBaseImport.java
services/organization/jaxb/src/main/java/org/collectionspace/services/OrganizationJAXBSchema.java
services/organization/jaxb/src/main/java/org/collectionspace/services/OrganizationListItemJAXBSchema.java
services/organization/jaxb/src/main/resources/organization_common.xsd
services/organization/sample/sample/src/main/java/org/collectionspace/services/organization/client/sample/Sample.java
services/organization/service/src/main/java/org/collectionspace/services/organization/nuxeo/OrganizationDocumentModelHandler.java

index daacbfd753743b95ab431f5dba85c8209730b190..e0db2b20e1b6e296fb32d0744992998c70f8b547 100644 (file)
         <template mode="any">/layouts/layout_default_template.xhtml</template>
       </templates>
       <rows>
-        <row><widget>displayName</widget></row>
+        <row><widget>shortName</widget></row>
         <row><widget>refName</widget></row>
         <row><widget>inAuthority</widget></row>
+        <row><widget>longName</widget></row>
+        <row><widget>nameAdditions</widget></row>
+        <row><widget>contactName</widget></row>
+        <row><widget>foundingDate</widget></row>
+        <row><widget>dissolutionDate</widget></row>
+        <row><widget>foundingPlace</widget></row>
+        <row><widget>function</widget></row>
+        <row><widget>description</widget></row>
       </rows>
 
-      <widget name="displayName" type="text">
+      <widget name="shortName" type="text">
         <labels>
           <label mode="any">Name</label>
         </labels>
         <translated>true</translated>
         <fields>
-          <field schema="organizations_common">displayName</field>
+          <field schema="organizations_common">shortName</field>
         </fields>
         <properties widgetMode="edit">
           <property name="styleClass">dataInputText</property>
           <property name="styleClass">dataInputText</property>
         </properties>
       </widget>
+
+      <widget name="longName" type="text">
+        <labels>
+          <label mode="any">longName</label>
+        </labels>
+        <translated>true</translated>
+        <fields>
+          <field schema="organizations_common">longName</field>
+        </fields>
+        <properties widgetMode="edit">
+          <property name="styleClass">dataInputText</property>
+        </properties>
+      </widget>
+      
+      <widget name="nameAdditions" type="text">
+        <labels>
+          <label mode="any">nameAdditions</label>
+        </labels>
+        <translated>true</translated>
+        <fields>
+          <field schema="organizations_common">nameAdditions</field>
+        </fields>
+        <properties widgetMode="edit">
+          <property name="styleClass">dataInputText</property>
+        </properties>
+      </widget>
+      
+      <widget name="contactName" type="text">
+        <labels>
+          <label mode="any">contactName</label>
+        </labels>
+        <translated>true</translated>
+        <fields>
+          <field schema="organizations_common">contactName</field>
+        </fields>
+        <properties widgetMode="edit">
+          <property name="styleClass">dataInputText</property>
+        </properties>
+      </widget>
+      
+      <widget name="foundingDate" type="text">
+        <labels>
+          <label mode="any">foundingDate</label>
+        </labels>
+        <translated>true</translated>
+        <fields>
+          <field schema="organizations_common">foundingDate</field>
+        </fields>
+        <properties widgetMode="edit">
+          <property name="styleClass">dataInputText</property>
+        </properties>
+      </widget>
+      
+      <widget name="dissolutionDate" type="text">
+        <labels>
+          <label mode="any">dissolutionDate</label>
+        </labels>
+        <translated>true</translated>
+        <fields>
+          <field schema="organizations_common">dissolutionDate</field>
+        </fields>
+        <properties widgetMode="edit">
+          <property name="styleClass">dataInputText</property>
+        </properties>
+      </widget>
+      
+      <widget name="foundingPlace" type="text">
+        <labels>
+          <label mode="any">foundingPlace</label>
+        </labels>
+        <translated>true</translated>
+        <fields>
+          <field schema="organizations_common">foundingPlace</field>
+        </fields>
+        <properties widgetMode="edit">
+          <property name="styleClass">dataInputText</property>
+        </properties>
+      </widget>
+      
+      <widget name="function" type="text">
+        <labels>
+          <label mode="any">function</label>
+        </labels>
+        <translated>true</translated>
+        <fields>
+          <field schema="organizations_common">function</field>
+        </fields>
+        <properties widgetMode="edit">
+          <property name="styleClass">dataInputText</property>
+        </properties>
+      </widget>
+      
+      <widget name="description" type="text">
+        <labels>
+          <label mode="any">description</label>
+        </labels>
+        <translated>true</translated>
+        <fields>
+          <field schema="organizations_common">description</field>
+        </fields>
+        <properties widgetMode="edit">
+          <property name="styleClass">dataInputText</property>
+        </properties>
+      </widget>
+      
     </layout>
   </extension>
 </component>
index 830a642c16ad3fb9e9ad08529ae0bea0308a9806..6d6f5026c246e230c68bff005c81134f7428307f 100644 (file)
@@ -62,8 +62,10 @@ public class OrgAuthorityServiceTest extends AbstractServiceTest {
     final String SERVICE_PATH_COMPONENT = "orgauthorities";
     final String ITEM_SERVICE_PATH_COMPONENT = "items";
     private String knownResourceId = null;
+    private String lastOrgAuthId = null;
     private String knownResourceRefName = null;
     private String knownItemResourceId = null;
+    private int nItemsToCreateInList = 3;
     private List<String> allResourceIdsCreated = new ArrayList<String>();
     private Map<String, String> allResourceItemIdsCreated =
         new HashMap<String, String>();
@@ -112,10 +114,11 @@ public class OrgAuthorityServiceTest extends AbstractServiceTest {
         // for additional tests below.
         knownResourceRefName = refName;
 
+        lastOrgAuthId = extractId(res);
         // Store the ID returned from the first resource created
         // for additional tests below.
         if (knownResourceId == null){
-            knownResourceId = extractId(res);
+            knownResourceId = lastOrgAuthId;
             if (logger.isDebugEnabled()) {
                 logger.debug(testName + ": knownResourceId=" + knownResourceId);
             }
@@ -131,7 +134,7 @@ public class OrgAuthorityServiceTest extends AbstractServiceTest {
     public void createItem(String testName) {
         setupCreate(testName);
 
-        knownItemResourceId = createItemInAuthority(knownResourceId);
+        knownItemResourceId = createItemInAuthority(lastOrgAuthId);
         if(logger.isDebugEnabled()){
             logger.debug(testName + ": knownItemResourceId=" + knownItemResourceId);
         }
@@ -189,8 +192,12 @@ public class OrgAuthorityServiceTest extends AbstractServiceTest {
     public void createList(String testName) throws Exception {
         for (int i = 0; i < 3; i++) {
             create(testName);
-            // Add 3 items to each orgauthority
-            for (int j = 0; j < 3; j++) {
+            knownResourceId = lastOrgAuthId;
+            if (logger.isDebugEnabled()) {
+                logger.debug(testName + ": Resetting knownResourceId to" + knownResourceId);
+            }
+            // Add nItemsToCreateInList items to each orgauthority
+            for (int j = 0; j < nItemsToCreateInList; j++) {
                 createItem(testName);
             }
         }
@@ -503,17 +510,24 @@ public class OrgAuthorityServiceTest extends AbstractServiceTest {
                 invalidStatusCodeMessage(REQUEST_TYPE, statusCode));
         Assert.assertEquals(statusCode, EXPECTED_STATUS_CODE);
 
+        List<OrganizationsCommonList.OrganizationListItem> items =
+            list.getOrganizationListItem();
+        int nItemsReturned = items.size();
+        if(logger.isDebugEnabled()){
+            logger.debug("  " + testName + ": Expected "
+                       + nItemsToCreateInList+" items; got: "+nItemsReturned);
+        }
+        Assert.assertEquals( nItemsReturned, nItemsToCreateInList);
+
         // Optionally output additional data about list members for debugging.
         boolean iterateThroughList = false;
         if (iterateThroughList && logger.isDebugEnabled()) {
-            List<OrganizationsCommonList.OrganizationListItem> items =
-                    list.getOrganizationListItem();
             int i = 0;
             for (OrganizationsCommonList.OrganizationListItem item : items) {
                 logger.debug("  " + testName + ": list-item[" + i + "] csid=" +
                         item.getCsid());
-                logger.debug("  " + testName + ": list-item[" + i + "] displayName=" +
-                        item.getDisplayName());
+                logger.debug("  " + testName + ": list-item[" + i + "] shortName=" +
+                        item.getShortName());
                 logger.debug("  " + testName + ": list-item[" + i + "] URI=" +
                         item.getUri());
                 i++;
@@ -1044,6 +1058,7 @@ public class OrgAuthorityServiceTest extends AbstractServiceTest {
         String foundingDate, String dissolutionDate, String foundingPlace,
         String function, String description ) {
         OrganizationsCommon organization = new OrganizationsCommon();
+        organization.setInAuthority(inAuthority);
         organization.setShortName(shortName);
         if(refName!=null)
                organization.setRefName(refName);
index e6b1832d4f6d971081e2c4bdc5c2bcc7003c3c55..6e513de5072fa4143499e2a33b96aa1e2c1b60e2 100644 (file)
@@ -58,7 +58,8 @@ public class OrgAuthorityBaseImport {
     final String SERVICE_PATH_COMPONENT = "orgauthorities";
     final String ITEM_SERVICE_PATH_COMPONENT = "items";
 
-    public void createOrgAuthority(String orgAuthorityName, List<String> enumValues ) {
+    public void createOrgAuthority(String orgAuthorityName, 
+               List<List<String>> orgInfo ) {
 
        // Expected status code: 201 Created
        int EXPECTED_STATUS_CODE = Response.Status.CREATED.getStatusCode();
@@ -68,8 +69,10 @@ public class OrgAuthorityBaseImport {
        if(logger.isDebugEnabled()){
                logger.debug("Import: Create orgAuthority: \"" + orgAuthorityName +"\"");
        }
+       String baseOrgRefName = createOrgAuthRefName(orgAuthorityName);
+       String fullOrgRefName = baseOrgRefName+"'"+orgAuthorityName+"'";
        MultipartOutput multipart = createOrgAuthorityInstance(orgAuthorityName, 
-                       createRefName(orgAuthorityName), "enum");
+                       fullOrgRefName);
        ClientResponse<Response> res = client.create(multipart);
 
        int statusCode = res.getStatus();
@@ -90,49 +93,57 @@ public class OrgAuthorityBaseImport {
                logger.debug("Import: Created orgAuthorityulary: \"" + orgAuthorityName +"\" ID:"
                                +newOrgAuthorityId );
        }
-       for(String itemName : enumValues){
-               createItemInAuthority(newOrgAuthorityId, orgAuthorityName, itemName, createRefName(itemName));
+       for(List<String> orgStrings : orgInfo){
+               createItemInAuthority(newOrgAuthorityId, baseOrgRefName, orgStrings);
        }
     }
     
-    private String createItemInAuthority(String vcsid, String orgAuthorityName, String itemName, String refName) {
+    private String createItemInAuthority(String vcsid, 
+               String orgAuthorityRefName, List<String> orgStrings) {
        // Expected status code: 201 Created
        int EXPECTED_STATUS_CODE = Response.Status.CREATED.getStatusCode();
        // Type of service request being tested
        ServiceRequestType REQUEST_TYPE = ServiceRequestType.CREATE;
+               /* Strings are:  
+                       shortName, longName, nameAdditions, contactName, 
+               foundingDate, dissolutionDate, foundingPlace, function, description
+                */             
+       String shortName = orgStrings.get(0);
+       String refName = createOrganizationRefName(orgAuthorityRefName, shortName);
 
        if(logger.isDebugEnabled()){
-               logger.debug("Import: Create Item: \""+itemName+"\" in orgAuthorityulary: \"" + orgAuthorityName +"\"");
+               logger.debug("Import: Create Item: \""+shortName
+                               +"\" in orgAuthorityulary: \"" + orgAuthorityRefName +"\"");
        }
-       MultipartOutput multipart = createOrganizationInstance(itemName, refName,
-                       null, null, null, null, null, null, null, null, null );
+       MultipartOutput multipart = createOrganizationInstance( vcsid, refName,
+                       orgStrings );
        ClientResponse<Response> res = client.createItem(vcsid, multipart);
 
        int statusCode = res.getStatus();
 
        if(!REQUEST_TYPE.isValidStatusCode(statusCode)) {
-               throw new RuntimeException("Could not create Item: \""+itemName
-                               +"\" in orgAuthority: \"" + orgAuthorityName
+               throw new RuntimeException("Could not create Item: \""+shortName
+                               +"\" in orgAuthority: \"" + orgAuthorityRefName
                                +"\" "+ invalidStatusCodeMessage(REQUEST_TYPE, statusCode));
        }
        if(statusCode != EXPECTED_STATUS_CODE) {
-               throw new RuntimeException("Unexpected Status when creating Item: \""+itemName
-                               +"\" in orgAuthority: \"" + orgAuthorityName +"\", Status:"+ statusCode);
+               throw new RuntimeException("Unexpected Status when creating Item: \""+shortName
+                               +"\" in orgAuthority: \"" + orgAuthorityRefName +"\", Status:"+ statusCode);
        }
 
        return extractId(res);
     }
 
     // ---------------------------------------------------------------
-    // Utility methods used by tests above
+    // Utility methods used by methods above
     // ---------------------------------------------------------------
 
     private MultipartOutput createOrgAuthorityInstance(
-               String displayName, String refName, String vocabType) {
+               String displayName, String refName ) {
         OrgauthoritiesCommon orgAuthority = new OrgauthoritiesCommon();
         orgAuthority.setDisplayName(displayName);
         orgAuthority.setRefName(refName);
-        orgAuthority.setVocabType(vocabType);
+        orgAuthority.setVocabType("OrgAuthority");
         MultipartOutput multipart = new MultipartOutput();
         OutputPart commonPart = multipart.addPart(orgAuthority, MediaType.APPLICATION_XML_TYPE);
         commonPart.getHeaders().add("label", client.getCommonPartName());
@@ -145,29 +156,34 @@ public class OrgAuthorityBaseImport {
         return multipart;
     }
 
-    private MultipartOutput createOrganizationInstance(String inAuthority,
-        String shortName, String refName, String longName, 
-        String nameAdditions, String contactName, 
-        String foundingDate, String dissolutionDate, String foundingPlace,
-        String function, String description ) {
+    private MultipartOutput createOrganizationInstance(String inAuthority, 
+               String orgRefName, List<String> orgStrings){
         OrganizationsCommon organization = new OrganizationsCommon();
-        organization.setShortName(shortName);
-        if(refName!=null)
-               organization.setRefName(refName);
+        organization.setInAuthority(inAuthority);
+        organization.setShortName(orgStrings.get(0));
+               organization.setRefName(orgRefName);
+               String longName = orgStrings.get(1);
         if(longName!=null)
                organization.setLongName(longName);
+               String nameAdditions = orgStrings.get(2);
         if(nameAdditions!=null)
                organization.setNameAdditions(nameAdditions);
+               String contactName = orgStrings.get(3);
         if(contactName!=null)
                organization.setContactName(contactName);
+               String foundingDate = orgStrings.get(4);
         if(foundingDate!=null)
                organization.setFoundingDate(foundingDate);
+               String dissolutionDate = orgStrings.get(5);
         if(dissolutionDate!=null)
                organization.setDissolutionDate(dissolutionDate);
+               String foundingPlace = orgStrings.get(6);
         if(foundingPlace!=null)
                organization.setFoundingPlace(foundingPlace);
+               String function = orgStrings.get(7);
         if(function!=null)
                organization.setFunction(function);
+               String description = orgStrings.get(8);
         if(description!=null)
                organization.setDescription(description);
         MultipartOutput multipart = new MultipartOutput();
@@ -214,8 +230,14 @@ public class OrgAuthorityBaseImport {
         return id;
     }
     
-    protected String createRefName(String displayName) {
-       return displayName.replaceAll("\\W", "");
+    protected String createOrgAuthRefName(String orgAuthorityName) {
+       return "urn:cspace:org.collectionspace.demo:personauthority:name("
+                       +orgAuthorityName+")";
+    }
+
+    protected String createOrganizationRefName(
+                                               String orgAuthRefName, String orgName) {
+       return orgAuthRefName+":organization:name("+orgName+")";
     }
 
        public static void main(String[] args) {
@@ -224,27 +246,26 @@ public class OrgAuthorityBaseImport {
                logger.info("OrgAuthorityBaseImport starting...");
 
                OrgAuthorityBaseImport oabi = new OrgAuthorityBaseImport();
-               final String acquisitionMethodsOrgAuthorityName = "Acquisition Methods";
-               final String entryMethodsOrgAuthorityName = "Entry Methods";
-               final String entryReasonsOrgAuthorityName = "Entry Reasons";
-               final String responsibleDeptsOrgAuthorityName = "Responsible Departments";
-
-               List<String> acquisitionMethodsEnumValues = 
-                       Arrays.asList("Gift","Purchase","Exchange","Transfer","Treasure");
-               List<String> entryMethodsEnumValues = 
-                       Arrays.asList("In person","Post","Found on doorstep");
-               List<String> entryReasonsEnumValues = 
-                       Arrays.asList("Enquiry","Commission","Loan");
-               List<String> respDeptNamesEnumValues = 
-                       Arrays.asList("Antiquities","Architecture and Design","Decorative Arts",
-                                                                       "Ethnography","Herpetology","Media and Performance Art",
-                                                                       "Paintings and Sculpture","Paleobotany","Photographs",
-                                                                       "Prints and Drawings");
-
-               oabi.createOrgAuthority(acquisitionMethodsOrgAuthorityName, acquisitionMethodsEnumValues);
-               oabi.createOrgAuthority(entryMethodsOrgAuthorityName, entryMethodsEnumValues);
-               oabi.createOrgAuthority(entryReasonsOrgAuthorityName, entryReasonsEnumValues);
-               oabi.createOrgAuthority(responsibleDeptsOrgAuthorityName, respDeptNamesEnumValues);
+               final String demoOrgAuthorityName = "Demo Org Authority";
+
+               /* Strings are:  
+                       shortName, longName, nameAdditions, contactName, 
+               foundingDate, dissolutionDate, foundingPlace, function, description
+         */            
+        List<String> mmiOrgStrings = 
+                       Arrays.asList("MMI","Museum of the Moving Image",null,"Megan Forbes",
+                                       "1984", null, "Astoria, NY", null, null);
+        List<String> pahmaOrgStrings = 
+                       Arrays.asList("PAHMA","Phoebe A. Hearst Museum of Anthropology",
+                                                       "University of California, Berkeley","Michael Black",
+                                       "1901", null, "Berkeley, CA", null, null);
+        List<String> savoyOrgStrings = 
+                       Arrays.asList("Savoy Theatre",null,null,null,
+                                       "1900", "1952", "New York, NY", null, null);
+        List<List<String>> orgsStrings = 
+               Arrays.asList(mmiOrgStrings, pahmaOrgStrings, savoyOrgStrings );
+
+               oabi.createOrgAuthority(demoOrgAuthorityName, orgsStrings);
 
                logger.info("OrgAuthorityBaseImport complete.");
        }
index 67ae42287db378472deecf872263bac544a5105c..11ff58d10e404a8532982876d39d0d71d72d5450 100644 (file)
@@ -8,10 +8,17 @@ package org.collectionspace.services;
  *\r
  */\r
 public interface OrganizationJAXBSchema {\r
-       final static String DISPLAY_NAME = "displayName";\r
-       final static String REF_NAME = "refName";\r
        final static String CSID = "csid";\r
+       final static String IN_AUTHORITY = "inAuthority";\r
+       final static String SHORT_NAME = "shortName";\r
+       final static String REF_NAME = "refName";\r
        final static String LONG_NAME = "longName";\r
+       final static String NAME_ADDITIONS = "nameAdditions";\r
+       final static String CONTACT_NAME = "contactName";\r
+       final static String FOUNDING_DATE = "foundingDate";\r
+       final static String DISSOLUTION_DATE = "dissolutionDate";\r
+       final static String FOUNDING_PLACE = "foundingPlace";\r
+       final static String FUNCTION = "function";\r
        final static String DESCRIPTION = "description";\r
 }\r
 \r
index 86653cf18b81c35c325edd82b4a89ff588d3a5be..e661607a5656799b1a8a71c2aa4e3edbdf31f1d5 100644 (file)
@@ -1,7 +1,7 @@
 package org.collectionspace.services;\r
 \r
 public interface OrganizationListItemJAXBSchema {\r
-       final static String DISPLAY_NAME = "displayName";\r
+       final static String SHORT_NAME = "shortName";\r
        final static String REF_NAME = "refName";\r
        final static String CSID = "csid";\r
        final static String URI = "url";\r
index 23ef6fe9850a10914327c21344fb5e3c5315bcaa..9a3232672db54c161a1f150fde52cca383cb6247 100644 (file)
@@ -19,6 +19,7 @@
                 <xs:element name="csid" type="xs:string" />
                 
                 <!--  Organization Information Group -->
+                <xs:element name="inAuthority" type="xs:string" />
                 <xs:element name="refName" type="xs:string"/>
                 <xs:element name="shortName" type="xs:string"/>
                 <xs:element name="longName" type="xs:string"/>
@@ -40,7 +41,7 @@
                 <xs:element name="organization_list_item" maxOccurs="unbounded">
                     <xs:complexType>
                         <xs:sequence>
-                            <xs:element name="displayName" type="xs:string"
+                            <xs:element name="shortName" type="xs:string"
                                 minOccurs="1" />
                             <!-- uri to retrieve organization details -->
                             <xs:element name="uri" type="xs:anyURI"
index 736f7637df49f0f5767051455af23f9d96450751..33a6c8b8dc5aeb783e6c0d46588e6f2c6d72c226 100644 (file)
@@ -110,7 +110,7 @@ public class Sample {
        ServiceRequestType REQUEST_TYPE = ServiceRequestType.CREATE;\r
 \r
        logger.info("Import: Create Item: \""+itemName+"\" in orgAuthority: \"" + orgAuthName +"\"");\r
-       MultipartOutput multipart = createOrganizationInstance(itemName, refName);\r
+       MultipartOutput multipart = createOrganizationInstance(vcsid, itemName, refName);\r
        ClientResponse<Response> res = client.createItem(vcsid, multipart);\r
 \r
        int statusCode = res.getStatus();\r
@@ -314,8 +314,9 @@ public class Sample {
     }\r
 \r
     private MultipartOutput createOrganizationInstance(\r
-               String displayName, String refName) {\r
+               String inAuthority, String displayName, String refName) {\r
        OrganizationsCommon organization = new OrganizationsCommon();\r
+       organization.setInAuthority(inAuthority);\r
        organization.setShortName(displayName);\r
        organization.setRefName(refName);\r
         MultipartOutput multipart = new MultipartOutput();\r
@@ -373,7 +374,7 @@ public class Sample {
         OrganizationsCommonList.OrganizationListItem item) {\r
             StringBuffer sb = new StringBuffer();\r
             sb.append("csid=" + item.getCsid() + "\n");\r
-            sb.append("displayName=" + item.getDisplayName() + "\n");\r
+            sb.append("shortName=" + item.getShortName() + "\n");\r
             // sb.append("URI=" + item.getUri() + "\n");\r
         return sb.toString();\r
     }\r
@@ -519,8 +520,8 @@ public class Sample {
             // For each organization ...\r
             for (OrganizationsCommonList.OrganizationListItem\r
                 item : items.getOrganizationListItem()) {\r
-                // Get its display name.\r
-                logger.info(" " + item.getDisplayName());\r
+                // Get its short name.\r
+                logger.info(" " + item.getShortName());\r
             }\r
         }\r
 \r
index 10937af34db3bca69ca50200a6a73ec4781335e8..41fbfa8d8640f60a6194554b8b73b0618d154ae1 100644 (file)
@@ -136,9 +136,9 @@ public class OrganizationDocumentModelHandler
                while(iter.hasNext()){
                    DocumentModel docModel = iter.next();
                    OrganizationListItem ilistItem = new OrganizationListItem();
-                   ilistItem.setDisplayName(
+                   ilistItem.setShortName(
                                                                        (String) docModel.getProperty(getServiceContext().getCommonPartLabel("organizations"),
-                                                                       OrganizationJAXBSchema.DISPLAY_NAME));
+                                                                       OrganizationJAXBSchema.SHORT_NAME));
                    ilistItem.setRefName(
                                                                        (String) docModel.getProperty(getServiceContext().getCommonPartLabel("organizations"),
                                                                        OrganizationJAXBSchema.REF_NAME));