Author: sevein
Date: Fri Jul 22 14:59:31 2011
New Revision: 9354
Log:
Add more type of relations
Modified:
trunk/data/fixtures/taxonomyTerms.yml
trunk/lib/model/QubitTerm.php
trunk/lib/task/migrate/QubitMigrate110.class.php
Modified: trunk/data/fixtures/taxonomyTerms.yml
==============================================================================
--- trunk/data/fixtures/taxonomyTerms.yml Fri Jul 22 14:50:59 2011
(r9353)
+++ trunk/data/fixtures/taxonomyTerms.yml Fri Jul 22 14:59:31 2011
(r9354)
@@ -979,6 +979,20 @@
source_culture: en
name:
en: 'Accession'
+ QubitTerm_right:
+ taxonomy_id: <?php echo QubitTaxonomy::RELATION_TYPE_ID."\n" ?>
+ parent_id: <?php echo QubitTerm::ROOT_ID."\n" ?>
+ id: <?php echo QubitTerm::RIGHT_ID."\n" ?>
+ source_culture: en
+ name:
+ en: 'Right'
+ QubitTerm_donor:
+ taxonomy_id: <?php echo QubitTaxonomy::RELATION_TYPE_ID."\n" ?>
+ parent_id: <?php echo QubitTerm::ROOT_ID."\n" ?>
+ id: <?php echo QubitTerm::DONOR_ID."\n" ?>
+ source_culture: en
+ name:
+ en: 'Donor'
QubitTerm_isdf_relationship_hierarchical:
taxonomy_id: <?php echo QubitTaxonomy::ISDF_RELATION_TYPE_ID."\n" ?>
parent_id: QubitTerm_110
Modified: trunk/lib/model/QubitTerm.php
==============================================================================
--- trunk/lib/model/QubitTerm.php Fri Jul 22 14:50:59 2011 (r9353)
+++ trunk/lib/model/QubitTerm.php Fri Jul 22 14:59:31 2011 (r9354)
@@ -125,8 +125,12 @@
// External URI
EXTERNAL_URI_ID = 166,
- // Relation type: accession
- ACCESSION_ID = 167;
+ // Relation types
+ ACCESSION_ID = 167,
+ RIGHT_ID = 168,
+ DONOR_ID = 169;
+
+ // Relation type: right
public function isProtected()
{
Modified: trunk/lib/task/migrate/QubitMigrate110.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate110.class.php Fri Jul 22 14:50:59
2011 (r9353)
+++ trunk/lib/task/migrate/QubitMigrate110.class.php Fri Jul 22 14:59:31
2011 (r9354)
@@ -174,12 +174,22 @@
$this->data['QubitMenu']['QubitMenu_mainmenu_manage_donors'] =
$donorsManageMenu;
}
- // New type of relation, accession
+ // New type of relations: accession and right
$this->data['QubitTerm']['QubitTerm_accession'] = array(
'id' => '<?php echo QubitTerm::ACCESSION_ID."\n" ?>',
'name' => array('en' => 'Accession'));
'source_culture' => 'en',
'taxonomy_id' => '<?php echo QubitTaxonomy::RELATION_TYPE_ID."\n" ?>',
+ $this->data['QubitTerm']['QubitTerm_accession'] = array(
+ 'id' => '<?php echo QubitTerm::RIGHT_ID."\n" ?>',
+ 'name' => array('en' => 'Right'));
+ 'source_culture' => 'en',
+ 'taxonomy_id' => '<?php echo QubitTaxonomy::RELATION_TYPE_ID."\n" ?>',
+ $this->data['QubitTerm']['QubitTerm_accession'] = array(
+ 'id' => '<?php echo QubitTerm::DONOR_ID."\n" ?>',
+ 'name' => array('en' => 'Donor'));
+ 'source_culture' => 'en',
+ 'taxonomy_id' => '<?php echo QubitTaxonomy::RELATION_TYPE_ID."\n" ?>',
// Accession resource type taxonomy and terms
$this->data['QubitTaxonomy']['QubitTaxonomy_accession_resource_type'] =
array(
--
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.com/group/qubit-commits?hl=en.