Author: peter
Date: Thu Sep 10 11:22:20 2009
New Revision: 3220

Log:
remove hyphen from English level of description terms to make them EAD DTD 
compliant values for XML import/export

Modified:
   trunk/data/fixtures/taxonomyTerms.yml
   trunk/lib/task/migrate/QubitMigrate107to108.class.php

Modified: trunk/data/fixtures/taxonomyTerms.yml
==============================================================================
--- trunk/data/fixtures/taxonomyTerms.yml       Thu Sep 10 10:46:35 2009        
(r3219)
+++ trunk/data/fixtures/taxonomyTerms.yml       Thu Sep 10 11:22:20 2009        
(r3220)
@@ -1117,7 +1117,7 @@
     source_culture: en
     name:
       de: Teilbestand
-      en: Sub-fonds
+      en: Subfonds
       es: Sub-fundo
       fr: Sous-fonds
       it: Sub-fondo
@@ -1156,7 +1156,7 @@
     source_culture: en
     name:
       de: Teilserie
-      en: Sub-series
+      en: Subseries
       es: Sub-séries
       fr: 'Sous-série organique'
       it: Sottoserie

Modified: trunk/lib/task/migrate/QubitMigrate107to108.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate107to108.class.php       Thu Sep 10 
10:46:35 2009        (r3219)
+++ trunk/lib/task/migrate/QubitMigrate107to108.class.php       Thu Sep 10 
11:22:20 2009        (r3220)
@@ -48,6 +48,7 @@
     $this->alterQubitProperties();
     $this->alterQubitSettings();
     $this->alterQubitStaticPages();
+    $this->alterQubitTerms();
 
     return $this;
   }
@@ -369,6 +370,28 @@
   }
 
   /**
+   * Alter QubitTerms data
+   *
+   * @return QubitMigrate107to108 this object
+   */
+  protected function alterQubitTerms()
+  {
+    // Remove hyphen from English ('en') Level Of Description terms to make 
them EAD DTD compliant for XML import/export
+    $termSubfondsKey = $this->getRowKey('QubitTerm', 'name', array('en' => 
'Sub-fonds'));
+    if ($termSubfondsKey)
+    {
+      $this->data['QubitTerm'][$termSubfondsKey]['name']['en'] = 'Subfonds';
+    }
+    $termSubseriesKey = $this->getRowKey('QubitTerm', 'name', array('en' => 
'Sub-series'));
+    if ($termSubseriesKey)
+    {
+      $this->data['QubitTerm'][$termSubseriesKey]['name']['en'] = 'Subseries';
+    }
+
+    return $this;
+  }
+
+  /**
    * Sort information objects by lft value so that parent objects are inserted
    * before their children.
    *

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to