From: Aron Roberts Date: Tue, 15 Jun 2010 01:19:50 +0000 (+0000) Subject: CSPACE-2134: Updated Cataloging schema for release 0.8, adding one field and changing... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=492c75bf249f29bdc8f2d7e84b87a2eaf35a7677;p=tmp%2Fjakarta-migration.git CSPACE-2134: Updated Cataloging schema for release 0.8, adding one field and changing the names of 12 others - two required by wiki schema changes, and ten for consistency with other layers / clarity. --- 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 79a709eeb..5f741a708 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 @@ -67,168 +67,168 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectAuthRefsTest.java b/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectAuthRefsTest.java index 9b5ece86d..9e4e1d006 100644 --- a/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectAuthRefsTest.java +++ b/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectAuthRefsTest.java @@ -94,7 +94,7 @@ public class CollectionObjectAuthRefsTest extends BaseServiceTest { private String contentPersonRefName = null; /** The inscriber ref name. */ - private String inscriberRefName = null; + private String contentInscriberRefName = null; /** The number of authority references expected. */ private final int NUM_AUTH_REFS_EXPECTED = 4; @@ -147,7 +147,7 @@ public class CollectionObjectAuthRefsTest extends BaseServiceTest { contentOrganizationRefName, contentPeopleRefName, contentPersonRefName, - inscriberRefName ); + contentInscriberRefName ); ClientResponse res = collectionObjectClient.create(multipart); @@ -197,21 +197,21 @@ public class CollectionObjectAuthRefsTest extends BaseServiceTest { Assert.assertEquals(statusCode, STATUS_CREATED); personAuthCSID = extractId(res); - contentOrganizationRefName = PersonAuthorityClientUtils.createPersonRefName( - authRefName, "Omni Org", true); + contentOrganizationRefName = + PersonAuthorityClientUtils.createPersonRefName(authRefName, "Omni Org", true); personIdsCreated.add(createPerson("Omni", "Org", contentOrganizationRefName)); - contentPeopleRefName = PersonAuthorityClientUtils.createPersonRefName( - authRefName, "Pushy People", true); + contentPeopleRefName = + PersonAuthorityClientUtils.createPersonRefName(authRefName, "Pushy People", true); personIdsCreated.add(createPerson("Pushy", "People", contentPeopleRefName)); - contentPersonRefName = PersonAuthorityClientUtils.createPersonRefName( - authRefName, "Connie ContactPerson", true); + contentPersonRefName = + PersonAuthorityClientUtils.createPersonRefName(authRefName, "Connie ContactPerson", true); personIdsCreated.add(createPerson("Connie", "ContactPerson", contentPersonRefName)); - inscriberRefName = PersonAuthorityClientUtils.createPersonRefName( - authRefName, "Ingrid Inscriber", true); - personIdsCreated.add(createPerson("Ingrid", "Inscriber", inscriberRefName)); + contentInscriberRefName = + PersonAuthorityClientUtils.createPersonRefName(authRefName, "Ingrid Inscriber", true); + personIdsCreated.add(createPerson("Ingrid", "Inscriber", contentInscriberRefName)); } /** @@ -276,7 +276,7 @@ public class CollectionObjectAuthRefsTest extends BaseServiceTest { Assert.assertNotNull(collectionObject); // Check a couple of fields Assert.assertEquals(collectionObject.getContentOrganization(), contentOrganizationRefName); - Assert.assertEquals(collectionObject.getInscriber(), inscriberRefName); + Assert.assertEquals(collectionObject.getInscriptionContentInscriber(), contentInscriberRefName); // Get the auth refs and check them ClientResponse res2 = collectionObjectClient.getAuthorityRefs(knownResourceId); @@ -393,7 +393,7 @@ public class CollectionObjectAuthRefsTest extends BaseServiceTest { collectionObject.setContentOrganization(contentOrganization); collectionObject.setContentPeople(contentPeople); collectionObject.setContentPerson(contentPerson); - collectionObject.setInscriber(inscriber); + collectionObject.setInscriptionContentInscriber(inscriber); MultipartOutput multipart = new MultipartOutput(); OutputPart commonPart = multipart.addPart(collectionObject, MediaType.APPLICATION_XML_TYPE); diff --git a/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectSearchTest.java b/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectSearchTest.java index 6aa258349..c2b4a3104 100644 --- a/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectSearchTest.java +++ b/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectSearchTest.java @@ -107,6 +107,7 @@ public class CollectionObjectSearchTest extends BaseServiceTest { // Success outcomes + // FIXME: Rename to searchWithOneKeyword @Test(dataProvider="testName", dataProviderClass=AbstractServiceTestImpl.class) public void keywordSearchOneWord(String testName) throws Exception { @@ -159,12 +160,14 @@ public class CollectionObjectSearchTest extends BaseServiceTest { } + // FIXME: Rename to searchWithOneKeywordInRepeatableScalarField // @Test(dataProvider="testName", dataProviderClass=AbstractServiceTestImpl.class) public void keywordSearchRepeatableScalarField(String testName) throws Exception { } // Failure outcomes + // FIXME: Rename to searchWithNonExistentKeyword @Test(dataProvider="testName", dataProviderClass=AbstractServiceTestImpl.class) public void keywordSearchNonExistentKeyword(String testName) throws Exception { diff --git a/services/collectionobject/client/src/test/resources/test-data/repfield_whitesp1.xml b/services/collectionobject/client/src/test/resources/test-data/repfield_whitesp1.xml index 8300737c0..d2946dba8 100644 --- a/services/collectionobject/client/src/test/resources/test-data/repfield_whitesp1.xml +++ b/services/collectionobject/client/src/test/resources/test-data/repfield_whitesp1.xml @@ -19,7 +19,7 @@ responsibleDept1responsibleDept2 title -objectTitleLanguage +titleLanguage titleTranslation titleType age @@ -54,16 +54,16 @@ editionNumber
form
inscriptionContent -inscriber -inscriptionDate -inscriptionInterpretation -inscriptionLanguage -inscriptionMethod -inscriptionPosition -inscriptionScript -inscriptionTranslation -inscriptionTransliteration -inscriptionType +inscriptionContentInscriber +inscriptionContentDate +inscriptionContentInterpretation +inscriptionContentLanguage +inscriptionContentMethod +inscriptionContentPosition +inscriptionContentScript +inscriptionContentTranslation +inscriptionContentTransliteration +inscriptionContentType inscriptionDescription inscriptionDescriptionInscriber inscriptionDescriptionDate diff --git a/services/collectionobject/client/src/test/resources/test-data/repfield_whitesp2.xml b/services/collectionobject/client/src/test/resources/test-data/repfield_whitesp2.xml index fadcd2a88..237bf512f 100644 --- a/services/collectionobject/client/src/test/resources/test-data/repfield_whitesp2.xml +++ b/services/collectionobject/client/src/test/resources/test-data/repfield_whitesp2.xml @@ -26,7 +26,7 @@ title -objectTitleLanguage +titleLanguage titleTranslation titleType age @@ -61,16 +61,16 @@ editionNumber
form
inscriptionContent -inscriber -inscriptionDate -inscriptionInterpretation -inscriptionLanguage -inscriptionMethod -inscriptionPosition -inscriptionScript -inscriptionTranslation -inscriptionTransliteration -inscriptionType +inscriptionContentInscriber +inscriptionContentDate +inscriptionContentInterpretation +inscriptionContentLanguage +inscriptionContentMethod +inscriptionContentPosition +inscriptionContentScript +inscriptionContentTranslation +inscriptionContentTransliteration +inscriptionContentType inscriptionDescription inscriptionDescriptionInscriber inscriptionDescriptionDate diff --git a/services/collectionobject/client/src/test/resources/test-data/repfield_whitesp3.xml b/services/collectionobject/client/src/test/resources/test-data/repfield_whitesp3.xml index 29d8de6f2..485039eb5 100644 --- a/services/collectionobject/client/src/test/resources/test-data/repfield_whitesp3.xml +++ b/services/collectionobject/client/src/test/resources/test-data/repfield_whitesp3.xml @@ -29,7 +29,7 @@ title -objectTitleLanguage +titleLanguage titleTranslation titleType age @@ -64,16 +64,16 @@ editionNumber
form
inscriptionContent -inscriber -inscriptionDate -inscriptionInterpretation -inscriptionLanguage -inscriptionMethod -inscriptionPosition -inscriptionScript -inscriptionTranslation -inscriptionTransliteration -inscriptionType +inscriptionContentInscriber +inscriptionContentDate +inscriptionContentInterpretation +inscriptionContentLanguage +inscriptionContentMethod +inscriptionContentPosition +inscriptionContentScript +inscriptionContentTranslation +inscriptionContentTransliteration +inscriptionContentType inscriptionDescription inscriptionDescriptionInscriber inscriptionDescriptionDate diff --git a/services/collectionobject/client/src/test/resources/test-data/repfield_whitesp4.xml b/services/collectionobject/client/src/test/resources/test-data/repfield_whitesp4.xml index 72094ee21..9ad7216d9 100644 --- a/services/collectionobject/client/src/test/resources/test-data/repfield_whitesp4.xml +++ b/services/collectionobject/client/src/test/resources/test-data/repfield_whitesp4.xml @@ -26,7 +26,7 @@ title -objectTitleLanguage +titleLanguage titleTranslation titleType age @@ -61,16 +61,16 @@ editionNumber
form
inscriptionContent -inscriber -inscriptionDate -inscriptionInterpretation -inscriptionLanguage -inscriptionMethod -inscriptionPosition -inscriptionScript -inscriptionTranslation -inscriptionTransliteration -inscriptionType +inscriptionContentInscriber +inscriptionContentDate +inscriptionContentInterpretation +inscriptionContentLanguage +inscriptionContentMethod +inscriptionContentPosition +inscriptionContentScript +inscriptionContentTranslation +inscriptionContentTransliteration +inscriptionContentType inscriptionDescription inscriptionDescriptionInscriber inscriptionDescriptionDate diff --git a/services/collectionobject/client/src/test/resources/test-data/testCambridge.xml b/services/collectionobject/client/src/test/resources/test-data/testCambridge.xml index ca2e0370b..c95d79a3f 100644 --- a/services/collectionobject/client/src/test/resources/test-data/testCambridge.xml +++ b/services/collectionobject/client/src/test/resources/test-data/testCambridge.xml @@ -64,20 +64,17 @@ dimensionValueQualifier editionNumber
form
- inscriptionContent - inscriber - inscriptionDate - -inscriptionInterpretation - inscriptionLanguage - inscriptionMethod - inscriptionPosition - inscriptionScript - inscriptionTranslation - -inscriptionTransliteration - inscriptionType - inscriptionDescription + inscriptionContent +inscriptionContentInscriber +inscriptionContentDate +inscriptionContentInterpretation +inscriptionContentLanguage +inscriptionContentMethod +inscriptionContentPosition +inscriptionContentScript +inscriptionContentTranslation +inscriptionContentTransliteration +inscriptionContentType inscriptionDescription inscriptionDescriptionInscriber diff --git a/services/collectionobject/jaxb/src/main/resources/collectionobjects_common.xsd b/services/collectionobject/jaxb/src/main/resources/collectionobjects_common.xsd index 8537ff458..c76e05917 100644 --- a/services/collectionobject/jaxb/src/main/resources/collectionobjects_common.xsd +++ b/services/collectionobject/jaxb/src/main/resources/collectionobjects_common.xsd @@ -69,7 +69,7 @@ - + @@ -115,16 +115,16 @@ - - - - - - - - - - + + + + + + + + + + @@ -166,6 +166,7 @@ + @@ -193,7 +194,7 @@ - + diff --git a/services/common/src/main/config/services/tenant-bindings.xml b/services/common/src/main/config/services/tenant-bindings.xml index 2fdd37b86..06cb55674 100644 --- a/services/common/src/main/config/services/tenant-bindings.xml +++ b/services/common/src/main/config/services/tenant-bindings.xml @@ -66,7 +66,7 @@ authRefcontentOrganization authRefcontentPeople authRefcontentPerson - authRefinscriber + authRefinscriptionContentInscriber authRefcontentOrganization authRefcontentPeople authRefcontentPerson - authRefinscriber + authRefinscriptionContentInscriber