Author: david
Date: Wed Oct 7 22:48:55 2009
New Revision: 3688
Log:
Migrate 'display_as_compound_object' property from information object to
related digital object and change name to 'displayAsCompound'. Not tested.
Modified:
trunk/lib/task/migrate/QubitMigrate107to108.class.php
Modified: trunk/lib/task/migrate/QubitMigrate107to108.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate107to108.class.php Wed Oct 7
22:42:39 2009 (r3687)
+++ trunk/lib/task/migrate/QubitMigrate107to108.class.php Wed Oct 7
22:48:55 2009 (r3688)
@@ -668,6 +668,7 @@
*/
protected function alterQubitProperties()
{
+ // Change name of language & script properties
$tmp = array();
foreach ($this->data['QubitProperty'] as $key => $value)
{
@@ -677,6 +678,7 @@
case 'information_object_script':
case 'language_of_information_object_description':
case 'script_of_information_object_description':
+ case 'display_as_compound_object':
$tmp[$value['object_id']][$value['name']][] =
$value['value'][$value['source_culture']];
unset($this->data['QubitProperty'][$key]);
@@ -712,6 +714,17 @@
$this->data['QubitProperty'][$key]['name'] = 'scriptOfDescription';
break;
+
+ case 'display_as_compound_object':
+ $this->data['QubitProperty'][$key]['name'] = 'displayAsCompound';
+
+ // Move property from info object to digital object
+ if (null !== ($digitalObjectKey =
$this->getRowKey('QubitDigitalObject', 'information_object_id', $id)))
+ {
+ $this->data['QubitProperty'][$key]['object_id'] =
$this->data['QubitDigitalObject'][$digitalObjectKey]['id'];
+ }
+
+ break;
}
$this->data['QubitProperty'][$key]['value'] = serialize($value);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---