]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-4911: Added inventory and location ID number patterns for Location, Movement...
authorAron Roberts <aron@socrates.berkeley.edu>
Mon, 12 Mar 2012 23:10:39 +0000 (16:10 -0700)
committerAron Roberts <aron@socrates.berkeley.edu>
Mon, 12 Mar 2012 23:10:39 +0000 (16:10 -0700)
services/id/service/src/main/resources/db/mysql/load_id_generators.sql
services/id/service/src/main/resources/db/postgresql/load_id_generators.sql

index 6b114a88152486f2d64c82daefc85e65b7592472..2cadf18f4507392715a245cb71b392984d562c32 100644 (file)
@@ -246,6 +246,46 @@ either returned to their owner or formally acquired.',
   </parts>
 </org.collectionspace.services.id.SettableIDGenerator>');
 
+-- INVENTORY_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES
+    ('6d472be6-2534-47f3-a3f1-3f160e7a9303',
+     'Inventory Number',
+     'Unambiguously identifies a location associated with an inventory event.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>INV</initialValue>
+      <currentValue>INV</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
 -- LIBRARY_NUMBER
 
 INSERT INTO `id_generators`
@@ -361,6 +401,47 @@ loaned out of the institution.',
   </parts>
 </org.collectionspace.services.id.SettableIDGenerator>');
 
+-- LOCATION_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES
+    ('1fc5e383-0786-4126-9a3c-ec7df4517ee3',
+     'Location Number',
+     'Unambiguously identifies a general location, not associated with an
+inventory or movement event.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>LOC</initialValue>
+      <currentValue>LOC</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
 -- MEDIA_RESOURCE_IDENTIFICATION_NUMBER
 
 INSERT INTO `id_generators`
@@ -403,7 +484,6 @@ conforming to a formal identification system.',
   </parts>
 </org.collectionspace.services.id.SettableIDGenerator>');
 
-
 -- MOVEMENT_REFERENCE_NUMBER
 
 INSERT INTO `id_generators`
index 217609ff45c9652c60fb5d6dbe98b23fdc18af94..47b69b9bc72dc41467dcd90c25d29a6e1c4a6d25 100644 (file)
@@ -246,6 +246,46 @@ either returned to their owner or formally acquired.',
   </parts>
 </org.collectionspace.services.id.SettableIDGenerator>');
 
+-- INVENTORY_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES
+    ('6d472be6-2534-47f3-a3f1-3f160e7a9303',
+     'Inventory Number',
+     'Unambiguously identifies a location associated with an inventory event.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>INV</initialValue>
+      <currentValue>INV</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
 -- LIBRARY_NUMBER
 
 INSERT INTO id_generators
@@ -361,6 +401,47 @@ loaned out of the institution.',
   </parts>
 </org.collectionspace.services.id.SettableIDGenerator>');
 
+-- LOCATION_NUMBER
+
+INSERT INTO id_generators
+    (csid, displayname, description, priority, last_generated_id, id_generator_state)
+  VALUES
+    ('1fc5e383-0786-4126-9a3c-ec7df4517ee3',
+     'Location Number',
+     'Unambiguously identifies a general location, not associated with an
+inventory or movement event.',
+     '9',
+     '',
+'<org.collectionspace.services.id.SettableIDGenerator>
+  <parts>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>LOC</initialValue>
+      <currentValue>LOC</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.YearIDGeneratorPart>
+      <currentValue></currentValue>
+    </org.collectionspace.services.id.YearIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+    <org.collectionspace.services.id.StringIDGeneratorPart>
+      <initialValue>.</initialValue>
+      <currentValue>.</currentValue>
+    </org.collectionspace.services.id.StringIDGeneratorPart>
+    <org.collectionspace.services.id.NumericIDGeneratorPart>
+      <maxLength>6</maxLength>
+      <initialValue>1</initialValue>
+      <currentValue>-1</currentValue>
+    </org.collectionspace.services.id.NumericIDGeneratorPart>
+  </parts>
+</org.collectionspace.services.id.SettableIDGenerator>');
+
 -- MEDIA_RESOURCE_IDENTIFICATION_NUMBER
 
 INSERT INTO id_generators
@@ -403,7 +484,6 @@ conforming to a formal identification system.',
   </parts>
 </org.collectionspace.services.id.SettableIDGenerator>');
 
-
 -- MOVEMENT_REFERENCE_NUMBER
 
 INSERT INTO id_generators