Author: peter
Date: Thu Sep 24 14:44:19 2009
New Revision: 3511
Log:
add migrate task to move OAI Harvesting menu option from Admin to Import
Modified:
trunk/lib/task/migrate/QubitMigrate107to108.class.php
Modified: trunk/lib/task/migrate/QubitMigrate107to108.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate107to108.class.php Thu Sep 24
14:43:15 2009 (r3510)
+++ trunk/lib/task/migrate/QubitMigrate107to108.class.php Thu Sep 24
14:44:19 2009 (r3511)
@@ -566,6 +566,22 @@
'label' => array('en' => 'digital objects')
);
+ // Remove previous OAI harvester menu
+ $harvesterKey = $this->getRowKey('QubitMenu', 'name', 'harvester');
+ if ($harvesterKey)
+ {
+ $this->data['QubitMenu'] =
QubitMigrate::cascadeDelete($this->data['QubitMenu'], $harvesterKey);
+ }
+
+ // Add 'import OAI' menu as child of 'import'
+ $this->data['QubitMenu']['QubitMenu_mainmenu_import_oai'] = array(
+ 'parent_id' => 'QubitMenu_mainmenu_import',
+ 'source_culture' => 'en',
+ 'name' => 'import oai',
+ 'path' => 'oai/harvesterList',
+ 'label' => array('en' => 'oai')
+ );
+
// Add user and group sub-menus
if ($userMenuKey = ($this->getRowKey('QubitMenu', 'name', 'users')))
{
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---