Author: david
Date: Wed Oct 19 14:44:13 2011
New Revision: 10144
Log:
Update routes
Modified:
trunk/plugins/qtOaiPlugin/modules/qtOaiPlugin/actions/harvesterHarvestAction.class.php
trunk/plugins/qtOaiPlugin/modules/qtOaiPlugin/templates/harvesterListSuccess.php
Modified:
trunk/plugins/qtOaiPlugin/modules/qtOaiPlugin/actions/harvesterHarvestAction.class.php
==============================================================================
---
trunk/plugins/qtOaiPlugin/modules/qtOaiPlugin/actions/harvesterHarvestAction.class.php
Wed Oct 19 14:43:36 2011 (r10143)
+++
trunk/plugins/qtOaiPlugin/modules/qtOaiPlugin/actions/harvesterHarvestAction.class.php
Wed Oct 19 14:44:13 2011 (r10144)
@@ -44,12 +44,12 @@
$this->recordCount = 0;
//If the request did not go through the proper routing, forward to 404
- if (!isset($request->harvestId))
+ if (!isset($request->id))
{
$this->forward404();
}
- $harvestInfo = QubitOaiHarvest::getById($request->harvestId);
+ $harvestInfo = QubitOaiHarvest::getById($request->id);
$harvestInfo->setLastHarvestAttempt(QubitOai::getDate());
$harvestInfo->save();
$rep = $harvestInfo->getOaiRepository();
Modified:
trunk/plugins/qtOaiPlugin/modules/qtOaiPlugin/templates/harvesterListSuccess.php
==============================================================================
---
trunk/plugins/qtOaiPlugin/modules/qtOaiPlugin/templates/harvesterListSuccess.php
Wed Oct 19 14:43:36 2011 (r10143)
+++
trunk/plugins/qtOaiPlugin/modules/qtOaiPlugin/templates/harvesterListSuccess.php
Wed Oct 19 14:44:13 2011 (r10144)
@@ -18,10 +18,10 @@
</div>
</td><td>
<?php foreach($rep->getOaiHarvests() as $harvestJob): ?>
- <?php echo link_to(__('Harvest'), array('module' => 'oai', 'action' =>
'harvest', 'next' => $harvestJob->id)) ?>
+ <?php echo link_to(__('Harvest'), array('module' => 'qtOaiPlugin',
'action' => 'harvesterHarvest', 'id' => $harvestJob->id)) ?>
<?php endforeach; ?>
</td><td>
- <?php echo link_to(__('Delete'), array('module' => 'oai', 'action' =>
'deleteRepository'), array('class' => 'delete')) ?>
+ <?php echo link_to(__('Delete'), array('module' => 'qtOaiPlugin',
'action' => 'deleteRepository'), array('class' => 'delete')) ?>
</td>
</tr>
<?php endforeach; ?>
--
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.