Author: peter
Date: Fri Sep 25 17:55:18 2009
New Revision: 3541
Log:
only show MODS export as an option on MODS templates
Modified:
trunk/apps/qubit/modules/informationobject/templates/_contextMenu.php
Modified: trunk/apps/qubit/modules/informationobject/templates/_contextMenu.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/_contextMenu.php
Fri Sep 25 17:43:02 2009 (r3540)
+++ trunk/apps/qubit/modules/informationobject/templates/_contextMenu.php
Fri Sep 25 17:55:18 2009 (r3541)
@@ -51,7 +51,9 @@
<div class="label"><?php echo __('export') ?></div>
<ul><li><?php echo link_to(__('Dublin Core 1.1 XML'), array('module' =>
'informationobject', 'action' => 'showDc', 'id' => $informationObject->id,
'sf_format' => 'xml')) ?></li>
<li><?php echo link_to(__('EAD 2002 XML'), array('module' =>
'informationobject', 'action' => 'showEad', 'id' => $informationObject->id,
'sf_format' => 'xml')) ?></li>
+ <?php if ((sfContext::getInstance()->getActionName() == 'showMods') ||
(sfContext::getInstance()->getActionName() == 'editMods')): ?>
<li><?php echo link_to(__('MODS 3.3 XML'), array('module' =>
'informationobject', 'action' => 'showMods', 'id' => $informationObject->id,
'sf_format' => 'xml')) ?></li>
+ <?php endif; ?>
</ul>
</div>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---