merci_taxonomy.inc in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
File
merci_migrate/merci_taxonomy.inc
View source
<?php
class MerciTaxonomyMigration extends Migration {
public function __construct($arguments) {
parent::__construct($arguments);
$this->source = new MerciContentTypesMigrateSource(array(
'map_joinable' => FALSE,
));
$this->destination = new MigrateDestinationTerm('resource_type');
$this->map = new MigrateSQLMap($this->machineName, array(
'merci_item_grouping' => array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
),
), MigrateDestinationTerm::getKeySchema());
$this
->addFieldMapping('name', 'merci_item_grouping');
}
}