Author: peter
Date: Thu Sep 24 16:28:15 2009
New Revision: 3523

Log:
add source language indicator on MODS, RAD and DC edit templates as per ISAD 
edit template

Modified:
   trunk/apps/qubit/modules/informationobject/templates/editDcSuccess.php
   trunk/apps/qubit/modules/informationobject/templates/editModsSuccess.php
   trunk/apps/qubit/modules/informationobject/templates/editRadSuccess.php

Modified: trunk/apps/qubit/modules/informationobject/templates/editDcSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/editDcSuccess.php      
Thu Sep 24 16:14:35 2009        (r3522)
+++ trunk/apps/qubit/modules/informationobject/templates/editDcSuccess.php      
Thu Sep 24 16:28:15 2009        (r3523)
@@ -132,7 +132,20 @@
     <?php echo render_field($form->accessConditions->label(__('Rights')), 
$informationObject, array('class' => 'resizable')) ?>
 
   <div class="admin-info">
-  <?php echo $form->publicationStatus->label(__('Publication 
Status'))->renderRow() ?>
+    <table><tr><td><?php echo $form->publicationStatus->label(__('Publication 
Status'))->renderRow() ?></td>
+    <td><div class="form-item"><label for="source language"><?php echo 
__('source language') ?></label>
+    <?php if ($sourceLanguage = $informationObject->getSourceCulture()): ?>
+      <?php if ($sourceLanguage == $sf_user->getCulture()): ?>
+        <?php echo format_language($sourceLanguage) ?>
+      <?php else: ?>
+        <div class="default-translation">
+        <?php echo link_to(format_language($sourceLanguage), 
$sf_data->getRaw('sf_context')->getRouting()->getCurrentInternalUri(), 
array('query_string' => 'sf_culture='.$sourceLanguage)) ?>
+        </div>
+      <?php endif; ?>
+    <?php else: ?>
+      <?php echo format_language($sf_user->getCulture()) ?>
+    <?php endif;?>
+    </div></td></tr></table>
   </div>
 
   <?php if ($sf_context->getActionName() == 'create'): ?>

Modified: 
trunk/apps/qubit/modules/informationobject/templates/editModsSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/editModsSuccess.php    
Thu Sep 24 16:14:35 2009        (r3522)
+++ trunk/apps/qubit/modules/informationobject/templates/editModsSuccess.php    
Thu Sep 24 16:28:15 2009        (r3523)
@@ -98,7 +98,20 @@
     <?php echo render_field($form->accessConditions, $informationObject, 
array('class' => 'resizable')) ?>
 
   <div class="admin-info">
-  <?php echo $form->publicationStatus->label(__('Publication 
Status'))->renderRow() ?>
+    <table><tr><td><?php echo $form->publicationStatus->label(__('Publication 
Status'))->renderRow() ?></td>
+    <td><div class="form-item"><label for="source language"><?php echo 
__('source language') ?></label>
+    <?php if ($sourceLanguage = $informationObject->getSourceCulture()): ?>
+      <?php if ($sourceLanguage == $sf_user->getCulture()): ?>
+        <?php echo format_language($sourceLanguage) ?>
+      <?php else: ?>
+        <div class="default-translation">
+        <?php echo link_to(format_language($sourceLanguage), 
$sf_data->getRaw('sf_context')->getRouting()->getCurrentInternalUri(), 
array('query_string' => 'sf_culture='.$sourceLanguage)) ?>
+        </div>
+      <?php endif; ?>
+    <?php else: ?>
+      <?php echo format_language($sf_user->getCulture()) ?>
+    <?php endif;?>
+    </div></td></tr></table>
   </div>
 
   <?php if ($sf_context->getActionName() == 'create'): ?>

Modified: 
trunk/apps/qubit/modules/informationobject/templates/editRadSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/editRadSuccess.php     
Thu Sep 24 16:14:35 2009        (r3522)
+++ trunk/apps/qubit/modules/informationobject/templates/editRadSuccess.php     
Thu Sep 24 16:28:15 2009        (r3523)
@@ -345,7 +345,20 @@
   <!-- End Control Area -->
 
   <div class="admin-info">
-  <?php echo $form->publicationStatus->label(__('Publication 
Status'))->renderRow() ?>
+    <table><tr><td><?php echo $form->publicationStatus->label(__('Publication 
Status'))->renderRow() ?></td>
+    <td><div class="form-item"><label for="source language"><?php echo 
__('source language') ?></label>
+    <?php if ($sourceLanguage = $informationObject->getSourceCulture()): ?>
+      <?php if ($sourceLanguage == $sf_user->getCulture()): ?>
+        <?php echo format_language($sourceLanguage) ?>
+      <?php else: ?>
+        <div class="default-translation">
+        <?php echo link_to(format_language($sourceLanguage), 
$sf_data->getRaw('sf_context')->getRouting()->getCurrentInternalUri(), 
array('query_string' => 'sf_culture='.$sourceLanguage)) ?>
+        </div>
+      <?php endif; ?>
+    <?php else: ?>
+      <?php echo format_language($sf_user->getCulture()) ?>
+    <?php endif;?>
+    </div></td></tr></table>
   </div>
 
   <?php if ($sf_context->getActionName() == 'create'): ?>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to